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

70 lines
3.0KB

  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. <!--
  8. body {
  9. background-image: url(images/allbg.gif);
  10. }
  11. -->
  12. </style>
  13. <link href="css/base.css" rel="stylesheet" type="text/css">
  14. </head>
  15. <body>
  16. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6">
  17. <tr>
  18. <td width="100%" height="24" colspan="2" background="images/tbg.gif">
  19. &nbsp;<strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>表单管理</u></a> &gt;&gt; 编辑评论:</strong> </td>
  20. </tr>
  21. <tr>
  22. <td height="167" colspan="2" align="center" bgcolor="#FFFFFF" valign="top">
  23. <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">
  24. <input type="hidden" name="dopost" value="edit" />
  25. <input type="hidden" name="id" value="<?php echo $row['id']; ?>" />
  26. <table width="100%" border="0" cellpadding="3" cellspacing="1" style="text-align:left;">
  27. <?php
  28. $formfields = '';
  29. foreach($fieldlist as $field=>$fielddata)
  30. {
  31. $allowhtml = array('htmltext');
  32. if($row[$field]=='') continue;
  33. if($fielddata[1]=='img')
  34. {
  35. $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";
  36. }
  37. else if($fielddata[1]=='addon')
  38. {
  39. $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>";
  40. }
  41. else
  42. {
  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="24">'.$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="40" width='600' colspan="2" align="center">
  55. <input type="submit" name="Submit1" class='coolbg np' value="保存更改" />
  56. <input type="button" name="Submit2" class='coolbg np' value="不理返回" onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" />
  57. </td>
  58. </tr>
  59. </table>
  60. </form>
  61. </td>
  62. </tr>
  63. </table>
  64. </body>
  65. </html>