
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script src="../../function/plugs/layer/layer.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li class="hover">用户组管理</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>

		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="30%" bgcolor="#EBEBEB">用户组名称</td>
					<td width="20%" bgcolor="#EBEBEB">用户组权重</td>
                    <td width="20%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Userleve name=op.]
                  <tr>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$Userleve[op].id.]</font></div></td>
                    <td>[.$Userleve[op].name.]</td>
					<td>[.$Userleve[op].weight.]</td>
                    <td><a href="javascript:dialog([.$Userleve[op].id.],'[.$Userleve[op].name.]','[.$Userleve[op].weight.]',[.$Userleve[op].open.])">编辑</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="3">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                </table>

	  </li>
  </ul>
 </div>
</div>
<script>
//弹出一个页面层
function dialog(id,name,weight,open){
    $.layer({
        type: 1,
        title: '编辑ID:'+id,
        shade: [0],
		border: [5, 0.3, '#000'],
        area: ['300px', '300px'],
        page: {html: '<form id="form1" name="form1" method="POST" action="?ourphp_cms=edit&id='+id+'" class="registerform"><br><br>&nbsp;&nbsp;&nbsp;&nbsp;名称：<input type="text" name="OP_Userlevename" value="'+name+'" /><br><br>&nbsp;&nbsp;&nbsp;&nbsp;权重：<input type="text" name="OP_Userweight" value="'+weight+'" /><br><br>&nbsp;&nbsp;&nbsp;&nbsp;开放：<input type="text" name="OP_Useropen" value="'+open+'" /> <br >&nbsp;&nbsp;&nbsp;&nbsp;=0 表示开放 =1 表示整组用户锁定(无法登录)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="提交" class="ourphp-anniu"/></form>'}
    });
};
</script>
[.include file="ourphp_foot.html".]
</body>
</html>