<? defined('ROOT_PHPLEFT') or exit();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
 <link href="css/main.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script type="text/javascript" src="<?=PL_URL?>js/common.js"></script>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
<div class="tpis"><img src="images/icos.gif" align="absmiddle"/>当前位置：基础设置 > 管理员管理</div>
    <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                提示信息</th>
        </tr>
</table>
            <div class="tsc"> 
1. 谨慎删除管理员，删除后不可恢复。 <br>
2. 添加管理员后拥有相同权限。<br>
3. 本版本暂时不支持，管理员权限分配。
</div>
<? include inTemplate(menu);?>
    <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="7">
                管理员管理</th>
        </tr>
    </table>
   <?
   if ($show=='add' || $show=='bj'){
   ?>
    <form id="form" action="?file=post_center&post=admin<?=$show?>" method="post" onSubmit="return check();">
    <input name="id" type="hidden" id="id" value="<?=$id?>" size="40">
<table class="usertableborder bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
      <tr>
            <td width="135" height="30" class="text" style="padding-right:10px; text-align:right"><strong>用户名</strong></td>
            <td width="367" height="30"><input name="add[username]" type="text" id="username" value="<?=$add[username]?>" size="23"></td>
            <td height="30"></td>
        </tr>
         <tr>
            <td width="135" height="30" class="text" style="padding-right:10px; text-align:right"><strong>密码</strong></td>
            <td width="367" height="30"><input name="pwdm" type="password" id="pwdm" value="" size="40"></td>
            <td width="472" height="30">&nbsp;</td>
        </tr>
       
        <tr>
          <td height="30" class="text" style="padding-right:10px; text-align:right"></td>
            <td height="30"><input type="submit" name="button" id="button" value=" 确 认 " class="ok"></td>
            <td height="30">&nbsp;</td>
        </tr>
       
    </table>
</form>
<? }else{?>
<table class="usertableborder bb" cellspacing="0" cellpadding="3" width="100%" align="center"
        border="0">

        <tr align="center" class="list1">
          <td widtd="100" height="30" valign="top">
          用户名
          </td>
          <td widtd="85" height="30">登陆次数</td>
         
            <td widtd="93" height="30">最近登陆时间</td>
            <td width="169" height="30" widtd="74">登陆IP</td>
              <td widtd="249" height="30">操作</td>
               <td width="270" height="30">&nbsp;</td>
        </tr>
<? foreach($list as $i=>$m){?>
                 <tr align="center" class="list">
          <td width="107" height="30" valign="top" style="padding-right:10px;" align="left"><?=$m['username']?></td>
          <td width="85" height="30"><?=$m['logn']?></td>
         
            <td width="171" height="30"><?=date('Y-m-d H:i',$m['logintime'])?></td>
            <td height="30"><?=$m['logip']?></td>
             <td width="178" height="30"><a href="phpleft.php?file=admin&show=bj&id=<?=$m['id']?>"><img src="<?=PL_URL?>ico/edit.png" align="absmiddle" alt="管理字段" border="0"></a>&nbsp;<a href="?file=post_center&post=admindel&id=<?=$m['id']?>" onClick="if(!confirm('请谨慎操作！确定删除?')) return false;" ><img src="<?=PL_URL?>ico/del.png" align="absmiddle" alt="删除管理员" border="0"></a></td>
              <td height="30">&nbsp;</td>
             
        </tr>
        
        <? }?>
        </table>


<? }?>
  
</body>
</html>
