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

88 lines
3.7KB

  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>已有分类管理 - 会员中心 - <?php echo $cfg_webname; ?></title>
  6. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="../static/js/jquery.js"></script>
  8. <script type="text/javascript" src="templets/js/load.js"></script>
  9. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  10. </head>
  11. <body>
  12. <div id="main">
  13. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  14. <div id="content" class="w960 clearfix">
  15. <?php
  16. include(DEDEMEMBER."/templets/menu.php");
  17. $channels = array();
  18. foreach($channelInfos as $mrow)
  19. {
  20. if($mrow['id'] < 0) continue;
  21. if($mrow['isshow'] == 0 || $mrow['issend'] == 0) continue;
  22. if($cfg_mb_album=='N' && $mrow['nid']=='image') continue;
  23. if(trim($mrow['usertype']) != '' && $mrow['usertype'] != $cfg_ml->fields['mtype']) continue;
  24. $channels[$mrow['id']] = $mrow;
  25. }
  26. ?>
  27. <div id="mcpmain">
  28. <div id="appTab">
  29. <ul>
  30. <li class="thisTab"><a href="mtypes.php">分类管理</a></li>
  31. <li><a href="flink_main.php">书签管理</a></li>
  32. <li><a href="edit_space_info.php"><span>空间设置</span></a></li>
  33. <li><a href="spaceskin.php">风格选择</a></li>
  34. </ul>
  35. </div>
  36. <div id="mainCp" class="postForm">
  37. <h3 class="meTitle"><strong>分类管理</strong></h3>
  38. <div class="appMsg">
  39. <form class="mTB10" action="mtypes.php?dopost=add" method="post" style="padding-left: 75px;">
  40. <strong>添加分类:</strong>
  41. <input type="text" name="mtypename" class="intxt"/>
  42. <select name='channelid' style='width:100px'>
  43. <?php
  44. foreach($channels as $nrow) echo " <option value='{$nrow['id']}'>{$nrow['typename']}</option>\r\n";
  45. ?>
  46. </select> &nbsp;
  47. <button class="button2" type="submit">添加</button>
  48. </form>
  49. </div>
  50. <h3 class="meTitle">我的分类管理</h3>
  51. <form action="mtypes.php?dopost=save" method="post">
  52. <div class="postForm">
  53. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
  54. <thead>
  55. <tr>
  56. <th width="5%">删?</th>
  57. <th width="20%">分类ID</th>
  58. <th width="30%">内容类型 </th>
  59. <th>分类名称 </th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. {dede:array.mtypearr}
  64. <tr>
  65. <td class="tabTitle"><input type="checkbox" name="mtypeidarr[]" value="{dede:value.mtypeid/}"/></td>
  66. <td align="center">{dede:value.mtypeid/}</td>
  67. <td align="center"><a href='mtypes.php?channelid={dede:value.channelid/}'><?php echo $channels[$value['channelid']]['typename']; ?></a></td>
  68. <td align="center"><input type="text" class="intxt" style="width:100px" name="mtypename[{dede:value.mtypeid/}]" value="{dede:value.mtypename/}"/></td>
  69. </tr>
  70. {/dede:array}
  71. </tbody>
  72. <tfoot>
  73. <tr>
  74. <td colspan="5"><button class="button2 mt10" type="submit">提交</button></td>
  75. </tr>
  76. </tfoot>
  77. </table>
  78. </div>
  79. </form>
  80. <!--主操作区域 -->
  81. </div>
  82. </div>
  83. </div>
  84. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  85. </div>
  86. </body>
  87. </html>