<SCRIPT language=javascript1.2>
function showsubmenu(ss,ii,aa,openimg,closeimg)
{
var menuobjedt=document.getElementById(ss);
if (menuobjedt)
{
 if (menuobjedt.style.display=="none") 
  {menuobjedt.style.display="";
}
 else
  {menuobjedt.style.display="none"; 
   }
}
}
</SCRIPT>
<br>
<table  width="100%" cellpadding="0" cellspacing="0" >
  
  
  <tr align="center"> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	
        <tr> 
          <td>             
            <table  style="BORDER-COLLAPSE: collapse" borderColor=#93C2DC cellPadding=2 width="100%" border=1  >
              <tr class=titlefont>
                <td height="25" colspan="7" ><div align="left">&nbsp;&nbsp;<strong><a href="manage_user.php">用户列表</a></strong>&nbsp;&nbsp;&nbsp;&nbsp;<strong><a href="manage_all_site.php?ac=common">站点列表</a></strong></div></td>
              </tr>
              <tr >
                <td height="25" colspan="7" >&nbsp;</td>
              </tr>
              <tr class=titlefont> 
                <td >&nbsp;用户名</td>
				<td >&nbsp;级别</td>
				<td >&nbsp;QQ</td>
				<td >&nbsp;登录次数</td>
				<td >&nbsp;最后登录</td>
				<td >&nbsp;统计站点个数</td>
				<td >&nbsp;管理</td>
              </tr> 
				{/foreach key=Key
              item=Item 
              from=$Datas/} 
              <tr > 
                <td height="30" >&nbsp;{/$Item.manager/}{/ if $Item.count != "0" /}&nbsp;&nbsp;<strong onclick="showsubmenu('submenuboard{/$Key/}','subimgboard{/$Key/}','aimgboard{/$Key/}','openfolder.gif','closedfolder.gif')" height=24 title="双击该行编辑用户的站点" style="cursor: hand;">[+]</strong>{//if/}</td>
				<td >&nbsp;{/$Item.groupname/}</td>
				<td >&nbsp;{/$Item.qq/}</td>
				<td >&nbsp;{/$Item.logincount/}</td>
				<td >&nbsp;{/$Item.lastlogin/}</td>
				<td onclick="showsubmenu('submenuboard{/$Key/}','subimgboard{/$Key/}','aimgboard{/$Key/}','openfolder.gif','closedfolder.gif')" height=24 title="双击该行编辑用户的站点" style="cursor: hand;">&nbsp;{/$Item.count/}</td>
				<td > 
                  <a href="manage_user.php?action=edituser&managerid={/$Item.manager/}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:if(confirm('确实要删除该用户吗?该操作不可逆转'))location='manage_user.php?action=del&managerid={/$Item.manager/}'">删除</a></td>
              </tr> 
			  {/ if $Item.count != "0" /}
			  <tr id=submenuboard{/$Key/} style="DISPLAY: none"><td colspan=7><TABLE  width="100%" height="42" border=1 cellPadding=1 borderColor=#dddddd  style="BORDER-COLLAPSE: collapse">
			<tr class=line_title>
				<td height="22" class=line_title_td>&nbsp;站点名称</td>
				<td height="22" class=line_title_td>&nbsp;站点代码</td>
				<td height="22" class=line_title_td>&nbsp;总浏览量</td>
				<td height="22" class=line_title_td>&nbsp;总IP</td>
				<td height="22" class=line_title_td>&nbsp;管理</td>		
			</tr>
			  {/foreach 
              item=Item2 
              from=$Item.sites/}
				<tr>
				<td height="22" >&nbsp;{/$Item2.sitename/}</td>
				<td height="22" >&nbsp;{/$Item2.website/}</td>
				<td height="22" >&nbsp;{/$Item2.all_count/}</td>
				<td height="22" >&nbsp;{/$Item2.all_count_ip/}</td>
				<td height="22" align=center><a href="getcode.php?website={/$SubItem.website/}">统计代码</a>&nbsp;<a href=manage_user.php?managerid={/$Item2.managerid/}&action=pausesite&website={/$Item2.website/}>暂停统计</a>&nbsp;<a href=user_info.php?action=editsite&website={/$Item2.website/}>编辑站点</a>&nbsp;<a href="javascript:if(confirm('确实要删除该用户的站点({/$Item2.sitename/})吗?该操作不可逆转'))location='manage_user.php?managerid={/$Item2.managerid/}&action=delsite&website={/$Item2.website/}'">删除站点</a></td>			
				</tr>
			  {//foreach/}			  
				</table></td> {//if/}
			  {//foreach/} 
            </table>          </td>
        </tr>
			
        <tr>
	
          <td> <br> 
            <div align="center">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td height="40" valign="middle" >
<div class=pagelink>{/$PageLinks/}</div></td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>

