<%@ Page Language="C#" AutoEventWireup="true" Inherits="webUser_regUser" Codebehind="regUser.aspx.cs" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" type="text/css" href="../system/skins/css/Sys.css" />
	 <link rel="stylesheet" type="text/css" href="style/userMain.css" />
	<script language="javascript" src="../system/user/js/adduser.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../system/js/JFramework.js"></script>
    <script language="javascript" type="text/javascript" src="../system/js/sys.js"></script>
	<script language="javascript" type="text/javascript">
		var objAjax=new JAjax();
		var addU=new adduserClass();
	    var uid="";
		addU.loadUserRecord(uid,"../system/user/");
		addU.addType=1;
		
		function loadPage(){
		    
			loadBodyclick();
			writeFettleLeft("提示:你可以在用户管理-自定义用户字段中设置用户字段.");  //
		    var option=new optionClass();
		   	var oTitle=document.getElementsByName("optionTitle")
			var oBody=document.getElementsByName("optionBody")
			option.titleObj=oTitle;
			option.bodyObj=oBody;
			option.create();  //创建选项卡
			var h=Element.getHeight(document.getElementById("winDiv"));
			var h1=Element.getHeight(document.getElementById("optionTitle"))+1;
			for (var i=0;i<oBody.length;i++){
				oBody[i].style.height=(h-h1-230)+"px";
			}
			bDiv.style.top=(h-h1-110)+"px";
			form1.userPhotoUrl.value="img/defaultPhoto.gif";
			
			
			addU.loadExinfo("../system/user/");
			form1.UserName.focus();
			

		}
	</script>
    <title>新增用户</title>
    <style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
    </style>
   
</head>
<body onload="loadPage()">
<form action="../system/user/saveUser.aspx?" method="post" name="form1" id="form1">	
<div style="width:640px;height:80%;top:0px;left:10px;position:absolute;z-index:2;background-color:#ffffff" id="winDiv">
 <div  style="position:absolute;top:80px;left:0px;width:100%;height:90%" id="formDiv">        
			<div style="width:100%;position:absolute;left:10px;top:0px;z-index:2" id="oTitle">
				<div name="optionTitle"  id="optionTitle" >基本资料</div>
				<div name="optionTitle"  id="optionTitle" >扩展资料</div>
			</div>
			
			
		   <div  style="width:100%;height:200px;position:absolute;top:31px;z-index:1" id="oBodyDiv">
				<div name="optionBody"  id="optionBody"  style="">
				     <!--基本开始-->
					 <div style="padding:4px;text-align:center;">
				 
				 
				 
			<table border="0" width="610" >
					<tr>
						<td style="width:100px">用户名</td>
					  <td style="width:251px">
					  <input  isV="1" title="用户名" max="20" notNull="1" isNum="0"  type="text" name="UserName"  id="UserName"  size="27"/>
						  <span class="STYLE1">*</span></td>
						<td colspan="2" rowspan="7" >
						<table border="0" width="250" id="table2">
							<tr>
								<td style="width:40px"></td>
							    <td><input name="userPhotoUrl" type="hidden" id="userPhotoUrl"></td>
							</tr>
							<tr>
								<td  colspan="2">
								<div  style="width:200px;height:180px;overflow:hidden;text-align:center">
									<div style="width:160px;height:180px;overflow:hidden;border: 1px solid #898c95;text-align:center">
										<img style="height:180px;" src="../system/user/img/defaultPhoto.gif" id="userPhotoIMG">
									</div>
								</div>
								</td>
							</tr>
							<tr>
								<td colspan="2"  align="center" style="width:200px;text-align:center ">
								  <input type="button" value="上传头像" onclick="addU.selectPhoto('../system/')"/>
								  <input type="button" value="选择头像"/>
							  </td>
							</tr>
						</table>						</td>
					</tr>
					<tr>
						<td  style="width:100px">用户密码</td>
					  <td style="width:251px">
					  <input  isV="1" title="密码" max="20" notNull="1" isNum="0"  min="6"   type="password" name="PassWord" id="PassWord" size="27">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px">确认密码</td>
					  <td style="width:251px"><input isV="1" title="确认密码" max="20" notNull="1" isNum="0" min="6"  type="password" name="PassWord1" id="PassWord1" size="27">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px">EMAIL</td>
					  <td style="width:251px"><input  isV="1" title="EMAIL" max="20" notNull="1" isMail="1" isNum="0"   type="text" name="Email" id="Email" size="27">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px">手机号</td>
						<td style="width:251px"><input  isV="1" title="手机" max="12" min="11" notNull="0" isNum="0"   type="text" name="Mobile" id="Mobile" size="27"></td>
					</tr>
					<tr>
						<td  style="width:100px">密码提示问题</td>
					  <td style="width:251px"><input isV="1" title="密码提示问题" max="20" notNull="1" isNum="0"   type="text" name="PasQuestion" id="PasQuestion" size="27">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px">密码提示答案</td>
					  <td style="width:251px"><input isV="1" title="密码提示答案" max="20" notNull="1" isNum="0"   type="text" name="PasAnswer" id="PasAnswer" size="27">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px">签名</td>
						<td  width="610" colspan="3">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="4"  width="630"><textarea isV="1" title="签名" max="100" notNull="0" isNum="0"   rows="5" name="idiograph" id="idiograph" cols="74"></textarea></td>
					</tr>
					</table>
					
				    </div>
				   <!--基本分完-->
				</div>
			
				<div name="optionBody"  id="optionBody"  style="overflow:visible">
				<!--扩展部分开始-->
				   <div  style="padding:4px;overflow:auto;" id="userEx">
						
						
				   </div>
				   <!--扩展部分完-->
				</div>	
		</div>   
	</div>
	<div style="position:absolute;top:10px;left:0px;text-align:center;width:100%" id="bDiv"	>
	<input type="button" value="提交" id="saveButton" onclick="addU.save()"/></div>
</div>
 </form>
</body>
</html>
