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

119 lines
5.6KB

  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: #FF0000
  25. }
  26. td {
  27. padding: 2px;
  28. padding-left: 6px;
  29. line-height: 150%;
  30. }
  31. .STYLE2 {
  32. color: #666666;
  33. display: none;
  34. }
  35. </style>
  36. </head>
  37. <body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
  38. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3">
  39. <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();">
  40. <tr>
  41. <td height="26" colspan="2" bgcolor="#EDF9D5" background='../static/web/img/tbg.gif'>
  42. <a href="diy_main.php">自定义表单管理</a> &gt; 新增自定义表单
  43. </td>
  44. </tr>
  45. <tr>
  46. <td width="160" height="26" align="left" bgcolor="#FFFFFF">
  47. diyid:<br>
  48. <span class="STYLE2" id='help1'>数字,创建后不可修改,并具有唯一性推荐使用默认值</span>
  49. </td>
  50. <td bgcolor="#FFFFFF">
  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="帮助" border="0" style="cursor:hand" onClick="showHide2('help1')">
  54. </td>
  55. </tr>
  56. <tr>
  57. <td height="26" align="left" bgcolor="#FFFFFF">
  58. 自定义表单名称:<br>
  59. <span class="STYLE2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span>
  60. </td>
  61. <td bgcolor="#FFFFFF">
  62. <input name="name" type="text" id="name" style="width:180px" value="自定义表单<?php echo $newdiyid; ?>" class='pubinputs' />
  63. *<img src="../static/web/img/help.gif" alt="帮助" border="0" style="cursor:hand" onClick="showHide2('help3')">
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="26" align="left" bgcolor="#FFFFFF">数据表:<br>
  68. <span class="STYLE2" id="help5">必须由英文、数字、下划线组成,用于保存自定义表单数据,不能和已有表名重复,创建后不可修改表名</span></td>
  69. <td bgcolor="#FFFFFF">
  70. <input name="table" type="text" id="table" style="width:180px" value="<?php echo $cfg_dbprefix; ?>diyform<?php echo $newdiyid; ?>" class='pubinputs' />
  71. *<img src="../static/web/img/help.gif" alt="帮助" border="0" style="cursor:hand" onClick="showHide2('help5')">
  72. </td>
  73. </tr>
  74. <tr>
  75. <td height="26" align="left" bgcolor="#FFFFFF">字段配置:</td>
  76. <td bgcolor="#FFFFFF"><span class="STYLE1">建立自定义表单后在“修改”自定义表单的地方添加字段即可</span></td>
  77. </tr>
  78. <tr>
  79. <td height="26" align="left" bgcolor="#FFFFFF">列表模板:</td>
  80. <td bgcolor="#FFFFFF"><input name="listtemplate" type="text" id="listtemplate" style="width:180px" value="list_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs' /></td>
  81. </tr>
  82. <tr>
  83. <td height="26" align="left" bgcolor="#FFFFFF">内容模板:</td>
  84. <td bgcolor="#FFFFFF"><input name="viewtemplate" type="text" id="viewtemplate" style="width:180px" value="view_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs' /></td>
  85. </tr>
  86. <tr>
  87. <td height="26" align="left" bgcolor="#FFFFFF">发布模板:</td>
  88. <td bgcolor="#FFFFFF"><input name="posttemplate" type="text" id="posttemplate" style="width:180px" value="post_diyform<?php echo $newdiyid; ?>.htm" class='pubinputs' /></td>
  89. </tr>
  90. <tr>
  91. <td height="26" align="left" bgcolor="#FFFFFF">前台列表和内容页公开:</td>
  92. <td bgcolor="#FFFFFF">
  93. <label><input name="public" type="radio" value="2" class='np' /> 完全公开</label>
  94. <label><input name="public" type="radio" value="1" class='np' checked='1' /> 公开审核过的</label>
  95. <label><input name="public" type="radio" value="0" class='np' /> 不公开</label>
  96. </td>
  97. </tr>
  98. <tr bgcolor="#f8f8f8">
  99. <td height="26" colspan="2">
  100. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-borderless">
  101. <tr>
  102. <td width="26%" height="36"></td>
  103. <td width="15%">
  104. <button type="submit" name="button" id="button" class='btn btn-success'>确定</button>
  105. </td>
  106. <td width="59%">
  107. <button type="button" class='btn btn-success' id="button2" onclick="location='diy_main.php';"
  108. >返回</button>
  109. </td>
  110. </tr>
  111. </table>
  112. </td>
  113. </tr>
  114. </form>
  115. </table>
  116. </body>
  117. </html>