国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.1KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>编辑评论</title>
  6. <style>
  7. body {
  8. background-image: url(images/allbg.gif);
  9. }
  10. </style>
  11. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  12. <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  13. <link rel="stylesheet" href="css/base.css">
  14. <script language="javascript" src="../static/js/jquery.js"></script>
  15. <script src="../static/js/bootstrap.bundle.js"></script>
  16. </head>
  17. <body>
  18. <table class="table maintable mt-3" width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
  19. <tr>
  20. <td width="100%" height="26" colspan="2" background="images/tbg.gif">
  21. &nbsp;<a href="<?php echo $ENV_GOBACK_URL; ?>">表单管理</a> &gt; 编辑评论:</td>
  22. </tr>
  23. <tr>
  24. <td height="167" colspan="2" align="center" bgcolor="#FFFFFF" valign="top">
  25. <form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2">
  26. <input type="hidden" name="dopost" value="edit">
  27. <input type="hidden" name="id" value="<?php echo $row['id']; ?>">
  28. <table width="100%" border="0" cellpadding="3" cellspacing="1" style="text-align:left">
  29. <?php
  30. $formfields = '';
  31. foreach($fieldlist as $field=>$fielddata)
  32. {
  33. $allowhtml = array('htmltext');
  34. if($row[$field]=='') continue;
  35. if($fielddata[1]=='img')
  36. {
  37. $row[$field] = "<input name='photo' type='file' /> <a href='{$row[$field]}' target='_blank'><img src='images/channeladd.gif' border='0' /> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>\r\n";
  38. }
  39. else if($fielddata[1]=='addon')
  40. {
  41. $row[$field] = "<input name='file' type='file' /> <a href='{$row[$field]}' target='_blank'><img src='images/channeladd.gif' border='0' /> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>";
  42. } else {
  43. if(!in_array($fielddata[1],$allowhtml)){
  44. $row[$field] = dede_htmlspecialchars($row[$field]);
  45. $row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'/>";
  46. }
  47. }
  48. echo '<tr bgcolor="#ffffff"><td width="20%" height="26">'.$fielddata[0].':'.'</td><td width="80%">'.$row[$field].'</td></tr>';
  49. $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
  50. }
  51. echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
  52. ?>
  53. <tr bgcolor="#FFFFFF">
  54. <td height="36" width='600' colspan="2" align="center">
  55. <button type="submit" name="Submit1" class='btn btn-success'>保存修改</button>
  56. <button type="button" name="Submit2" class='btn btn-success' onClick="location='<?php echo $ENV_GOBACK_URL; ?>';">不理返回</button>
  57. </td>
  58. </tr>
  59. </table>
  60. </form>
  61. </td>
  62. </tr>
  63. </table>
  64. </body>
  65. </html>