<!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" />
<link href="<?php echo $this->basedir;?>js/datepicker.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/ui.datepicker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#lifetime').datepicker();
	$("#form1").validate({
		rules:{
			username:{
				required:true,
				maxlength:30,
				minlength:5,
				remote:'<?php echo $this->installdir;?>member/check/'
			},
			password:{
				required:true,
				maxlength:30,
				minlength:6
			},
			passwd:{
				required:true,
				equalTo:'#password'
			},
			email:{
				required:true,
				email:true,
				remote:'<?php echo $this->installdir;?>member/check/'
			}
		},
		success: function(label) {
			label.text('ok').addClass("success");
		},
		messages:{
			username:{
				required:'请填写5-30个字符内的用户名!',
				maxlength:'你输入的字符超过了30个字符!',
				minlength:'您输入的字符太短!请输入5-30个字符',
				remote:'用户名已经被占用,请更换！'
			},
			email:{
				required:'请填写邮箱地址',
				remote:'邮箱地址已经被占用,请更换！'
			}
		}
	})
});
</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>
        <table cellspacing="1" cellpadding="4" class="tab">
		<form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>user/add/">
			   <tr class="row">
				<td width="14%" class="align-center">用户名：</td>
				<td>
			     <input name="username" type="text" id="username" class="input" />
			     *				例如：jdzcn 限50个字符</td>
			  </tr>
			   <tr class="row">
			     <td class="align-center">登录密码：</td>
			     <td><input name="password" type="password" id="password" class="input" />
			       * 请输入6-30个字符或数字的组合 </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">确认密码：</td>
			     <td><input name="passwd" type="password" id="passwd" value="" class="input" />
			       * 在输入一次登录密码 </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">邮箱地址：</td>
			     <td><input name="email" type="text" id="email" class="input" />
			       * 例如：2298936@qq.com</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">性别：</td>
			     <td><input name="gender" type="radio" class="radio" value="1" checked="checked" />
			       男
		           <input name="gender" type="radio" class="radio" value="2" />
		           女</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">消费模式：</td>
			     <td><input name="usertype" type="radio" class="radio" value="1" checked="checked" />
		         包月消费
	             <input name="usertype" type="radio" class="radio" value="0" />
	             计点消费</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">帐户点数：</td>
			     <td><input name="point" type="text" id="point" value="0" /></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">包月到期：</td>
			     <td><input name="lifetime" type="text" class="time" id="lifetime" /></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">&nbsp;</td>
			     <td><input type="submit" class="btn" value=" 添 加 " />&nbsp;<input type="button" class="btn" value=" 返回上一页 " onclick="history.back()" /></td>
	        </tr>
        </form>
        </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>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

