<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>vodcms.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script src="<?php echo $this->basedir;?>js/jquery.form.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#form1").validate({
		rules:{
			username:{
				required:true,
				maxLength:30,
				minLength:5
			},
			password:{
				required:true,
				maxLength:30,
				minLength:5
			},
			passwd:{
				required:true,
				equalTo:"#password"
			},
			group:{
				required:true
			}
		}
	})
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">添加管理员</div>
<form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>administrator/add/">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="tab">
  <tr class="row">
    <td width="17%" align="right" class="align-right">登陆账户：</td>
    <td width="83%">
      <input name="username" type="text" id="username" />
      *5-30个字符的数字、字母或者数字字母组合    </td>
  </tr>

  <tr class="row">
    <td align="right" class="align-right">登陆密码：</td>
    <td><input name="password" type="password" id="password" />
      *6-30个字符的数字、字母或者数字字母组合    </td>
  </tr>
  <tr class="row">
    <td align="right" class="align-right">确认密码：</td>
    <td><input name="passwd" type="password" id="passwd" />
      *6-30个字符的数字、字母或者数字字母组合    </td>
  </tr>
  <tr class="row">
    <td align="right" class="align-right">姓名：</td>
    <td><input name="realname" type="text" id="realname" /></td>
  </tr>
  <tr class="row">
    <td align="right" class="align-right">所属用户组：</td>
    <td><select name="group[]" id="group" title="请选择用户组">
      <option value="">请选择管理组</option>
	  <?php echo $this->option;?>
    </select>
    </td>
  </tr>
  <tr class="row">
    <td align="right" class="align-right">&nbsp;</td>
    <td><input type="submit" class="btn" value="提交" /></td>
  </tr>
</table>
</form>
<div class="BlockBar">添加管理员</div>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="tab">
  <tr class="sub">
    <td width="13%" align="center">编号</td>
    <td width="16%" align="center">登录名</td>
    <td width="17%" align="center">姓名</td>
    <td width="22%" align="center">组名</td>
    <td width="17%" align="center">上次登陆</td>
    <td width="15%" align="center">管理</td>
  </tr>
  <tbody id="ta">
 <?php
 foreach($this->listAdmin as $row){?>
  <tr class="row">
    <td align="center" class="align-center"><?php echo $row['id'];?></td>
    <td><?php echo $row['username'];?></td>
    <td><?php echo $row['realname'];?></td>
    <td><?php echo $row['group'];?></td>
    <td><?php echo date('Y-m-d H:i:s', $row['lastime']);?></td>
    <td align="center"><a href="<?php echo $this->installdir;?>administrator/modify/id/<?php echo $row['id'];?>/">修改</a> <a href="<?php echo $this->installdir;?>administrator/locked/id/<?php echo $row['id'];?>/"><?php echo $row['locked'] ? '禁用中' : '启用中';?></a> <a href="<?php echo $this->installdir;?>administrator/delete/id/<?php echo $row['id'];?>/" onclick="return confirm('确认删除吗?')">删除</a></td>
  </tr>
  <?php
  }?>
  </tbody>
</table>

      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

