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

45 lines
2.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改自定义表单数据</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.min.js"></script>
  12. </head>
  13. <body>
  14. <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">
  15. <input type="hidden" name="dopost" value="edit">
  16. <input type="hidden" name="id" value="<?php echo $row['id'];?>">
  17. <table align="center" class="table maintable my-3">
  18. <tr>
  19. <td bgcolor="#f5f5f5" colspan="2"><a href="<?php echo $ENV_GOBACK_URL;?>">自定义表单管理</a> - 修改自定义表单数据</td>
  20. </tr>
  21. <?php
  22. $formfields = '';
  23. foreach($fieldlist as $field=>$fielddata)
  24. {
  25. $allowhtml = array('htmltext');
  26. if ($row[$field]=='') continue;
  27. if (!in_array($fielddata[1],$allowhtml)) {
  28. $row[$field] = dede_htmlspecialchars($row[$field]);
  29. $row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'>";
  30. }
  31. echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
  32. $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
  33. }
  34. echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
  35. ?>
  36. <tr>
  37. <td colspan="2" bgcolor="#f5f5f5" align="center">
  38. <button type="submit" name="Submit1" class="btn btn-success btn-sm">保存</button>
  39. <button type="button" name="Submit2" class="btn btn-outline-success btn-sm" onclick="location='<?php echo $ENV_GOBACK_URL;?>';">返回</button>
  40. </td>
  41. </tr>
  42. </table>
  43. </form>
  44. </body>
  45. </html>