<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>
<table  width="100%" >
  <tr align="center"> 
    <td width="100%"><div align="left"><strong><a href="adduser.php" target="_blank">新建用户</a></strong> 
        <strong><a href="#">搜索用户</a></strong> 
      </div></td>
  </tr>
  <tr align="center"> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>             
            <table  style="BORDER-COLLAPSE: collapse" borderColor=#93C2DC cellPadding=5 width="100%" border=1  >
              <tr class=line_title> 
                <td class=line_title_td>&nbsp;用户名</td>
				<td class=line_title_td>&nbsp;QQ</td>
				<td class=line_title_td>&nbsp;Email</td>
				<td class=line_title_td>&nbsp;登录次数</td>
				<td class=line_title_td>&nbsp;最后登录</td>
				<td class=line_title_td>&nbsp;统计站点个数</td>
				<td class=line_title_td>&nbsp;管理</td>
                </tr> 
				{/foreach key=Key
              item=Item 
              from=$Datas/} 
              <tr ondblclick="showsubmenu('submenuboard{/$Key/}','subimgboard{/$Key/}','aimgboard{/$Key/}','openfolder.gif','closedfolder.gif')" height=24 title="双击该行编辑用户的站点"> 
                <td height="22" >&nbsp;{/$Item.manager/}</td>
				<td >&nbsp;{/$Item.qq/}</td>
				<td >&nbsp;{/$Item.email/}</td>
				<td >&nbsp;{/$Item.logincount/}</td>
				<td >&nbsp;{/$Item.lastlogin/}</td>
				<td >&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 style="BORDER-COLLAPSE: collapse" borderColor=#999999 cellPadding=1 width="100%" border=2>
			<tr class=line_title>
				<td class=line_title_td>&nbsp;站点名称</td>
				<td class=line_title_td>&nbsp;站点代码</td>
				<td class=line_title_td>&nbsp;总浏览量</td>
				<td class=line_title_td>&nbsp;总IP</td>
				<td class=line_title_td>&nbsp;管理</td>		
			</tr>
			  {/foreach 
              item=Item2 
              from=$Item.sites/}
				<tr>
				<td >&nbsp;{/$Item2.sitename/}</td>
				<td >&nbsp;{/$Item2.website/}</td>
				<td >&nbsp;{/$Item2.all_count/}</td>
				<td >&nbsp;{/$Item2.all_count_ip/}</td>
				<td align=center>&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> 
            <div align="center">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td >
<div class=pagelink>{/$PageLinks/}</div></td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table>
</td>
  </tr>
</table>

