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

99 lines
4.4KB

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