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

107 lines
4.8KB

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