<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>编辑评论</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
  <table width="98%" align="center" cellpadding="1" cellspacing="1" class="table maintable mt-3 mb-3">
    <tr>
      <td width="100%" height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="<?php echo $ENV_GOBACK_URL; ?>">评论管理</a> &gt; 编辑评论</td>
    </tr>
    <tr>
      <td height="187" colspan="2" align="center">
        <form name="form1" method="post" action="feedback_edit.php">
          <input type="hidden" name="dopost" value="edit">
          <input type="hidden" name="id" value="<?php echo $row['id']; ?>">
          <table width="100%" cellpadding="3" cellspacing="1" class="table table-borderless">
            <tr>
              <td width="260" height="26">评论所属文章：</td>
              <td>
                <?php echo RemoveXSS($row['arctitle']); ?>
              </td>
            </tr>
            <tr>
              <td height="26">评论人：</td>
              <td>
                <input name="username" type="text" id="username" size="20" value="<?php echo $row['username']; ?>">
              </td>
            </tr>
            <tr>
              <td height="26">评论发布时间：</td>
              <td>
                <?php echo GetDateTimeMK($row['dtime']); ?>
              </td>
            </tr>
            <tr>
              <td height="26">IP地址：</td>
              <td>
                <?php echo $row['ip']; ?>
              </td>
            </tr>
            <tr>
              <td height="26">评论内容：</td>
              <td>修改的评论内容HTML代码不会被屏蔽，可用HTML语法编辑</td>
            </tr>
            <tr>
              <td height="62" align="center"></td>
              <td height="62">
                <textarea name="msg" cols="60" rows="5" id="msg"><?php echo cn_substr(Text2Html($row['msg']), 250); ?></textarea></td>
            </tr>
            <tr>
              <td height="26">管理员回复：</td>
              <td>回复内容的HTML代码会被屏蔽</td>
            </tr>
            <tr>
              <td height="26" align="center"></td>
              <td height="26">
                <textarea name="adminmsg" cols="60" rows="5" id="adminmsg"></textarea></td>
            </tr>
            <tr>
              <td colspan="2" align="center" class="py-3">
                <button type="submit" class="btn btn-success btn-sm">保存</button>
                <button onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" type="button" class="btn btn-success btn-sm">返回</button>
              </td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
  </table>
</body>
</html>