国内流行的内容管理系统(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.

72 lines
3.3KB

  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 type="text/css">
  7. body {
  8. background-image: url(images/allbg.gif);
  9. }
  10. </style>
  11. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  12. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  13. <link href="css/base.css" rel="stylesheet" type="text/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" bgcolor="#D6D6D6">
  19. <tr>
  20. <td width="100%" height="24" colspan="2" background="images/tbg.gif">
  21. &nbsp;<strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>表单管理</u></a> &gt;&gt; 编辑评论:</strong> </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. }
  43. else
  44. {
  45. if(!in_array($fielddata[1],$allowhtml)){
  46. $row[$field] = dede_htmlspecialchars($row[$field]);
  47. $row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'/>";
  48. }
  49. }
  50. echo '<tr bgcolor="#ffffff"><td width="20%" height="24">'.$fielddata[0].':'.'</td><td width="80%">'.$row[$field].'</td></tr>';
  51. $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
  52. }
  53. echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
  54. ?>
  55. <tr bgcolor="#FFFFFF">
  56. <td height="40" width='600' colspan="2" align="center">
  57. <button type="submit" name="Submit1" class='btn btn-success'>保存更改</button>
  58. <button type="button" name="Submit2" class='btn btn-success' onClick="location='<?php echo $ENV_GOBACK_URL; ?>';">不理返回</button>
  59. </td>
  60. </tr>
  61. </table>
  62. </form>
  63. </td>
  64. </tr>
  65. </table>
  66. </body>
  67. </html>