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

92 lines
4.3KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>新增自定义表单</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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.bundle.min.js"></script>
  12. <script src="js/main.js"></script>
  13. <script src="js/diy.js"></script>
  14. <style>
  15. .style1 {
  16. color: #dc3545
  17. }
  18. .style2 {
  19. color: #545b62;
  20. display: none;
  21. }
  22. </style>
  23. <script>
  24. function checkSubmit() {
  25. if (document.form1.name.value == '') {
  26. ShowMsg("自定义表单名称不能为空");
  27. return false;
  28. }
  29. return true;
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  35. <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();">
  36. <tr>
  37. <td bgcolor="#f8f8f8" colspan="2"><a href="diy_main.php">自定义表单管理</a> &gt; 新增自定义表单</td>
  38. </tr>
  39. <tr>
  40. <td width="260" align="left">diyid:<span class="style2" id="help1">数字,创建后不可修改,并具有唯一性推荐使用默认值</span></td>
  41. <td>
  42. <input type="text" name="diyid" id="diyid" size="10" value="<?php echo $newdiyid?>" class="pubinputs" style='width:60px'> * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help1')" style="cursor:hand"></i>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td align="left">自定义表单名称:<br>
  47. <span class="style2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span></td>
  48. <td>
  49. <input type="text" name="name" id="name" value="自定义表单<?php echo $newdiyid;?>" class="pubinputs" style="width:160px"> * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help3')" style="cursor:hand"></i>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td align="left">数据表:<br>
  54. <span class="style2" id="help5">必须由英文、数字、下划线组成,用于保存自定义表单数据,不能和已有表名重复,创建后不可修改表名</span></td>
  55. <td>
  56. <input type="text" name="table" id="table" value="<?php echo $cfg_dbprefix;?>diyform<?php echo $newdiyid;?>" class="pubinputs" style="width:160px"> * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help5')" style="cursor:hand"></i>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td align="left">字段配置:</td>
  61. <td><span class="style1">建立自定义表单后在“修改”自定义表单的地方添加字段即可</span></td>
  62. </tr>
  63. <tr>
  64. <td align="left">列表模板:</td>
  65. <td><input type="text" name="listtemplate" id="listtemplate" value="list_diyform<?php echo $newdiyid;?>.htm" class="pubinputs" style="width:160px"></td>
  66. </tr>
  67. <tr>
  68. <td align="left">内容模板:</td>
  69. <td><input type="text" name="viewtemplate" id="viewtemplate" value="view_diyform<?php echo $newdiyid;?>.htm" class="pubinputs" style="width:160px"></td>
  70. </tr>
  71. <tr>
  72. <td align="left">发布模板:</td>
  73. <td><input type="text" name="posttemplate" id="posttemplate" value="post_diyform<?php echo $newdiyid;?>.htm" class="pubinputs" style="width:160px"></td>
  74. </tr>
  75. <tr>
  76. <td align="left">前台列表和内容页公开:</td>
  77. <td>
  78. <label><input type="radio" name="public" value="2"> 完全公开</label>
  79. <label><input type="radio" name="public" value="1" checked="1"> 公开审核过的</label>
  80. <label><input type="radio" name="public" value="0"> 不公开</label>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td bgcolor="#f8f8f8" colspan="2" align="center" class="py-2">
  85. <button type="submit" name="button" id="button" class="btn btn-success btn-sm">保存</button>
  86. <button type="button" class="btn btn-success btn-sm" id="button2" onclick="location='diy_main.php';">返回</button>
  87. </td>
  88. </tr>
  89. </form>
  90. </table>
  91. </body>
  92. </html>