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

129 lines
5.7KB

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