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

108 lines
4.7KB

  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 language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <script language="javascript" src="js/diy.js"></script>
  14. <script language="javascript">
  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 height="26" colspan="2" background="../static/web/img/tbg.gif">
  43. <a href="diy_main.php">自定义表单管理</a> &gt; 新增自定义表单
  44. </td>
  45. </tr>
  46. <tr>
  47. <td width="260" height="26" align="left">
  48. diyid:<br>
  49. <span class="style2" id='help1'>数字,创建后不可修改,并具有唯一性推荐使用默认值</span>
  50. </td>
  51. <td>
  52. <input name="diyid" type="text" id="diyid" size="10" value="<?php echo $newdiyid?>" class="pubinputs"
  53. style='width:60px'>
  54. * <i class="fa fa-question-circle" title="帮助" onClick="showHide2('help1')" style="cursor:hand" ></i>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td height="26" align="left">
  59. 自定义表单名称:<br>
  60. <span class="style2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span>
  61. </td>
  62. <td>
  63. <input name="name" type="text" 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>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="26" align="left">数据表:<br>
  68. <span class="style2" id="help5">必须由英文、数字、下划线组成,用于保存自定义表单数据,不能和已有表名重复,创建后不可修改表名</span></td>
  69. <td>
  70. <input name="table" type="text" 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>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td height="26" align="left">字段配置:</td>
  75. <td><span class="style1">建立自定义表单后在“修改”自定义表单的地方添加字段即可</span></td>
  76. </tr>
  77. <tr>
  78. <td height="26" align="left">列表模板:</td>
  79. <td><input name="listtemplate" type="text" id="listtemplate" value="list_diyform<?php echo $newdiyid; ?>.htm" class="pubinputs" style="width:160px"></td>
  80. </tr>
  81. <tr>
  82. <td height="26" align="left">内容模板:</td>
  83. <td><input name="viewtemplate" type="text" id="viewtemplate" value="view_diyform<?php echo $newdiyid; ?>.htm" class="pubinputs" style="width:160px"></td>
  84. </tr>
  85. <tr>
  86. <td height="26" align="left">发布模板:</td>
  87. <td><input name="posttemplate" type="text" id="posttemplate" value="post_diyform<?php echo $newdiyid; ?>.htm" class="pubinputs" style="width:160px"></td>
  88. </tr>
  89. <tr>
  90. <td height="26" align="left">前台列表和内容页公开:</td>
  91. <td>
  92. <label><input name="public" type="radio" value="2" class='np'> 完全公开</label>
  93. <label><input name="public" type="radio" value="1" class='np' checked='1'> 公开审核过的</label>
  94. <label><input name="public" type="radio" value="0" class='np'> 不公开</label>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td bgcolor="#f8f8f8" colspan="2" align="center" class="py-3">
  99. <button type="submit" name="button" id="button" class='btn btn-success btn-sm'>保存</button>
  100. <button type="button" class='btn btn-success btn-sm' id="button2" onclick="location='diy_main.php';">返回</button>
  101. </td>
  102. </tr>
  103. </form>
  104. </table>
  105. </body>
  106. </html>