国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

185 рядки
7.5KB

  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.typename.value=='')
  13. {
  14. alert("自定义表单名称不能为空!");
  15. return false;
  16. }
  17. return true;
  18. }
  19. //删除
  20. function DelNote(gourl){
  21. if(!window.confirm("你确认要删除这条记录么!")){ return false; }
  22. location.href=gourl;
  23. }
  24. -->
  25. </script>
  26. <style type="text/css">
  27. <!--
  28. .STYLE1 {color: #FF0000}
  29. td{ padding:2px; padding-left:6px; line-height:150%; }
  30. .STYLE2 {color: #666666; display:none; }
  31. -->
  32. </style>
  33. </head>
  34. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  35. <div class="bodytitle">
  36. <div class="bodytitleleft"></div>
  37. <div class="bodytitletxt" style="padding-left:10px;">自定义表单管理</div>
  38. </div>
  39. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
  40. <form name="form1" action="diy_edit.php" method="post" onSubmit="return checkSubmit();">
  41. <input type='hidden' name='diyid' value='<?php echo $diyid;?>'>
  42. <input type='hidden' name='dopost' value='save'>
  43. <tr bgcolor="#CFCFCF">
  44. <td height="28" colspan="2" bgcolor="#EDF9D5" background='images/tbg.gif' style="padding-left:10px;">
  45. <b><a href="diy_main.php"><u>自定义表单管理</u></a> &gt; 修改自定义表单:</b>
  46. (修改表名不会创建新表,如果您不懂手工处理这些表,请不要更改)
  47. </td>
  48. </tr>
  49. <tr>
  50. <td width="170" height="28" align="left" bgcolor="#FFFFFF">自定义表单 diyid:<br />
  51. <span class="STYLE2" id='help1'>  数字,创建后不可更改,并具有唯一性。</span> </td>
  52. <td bgcolor="#FFFFFF">
  53. <?php echo $diyid;?>
  54. * <img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="showHide2('help1')" /></td>
  55. </tr>
  56. <tr>
  57. <td height="28" align="left" bgcolor="#F9FCEF">自定义表单名称:<br />
  58. <span class="STYLE2" id="help3">  自定义表单的中文名称,在后台管理,前台发布等均使用此名字。</span></td>
  59. <td bgcolor="#F9FCEF">
  60. <input name="name" type="text" id="name" value="<?php echo $row['name']?>" style="width:180px" class='alltxt' />
  61. *<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="showHide2('help3')" />
  62. </td>
  63. </tr>
  64. <tr>
  65. <td height="28" align="left" bgcolor="#FFFFFF">数据表:<br />
  66. <span class="STYLE2" id="help5">  自定义表单数据表创建后不可修改表名</span></td>
  67. <td bgcolor="#FFFFFF">
  68. <input name="table" type="text" id="table" style="width:180px" value="<?php echo $row['table']; ?>" class='alltxt' disabled='1' />
  69. *<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="showHide2('help5')" />
  70. </td>
  71. </tr>
  72. <tr>
  73. <td height="28" align="left" bgcolor="#F9FCEF">模型字段配置:<br />
  74. 信息索引类字段系统已经加入,<br />
  75. 您只需要增加其它个性化字段即可。</td>
  76. <td bgcolor="#F9FCEF">
  77. <input name="fset" type="button" id="fset" value="添加新字段" onClick="location.href='diy_field_add.php?diyid=<?php echo $diyid; ?>'" class="np coolbg" style="margin-top:5px"/>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td colspan='2' bgcolor="#FFFFFF" style="padding:6px">
  82. <table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#cfcfcf;">
  83. <tr align="center" bgcolor="#FBFCE2" height="26">
  84. <td width="28%">表单提示文字</td>
  85. <td width="18%">数据字段名</td>
  86. <td width="20%">数据类型</td>
  87. <td width="18%">表单类型</td>
  88. <td>维护</td>
  89. </tr>
  90. <?php
  91. $ds = file(DedeInclude('/inc/fieldtype.txt'));
  92. foreach($ds as $d){
  93. $dds = explode(',',trim($d));
  94. $fieldtypes[$dds[0]] = $dds[1];
  95. }
  96. $fieldset = $row['info'];
  97. $dtp = new DedeTagParse();
  98. $dtp->SetNameSpace("field","<",">");
  99. $dtp->LoadSource($fieldset);
  100. if(is_array($dtp->CTags)){
  101. foreach($dtp->CTags as $ctag)
  102. {
  103. ?> <tr align="center" bgcolor="#FFFFFF" height="24">
  104. <td>
  105. <?php
  106. $itname = $ctag->GetAtt('itemname');
  107. if($itname=='') echo "没指定";
  108. else echo $itname;
  109. ?>
  110. </td>
  111. <td>
  112. <?php echo $ctag->GetTagName()?>
  113. </td>
  114. <td>
  115. <?php
  116. $ft = $ctag->GetAtt('type');
  117. if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
  118. else echo "系统专用类型";
  119. ?>
  120. </td>
  121. <td>
  122. <?php
  123. $ft = $ctag->GetAtt('autofield');
  124. if($ft==''||$ft==0) echo "固化表单";
  125. else echo "自动表单";
  126. ?>
  127. </td>
  128. <td>
  129. <a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>">[修改]</a>
  130. <a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>">[删除]</a>
  131. </td>
  132. </tr>
  133. <?php
  134. }}
  135. ?>
  136. </table>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td height="28" align="left" bgcolor="#FFFFFF">列表模板:</td>
  141. <td bgcolor="#FFFFFF">
  142. <input name="listtemplate" type="text" id="listtemplate" style="width:180px" value="<?php echo $row['listtemplate'];?>" class='alltxt' />
  143. </td>
  144. </tr>
  145. <tr>
  146. <td height="28" align="left" bgcolor="#FFFFFF">内容模板:</td>
  147. <td bgcolor="#FFFFFF">
  148. <input name="viewtemplate" type="text" id="viewtemplate" style="width:180px" value="<?php echo $row['viewtemplate'];?>" class='alltxt' />
  149. </td>
  150. </tr>
  151. <tr>
  152. <td height="28" align="left" bgcolor="#FFFFFF">发布模板:</td>
  153. <td bgcolor="#FFFFFF">
  154. <input name="posttemplate" type="text" id="posttemplate" style="width:180px" value="<?php echo $row['posttemplate'];?>" class='alltxt' />
  155. </td>
  156. </tr>
  157. <tr>
  158. <td height="28" align="left" bgcolor="#FFFFFF">前台列表和内容页公开?:</td>
  159. <td bgcolor="#FFFFFF">
  160. <label><input name="public" type="radio" value="2" <?php echo $row['public'] == 2 ? 'checked' : '';?> class='np' />完全公开</label>
  161. <label><input name="public" type="radio" value="1" <?php echo $row['public'] == 1 ? 'checked' : '';?> class='np' />公开审核过的</label>
  162. <label><input name="public" type="radio" value="0" <?php echo $row['public'] == 0 ? 'checked' : '';?> class='np' />不公开</label>
  163. </td>
  164. </tr>
  165. <tr bgcolor="#F9FCEF">
  166. <td height="28" colspan="2">
  167. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  168. <tr>
  169. <td width="26%" height="45">&nbsp;</td>
  170. <td width="15%">
  171. <input type="submit" name="button" id="button" value="确定" class='np coolbg'/>
  172. </td>
  173. <td width="59%">
  174. <input name="按钮" type="button" class='np coolbg' id="button2" onclick="location='diy_main.php';" value="返回"/>
  175. </td>
  176. </tr>
  177. </table>
  178. </td>
  179. </tr>
  180. </form>
  181. </table>
  182. </body>
  183. </html>