<!--
<?php
print <<<EOT
-->  

<form name="form_work" method="post" action="index.php?lfj=$lfj&action=$job">


  <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
    <tr class="head"> 
      <td>修改用戶組:<b>$rsdb[grouptitle]</b></td>
    </tr>
    <tr align="center" bgcolor="#FFFFFF"> 
      <td>
<!--
EOT;
foreach($adminDB AS $key=>$array){
if($key=='自定義菜單')continue;
print <<<EOT
-->	  
        <table width="100%" border="0" style="margin-top:5px;border:#ccc solid 1px;">
          <tr> 
            <td colspan="5" bgcolor="#EBEBEB" style="height:19px;">$key</td>
  </tr>
		<tr>
            <td bgcolor="#FFFFFF"> 
              <!--
EOT;
foreach($array AS $title=>$rs){
$ckk=$grdb[$rs[power]]?' checked ':'';
$myckk=$mygrdb[$rs[power]]?' checked ':'';
print <<<EOT
--><span style="display:block;width:200px;height:25px;float:left;overflow:hide;">
              <input type="checkbox" name="adgrdb[{$rs[power]}]" value="1" $ckk>
              <span style="display:none;"> 
              <input class='myadgrdb' type="checkbox" name="myadgrdb[{$rs[power]}]" value="1" $myckk>
              </span> <a href="$rs[link]" target="_blank">$title</a> </span> 
              <!--
EOT;
}print <<<EOT
-->
            </td>
          </tr>
        </table>
 <!--
EOT;
}print <<<EOT
-->		
		
      </td>
    </tr> <tr > 
      <td align="center">  <a href="javascript:" onClick="CheckAll('all')">全選</a>/<a href="javascript:" onClick='CheckAll()'>反選</a>  
        <input type="submit" name="Submit" value="提交">
        <input type="hidden" name="gid" value="$gid">
      </td>
    </tr>
  </table>


 
</form><SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.jobs.value=va
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(e.className=='myadgrdb')continue;
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>
 <table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
    <tr class="head"> 
    <td>提醒:</td>
  </tr>
  <tr>
    <td>1.每個*-*能前面有兩個選擇框,第一個選擇框是分配權限的總控制開關.第二個選擇框如果選定的話,將會在自定義菜單那里顯示,主要是為了一些常用*-*能可以快速的操作,非常用的*-*能,就不必選中.<br>
      2.第一個總開關不選擇,只選擇第二個的話.將不生效. </td>
  </tr>
</table>
<!--
EOT;
?>
-->
