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

195 lines
8.5KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>修改会员模型管理</title>
  7. <script language="javascript" src="../static/js/jquery.js"></script>
  8. <script language="javascript" src="js/main.js"></script>
  9. <script language="javascript" src="js/diy.js"></script>
  10. <script language="javascript">
  11. function CheckSubmit() {
  12. if (document.form1.typename.value == '') {
  13. alert("自定义表单名称不能为空!");
  14. return false;
  15. }
  16. return true;
  17. }
  18. //删除
  19. function DelNote(gourl) {
  20. if (!window.confirm("你确认要删除这条记录么!")) { return false; }
  21. location.href = gourl;
  22. }
  23. </script>
  24. <link href="css/base.css" rel="stylesheet" type="text/css" />
  25. <style type="text/css">
  26. .STYLE1 {
  27. color: #FF0000
  28. }
  29. td {
  30. padding: 2px;
  31. padding-left: 6px;
  32. line-height: 150%;
  33. }
  34. .STYLE2 {
  35. color: #666666;
  36. display: none;
  37. }
  38. </style>
  39. </head>
  40. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  41. <div class="bodytitle">
  42. <div class="bodytitleleft"></div>
  43. <div class="bodytitletxt" style="padding-left:10px;">会员模型管理</div>
  44. </div>
  45. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle"
  46. style="background:#CFCFCF;">
  47. <form name="form1" action="member_model_edit.php" method="post" onSubmit="return CheckSubmit();">
  48. <input type='hidden' name='id' value='<?php echo $id;?>'>
  49. <input type='hidden' name='name' value='<?php echo $row['name'];?>'>
  50. <input type='hidden' name='dopost' value='save'>
  51. <tr bgcolor="#CFCFCF">
  52. <td height="28" colspan="2" bgcolor="#EDF9D5" background='images/tbg.gif' style="padding-left:10px;"><b><a
  53. href="member_model_main.php"><u>会员模型管理</u></a> &gt; 修改<?php echo $row['name']?>会员模型:</b>
  54. (修改表名不会创建新表,如果您不懂手工处理这些表,请不要更改) </td>
  55. </tr>
  56. <tr>
  57. <td width="35%" height="28" align="left" bgcolor="#FFFFFF">会员模型ID:<br />
  58. <span class="STYLE2" id='help1'>  数字,创建后不可更改,并具有唯一性。</span></td>
  59. <td width="65%" bgcolor="#FFFFFF"><?php echo $id;?> * <img src="images/help.gif" alt="帮助" width="16" height="16"
  60. border="0" style="cursor:hand" onclick="ShowHide2('help1')" />
  61. <?php if($row['issystem']) echo "<font color='red'>系统模型,我们不建议您去修改基本配置信息!</font>";?></td>
  62. </tr>
  63. <tr>
  64. <td height="28" align="left" bgcolor="#F9FCEF">模型名称:<br />
  65. <span class="STYLE2" id="help3">  会员模型类型统一使用中文,前台后台都保持一致。</span></td>
  66. <td bgcolor="#F8FCEF"><input name="name" type="text" id="name" value="<?php echo $row['name']?>"
  67. style="width:180px" class='alltxt' <?php if($row['issystem']) echo "disabled='1'";?> />
  68. *<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand"
  69. onclick="ShowHide2('help3')" /></td>
  70. </tr>
  71. <tr>
  72. <td height="28" align="left" bgcolor="#FFFFFF">数据表:<br />
  73. <span class="STYLE2" id="help5">  模型表一旦创建不可修改</span></td>
  74. <td bgcolor="#FFFFFF"><input name="table" type="text" id="table" style="width:180px"
  75. value="<?php echo $row['table']; ?>" class='alltxt' disabled='1' />
  76. *<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand"
  77. onclick="ShowHide2('help5')" /></td>
  78. </tr>
  79. <tr>
  80. <td height="28" align="left" bgcolor="#F9FCEF">模型字段配置:<br />
  81. 信息索引类字段系统已经加入,<br />
  82. 您只需要增加其它个性化字段即可。</td>
  83. <td bgcolor="#F8FCEF"><input name="fset" type="button" id="fset" value="添加新字段"
  84. onClick="location.href='member_model_field_add.php?id=<?php echo $id; ?>'" class="np coolbg"
  85. style="margin-top:5px" /></td>
  86. </tr>
  87. <tr>
  88. <td colspan='2' bgcolor="#FFFFFF" style="padding:6px">
  89. <table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#cfcfcf;">
  90. <tr align="center" bgcolor="#FBFCE2" height="24">
  91. <td width="12%">提示文字</td>
  92. <td width="12%">数据字段名</td>
  93. <td width="12%">数据类型</td>
  94. <td width="12%">前台显示</td>
  95. <td width="12%">条件搜索</td>
  96. <td width="12%">状态</td>
  97. <td width="12%">表单类型</td>
  98. <td width="16%">维护</td>
  99. </tr>
  100. <?php
  101. $ds = file(DedeInclude('/inc/fieldtype.txt'));
  102. foreach($ds as $d){
  103. $dds = explode(',',trim($d));
  104. $fieldtypes[$dds[0]] = $dds[1];
  105. }
  106. $fieldset = $row['info'];
  107. $dtp = new DedeTagParse();
  108. $dtp->SetNameSpace("field","<",">");
  109. $dtp->LoadSource($fieldset);
  110. if(is_array($dtp->CTags)){
  111. foreach($dtp->CTags as $ctag)
  112. {
  113. ?>
  114. <tr align="center" bgcolor="#FFFFFF" height="26" align="center"
  115. onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
  116. <td><?php
  117. $itname = $ctag->GetAtt('itemname');
  118. if($itname=='') echo "没指定";
  119. else echo $itname;
  120. ?></td>
  121. <td><?php echo $ctag->GetTagName()?></td>
  122. <td><?php
  123. $ft = $ctag->GetAtt('type');
  124. if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
  125. else echo "系统专用类型";
  126. ?></td>
  127. <td><?php
  128. $issearch = $ctag->GetAtt('issearch');
  129. echo ($issearch == '1')? "<font color=green>√</font>" : "<font color=red>×</font>";
  130. ?></td>
  131. <td><?php
  132. $isshow = $ctag->GetAtt('isshow');
  133. echo ($isshow == '1')? "<font color=green>√</font>" : "<font color=red>×</font>";
  134. ?></td>
  135. <td><?php
  136. $state = $ctag->GetAtt('state');
  137. echo ($state == 1)? "<font color=green>√</font>" : "<font color=red>×</font>";
  138. ?></td>
  139. <td><?php
  140. $ft = $ctag->GetAtt('autofield');
  141. if($ft==''||$ft==0) echo "固化表单";
  142. else echo "自动表单";
  143. ?></td>
  144. <td><a
  145. href="member_model_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName()?>">[修改]</a>
  146. <a
  147. href="member_model_field_edit.php?id=<?php echo $id;?>&action=disabled&fname=<?php echo $ctag->GetTagName()?>">[<?php echo ($ctag->GetAtt('state')==1)? "禁用" : "启用" ?>]</a>
  148. <a
  149. href="member_model_field_edit.php?id=<?php echo $id;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>">[删除]</a>
  150. </td>
  151. </tr>
  152. <?php
  153. }}
  154. ?>
  155. </table>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td height="28" align="left" bgcolor="#FFFFFF">模型描述:</td>
  160. <td bgcolor="#FFFFFF"><label>
  161. <textarea name="description" cols="50" rows="5" class="tbtitle"
  162. id="description"><?php echo $row['description']; ?></textarea>
  163. </label></td>
  164. </tr>
  165. <tr>
  166. <td height="28" align="left" bgcolor="#FFFFFF">会员模型状态:</td>
  167. <td bgcolor="#FFFFFF"><input name="state" type="radio" class='np' value="1"
  168. <?php if($row['state']=='1') echo " checked='1' "; ?> />
  169. 启用 &nbsp;
  170. <input name="state" type="radio" value="0" class='np' <?php if($row['state']=='0') echo " checked='1' "; ?> />
  171. 禁用</td>
  172. </tr>
  173. <tr bgcolor="#F9FCEF">
  174. <td height="28" colspan="2">
  175. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  176. <tr>
  177. <td width="26%" height="45">&nbsp;</td>
  178. <td width="15%"><input type="submit" name="button" id="button" value="确定" class='np coolbg' /></td>
  179. <td width="59%"><input name="按钮" type="button" class='np coolbg' id="button2"
  180. onclick="location='diy_main.php';" value="返回" /></td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. </form>
  186. </table>
  187. </body>
  188. </html>