<?php /* Smarty version 2.6.6, created on 2006-12-21 16:32:55
         compiled from manage_user.html */ ?>
<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"></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=titlefont> 
                <td >&nbsp;用戶名</td>
				<td >&nbsp;級別</td>
				<td >&nbsp;QQ</td>
				<td >&nbsp;登錄次數</td>
				<td >&nbsp;最後登錄</td>
				<td >&nbsp;統計站點個數</td>
				<td >&nbsp;管理</td>
                </tr> 
				<?php if (count($_from = (array)$this->_tpl_vars['Datas'])):
    foreach ($_from as $this->_tpl_vars['Key'] => $this->_tpl_vars['Item']):
?> 
              <tr ondblclick="showsubmenu('submenuboard<?php echo $this->_tpl_vars['Key']; ?>
','subimgboard<?php echo $this->_tpl_vars['Key']; ?>
','aimgboard<?php echo $this->_tpl_vars['Key']; ?>
','openfolder.gif','closedfolder.gif')" height=24 title="雙擊該行編輯用戶的站點"> 
                <td height="22" >&nbsp;<?php echo $this->_tpl_vars['Item']['manager']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item']['groupname']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item']['qq']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item']['logincount']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item']['lastlogin']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item']['count']; ?>
</td>
				<td > 
                  <a href="manage_user.php?action=edituser&managerid=<?php echo $this->_tpl_vars['Item']['manager']; ?>
">編輯</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:if(confirm('確實要刪除該用戶嗎?該操作不可逆轉'))location='manage_user.php?action=del&managerid=<?php echo $this->_tpl_vars['Item']['manager']; ?>
'">刪除</a></td>
                </tr> 
			  <?php if ($this->_tpl_vars['Item']['count'] != '0'): ?>
			  <tr id=submenuboard<?php echo $this->_tpl_vars['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>
			  <?php if (count($_from = (array)$this->_tpl_vars['Item']['sites'])):
    foreach ($_from as $this->_tpl_vars['Item2']):
?>
				<tr>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item2']['sitename']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item2']['website']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item2']['all_count']; ?>
</td>
				<td >&nbsp;<?php echo $this->_tpl_vars['Item2']['all_count_ip']; ?>
</td>
				<td align=center>&nbsp;<a href=manage_user.php?managerid=<?php echo $this->_tpl_vars['Item2']['managerid']; ?>
&action=pausesite&website=<?php echo $this->_tpl_vars['Item2']['website']; ?>
>暫停統計</a>&nbsp;<a href=user_info.php?action=editsite&website=<?php echo $this->_tpl_vars['Item2']['website']; ?>
>編輯站點</a>&nbsp;<a href="javascript:if(confirm('確實要刪除該用戶的站點(<?php echo $this->_tpl_vars['Item2']['sitename']; ?>
)嗎?該操作不可逆轉'))location='manage_user.php?managerid=<?php echo $this->_tpl_vars['Item2']['managerid']; ?>
&action=delsite&website=<?php echo $this->_tpl_vars['Item2']['website']; ?>
'">刪除站點</a></td>			
				</tr>
			  <?php endforeach; unset($_from); endif; ?>			  
				</table></td> <?php endif; ?>
			  <?php endforeach; unset($_from); endif; ?> 
            </table>
           
          </td>
        </tr>
			
        <tr>
	
          <td> 
            <div align="center">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td height="40" valign="middle" >
<div class=pagelink><?php echo $this->_tpl_vars['PageLinks']; ?>
</div></td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table>
</td>
  </tr>
</table>

