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

43 lines
1.8KB

  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>修改<?php echo $diy->name;?>数据</title>
  7. <link rel="stylesheet" href="/static/web/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. </head>
  11. <body>
  12. <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">
  13. <input type="hidden" name="dopost" value="edit">
  14. <input type="hidden" name="id" value="<?php echo $row['id'];?>">
  15. <table class="table border my-3">
  16. <tr>
  17. <td colspan="2"><a href="<?php echo $ENV_GOBACK_URL;?>">自定义表单管理</a> - 修改<?php echo $diy->name;?>数据</td>
  18. </tr>
  19. <?php
  20. $formfields = '';
  21. foreach($fieldlist as $field=>$fielddata)
  22. {
  23. $allowhtml = array('htmltext');
  24. if ($row[$field]=='') continue;
  25. if (!in_array($fielddata[1],$allowhtml)) {
  26. $row[$field] = dede_htmlspecialchars($row[$field]);
  27. $row[$field] = "<textarea name='".$field."' class='admin-textarea-xl'>$row[$field]</textarea>";
  28. }
  29. echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
  30. $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
  31. }
  32. echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
  33. ?>
  34. <tr>
  35. <td colspan="2" align="center">
  36. <button type="submit" name="submit1" class="btn btn-success btn-sm">保存</button>
  37. <button type="button" name="submit2" class="btn btn-outline-success btn-sm" onclick="location='<?php echo $ENV_GOBACK_URL;?>';">返回</button>
  38. </td>
  39. </tr>
  40. </table>
  41. </form>
  42. </body>
  43. </html>