info_option_edit.tpl.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php include mymps_tpl('inc_head');?>
  2. <div id="<?=MPS_SOFTNAME?>" style=" padding-bottom:0">
  3. <div class="mpstopic-category">
  4. <div class="panel-tab">
  5. <ul class="clearfix tab-list">
  6. <li><a href="?part=option_type" <?php if($part == 'option_type'){?>class="current"<?php }?>>类别管理</a></li>
  7. <?php foreach($options as $k =>$value){?>
  8. <li><a href="?classid=<?=$value[optionid]?>" <?php if($edit[classid]==$value[optionid]){?>class="current"<?php }?>><?=$value[title]?></a></li>
  9. <?php }?>
  10. </ul>
  11. </div>
  12. </div>
  13. </div>
  14. <form name='form1' method='post' action='?part=option_edit&action=update&optionid=<?=$edit[optionid]?>'>
  15. <div id="<?=MPS_SOFTNAME?>">
  16. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  17. <tr class="firstr">
  18. <td colspan="6">
  19. <div class="left"><a href="javascript:collapse_change('1')">分类选项基本设置</a></div>
  20. <div class="right"><a href="javascript:collapse_change('1')"><img id="menuimg_1" src="template/images/menu_reduce.gif"/></a></div>
  21. </td>
  22. </tr>
  23. <tbody id="menu_1">
  24. <tr bgcolor="#f5fbff" width="45%">
  25. <td>名称</td>
  26. <td bgcolor="#f5fbff"><input name="title" value="<?=$edit['title']?>" type="text" class="text"></td>
  27. </tr>
  28. <tr bgcolor="#f5fbff" width="45%">
  29. <td>变量名</td>
  30. <td bgcolor="#f5fbff"><input name="identifier" value="<?=$edit['identifier']?>" type="text" class="text"></td>
  31. </tr>
  32. <tr bgcolor="#f5fbff" width="45%">
  33. <td>类型</td>
  34. <td><select name="typenew" onchange="var styles, key;styles=new Array('text','textarea','radio','checkbox','select','number'); for(key in styles) {var obj=$obj('style_'+styles[key]); obj.style.display=styles[key]==this.options[this.selectedIndex].value?'':'none';}">
  35. <?=get_type_option($edit[type])?>
  36. </select>
  37. </td>
  38. </tr>
  39. <tr bgcolor="#f5fbff" width="45%">
  40. <td>所属分类</td>
  41. <td bgcolor="#f5fbff">
  42. <select name="classid">
  43. <?php foreach($class_option as $k => $value){?>
  44. <option value="<?=$value[optionid]?>" <?php echo ($edit[classid]==$value[optionid])?"selected":"";?>><?=$value[title]?></option>
  45. <?php }?>
  46. </select>
  47. [<a href="?part=option_type">类别管理</a>]
  48. </td>
  49. </tr>
  50. <tr bgcolor="#f5fbff" width="45%">
  51. <td>排列顺序</td>
  52. <td bgcolor="#f5fbff"><input name="displayorder" value="<?=$edit['displayorder']?>" type="text" class="text"></td>
  53. </tr>
  54. <tr bgcolor="#f5fbff" width="45%">
  55. <td>其他属性</td>
  56. <td bgcolor="#f5fbff">
  57. <label for="available"><input name="available" type="checkbox" id="available" <?php if($edit['available']=='on'){echo 'checked';}?> class=checkbox>可用</label>
  58. <label for="required"><input name="required" type="checkbox" id="required" <?php if($edit['required']=='on'){echo 'checked';}?> class=checkbox>必填</label>
  59. <label for="search"><input name="search" type="checkbox" id="search" <?php if($edit['search']=='on'){echo 'checked';}?> class=checkbox>作为筛选条件</label>
  60. </td>
  61. </tr>
  62. <tr bgcolor="#f5fbff" width="45%">
  63. <td>简短说明<br />(可不填写)</td>
  64. <td><textarea rows="10" cols="70" name="description"><?=$edit[description]?></textarea></td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. </div>
  69. <?php echo get_mymps_admin_info_type();?>
  70. </div>
  71. <center><input type="submit" value="保存修改" class="mymps mini"/> <input type="button" onclick="location.href='?classid=<?=$edit[classid]?>';" value="返 回" class="mymps mini"></center>
  72. </form>
  73. <?php mymps_admin_tpl_global_foot();?>