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

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