<%@ Page Language="C#" AutoEventWireup="true" Inherits="webUser_regUser" Codebehind="saveRegUser.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}

.inputText{
	width:200px;
}

.optionCss{
	background-image:url('../system/skins/IMG/toolsBG.gif');
	width:100%;
	height:32px;
	padding:8px 0px 2px 15px;
	color:#ffffff;
}

-->
    </style>
   
</head>
<body onLoad="loadPage()">
<center>
<form action="../system/user/saveUser.aspx?" method="post" name="form1" id="form1">	
<div style="padding:0px 0px 20px 0px;background-color:#DDEEFF;width:635px;border-left: 1px solid #000080; border-right: 1px solid #000080; border-bottom: 1px solid #000080">
 <div class="optionCss">基本资料</div>
			<table border="0" width="610" >
					<tr>
						<td style="width:100px">用户名</td>
					  <td style="width:251px">
					  <input class="inputText" 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="选择头像" onclick="selimg()"/>
							  </td>
							</tr>
						</table>						</td>
					</tr>
					<tr>
						<td  style="width:100px">用户密码</td>
					  <td style="width:251px">
					  <input  class="inputText" 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" class="inputText" 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 class="inputText"  isV="1" title="EMAIL" max="50" 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  class="inputText" 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 class="inputText" 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  class="inputText" 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  style="overflow:visible">
				<!--扩展部分开始--><div  class="optionCss" >扩展资料</div>
				   <div  style="padding:4px;overflow:auto;" id="userEx">
						
						
				   </div>
				   <!--扩展部分完-->
				</div>	
	

	

	
</div>	<input style="margin-top:10px;" type="button" value="提交" id="saveButton" onClick="addU.save()"/>
 </form>
</center>
</body>
</html>
