<!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>修改管理员权限表 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript">
	function allItem( strid , obj )
	{
		var strid = strid;
		var checkedval =  obj.checked
		switch(strid){
		  {#foreach name=cform item=citem key=ckey from=$powerForm.companyweb#}
		   case '{#$ckey#}':
		   {#foreach key=sskey item=ssitem from=$citem#}
		   document.getElementById("menuitem["+strid+"][{#$sskey#}]").checked = checkedval ;
		   {#/foreach#}
		   break;
		   {#/foreach#}
		   default: 
		}
	}
	
	function allcheck(obj)
	{
		var idallcheck = obj;
		var checkedval =  obj.checked
		{#foreach name=cform item=citem key=ckey from=$powerForm.companyweb#}
		document.getElementById("menu[{#$ckey#}]").checked = checkedval ;
		{#foreach key=sskey item=ssitem from=$citem#}
		document.getElementById("menuitem[{#$ckey#}][{#$sskey#}]").checked = checkedval ;
		{#/foreach#}
		{#/foreach#}
	
   }

</script>
</head>
<body>
<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">

<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php/adminsys/infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">管理员列表</a> | 修改管理员权限表</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_userpower-info.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>
<tr><td>

<div class="list">
<form action="{#$actUrl#}" method="post" onsubmit="return submitFun(this)"  name="formSub" id="formSub">
  <table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
    <tr>
      <th colspan="6">修改管理员权限表</th>
    </tr>
    <input name="use_id" id="use_id" value="{#$info.use_id#}" type="hidden"  style="width:250px;" />
    <tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
      <td class="td">&nbsp;</td>
      <td class="td">&nbsp;</td>
      <td class="td"><strong>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</strong>{#$info.use_name#} </td>
      <td class="tdleft"><strong>真实姓名：</strong>{#$info.usd_truename#}</td>
      <td class="tdd">&nbsp;</td>
      <td class="td">&nbsp;</td>
    </tr>

    {#foreach name=cform item=citem key=ckey from=$powerForm.companyweb#}
	
  <tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
 	 <td class="td" width="100"></td>
    <td class="td" width="100"></td>
    <td class="tdleft" width="150"><strong>
      <input name="menu[{#$ckey#}]" id="menu[{#$ckey#}]"  value="{#$ckey#}"    type="checkbox" onclick="allItem('{#$ckey#}',this)" />
      {#$_LANG.powerArray[$ckey]#}</strong></td>
    <td class="tdleft" width="850"><div id="powerlist">
        <ul>
          {#foreach key=sskey item=ssitem from=$citem#}
           <li>
            <input name="menuitem[{#$ckey#}][{#$sskey#}]" id="menuitem[{#$ckey#}][{#$sskey#}]" value="{#$sskey#}"  type="checkbox" {#if $ssitem eq true#}  checked="checked" {#/if#}  />
            {#$_LANG.powerItemArray[$sskey]#}</li>
          {#/foreach#}
          </ul></div></td>
    <td class="td"></td>
	<td class="td"></td>
  </tr>
    {#/foreach#}
	
  <tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
    <td colspan="6"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
  </tr>
  <tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
    <td colspan="6"  class="tdcenter"><input type="checkbox"  value="allcheck" name="idallcheck"  id="idallcheck" alt="全选/全不选" onclick="allcheck(this)" />全选/全不选&nbsp;&nbsp;&nbsp;&nbsp;<input name="submit" id="submit" type="submit" value="修 改" /></td>
  </tr>
  </table>
</form>
</div>

</td></tr>
<tr><td></td></tr>
</table>
<script language="javascript">
	allchval = true;
	{#foreach name=cform item=citem key=ckey from=$powerForm.companyweb#}
	chval = true ;
	{#foreach key=sskey item=ssitem from=$citem#}
		if(document.getElementById("menuitem[{#$ckey#}][{#$sskey#}]").checked==false)
		{
			chval = false;
		}
		document.getElementById("menu[{#$ckey#}]").checked = chval ;
		if(chval==false)
		{
			allchval = chval;
		}
	{#/foreach#}
	{#/foreach#}
	document.getElementById("idallcheck").checked = allchval ;
</script>
</body>
</html>