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

171 lines
7.8KB

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