<? defined('ROOT_PHPLEFT') or exit(require '../../../404.php');?>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
 <link href="css/main.css" type="text/css" rel="stylesheet">
<script src="<?=PL_URL?>js/win/artDialog.js?skin=default"></script>
<script src="<?=PL_URL?>js/win/plugins/iframeTools.js"></script>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
<div class="tpis"><img src="images/icos.gif" align="absmiddle"/>当前位置：基础设置  > 会员管理 > 会员级别</div>

<? include inTemplate(menu);?>
<? if ($show=='add' || $show=='bj' ){?>
<form action="phpleft.php?file=user&in=group&post=<?=$show?><? if($show=='bj') echo '&id='.$id;?>" method="post">
<input name="menuid" type="hidden" value="member">
    <table class="usertableborder bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="2">
                模块设置</th>
        </tr>
        
         
      <tr align="center">
          <td width="142" height="30" valign="top"  class="text" style="padding-right:10px;" align="left"><div align="center">级别名称</div></td>
          <td width="876" height="30" class="usertablerow2" align="left"><input name="set[name]" type="text" id="name" value="<?=$set['name']?>"></td>
         
      </tr>
      <tr align="center">
          <td width="142" height="30" valign="top"  class="text" style="padding-right:10px;" align="left"><div align="center">注册显示</div></td>
          <td width="876" height="30" class="usertablerow2" align="left"><?
            $is_ors[1][0] = '0';
			$is_ors[1][1] = '是';
			$is_ors[2][0] = '1';
			$is_ors[2][1] = '否';
			$set['is_or'] = $set['is_or']?$set['is_or']:'0';
			?>
            <?=add_radio($is_ors, $set['is_or'], '' ,'set[is_or]')?></td>
         
      </tr>
      <tr align="center">
          <td width="142" height="30" valign="top"  class="text" style="padding-right:10px;" align="left"><div align="center">栏目发布权限</div></td>
          <td width="876" height="30" class="usertablerow2" align="left"><?=add_checkbox($values,$set['limits'],'','limits[]','','');?></td>
         
      </tr>
      <tr>
         
            <td height="30"  style="padding-right:10px; text-align:right"><input type="submit" name="button" id="button" value=" 确 认 "></td>
             <td height="30"></td>
             <td height="30"></td>
            <td></td> </tr>
    </table>
  </form>

<? }else{?>
 <table class="usertableborder bb" cellspacing="0" cellpadding="3" width="100%" align="center"
        border="0">
       
<tr align="center" class="title">
          <td width="168" height="30" valign="top"  class="usertablerow3">
          频道ID
          </td>
          <td width="200" height="30" class="usertablerow3">等级名称</td>
         
            <td width="201" height="30" class="usertablerow3">编辑管理</td>
              <td height="30" class="usertablerow3">&nbsp;</td>
             
        </tr>
       
       <? foreach($list as $i=> $t) {?>
       
                 <tr align="center" class="list<? if($i%2==1) echo '1';?>">
          <td width="168" height="30" valign="top" style="padding-right:10px;">
          <?=$t['id']?>          </td>
          <td width="200" height="30"><?=$t['name']?></td>
            <td width="203" height="30"><a href="?file=user&in=group&show=bj&id=<?=$t[id]?>"><img src="<?=PL_URL?>ico/edit.png" align="absmiddle" alt="编辑" border="0"></a> <a href="?file=user&in=group&post=del&id=<?=$t[id]?>" onClick="return confirm('确定要删除这个频道？将清空频道所有数据')"><img src="<?=PL_URL?>ico/del.png" align="absmiddle" alt="删除" border="0"></a>  </td>
<td width="203" height="30"></td>
             
      </tr>
      
      <? }?>
      </table>
<? if (!$list){?>
<table class="usertableborder input bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
  <tr>
    <td>暂无信息！</td>
    </tr>
</table>
<? }?>
      <? }?>
</body>
</html>
