<%@ Page Language="C#" MasterPageFile="~/webUser/MasterPage.master" AutoEventWireup="true" Inherits="webUser_userModi" Title="Untitled Page" Codebehind="userModi.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content1" Runat="Server">
	<script language="javascript" src="../system/user/js/adduser.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
		var objAjax=new JAjax();
		var addU=new adduserClass();
//	    var URL=location.href;
//		var uid=readPar(URL,"uid");
		function loadPage1(){
//			loadBodyclick();
//			writeFettleLeft("提示:你可以在用户管理-自定义用户字段中设置用户字段.");  //
		    var option=new optionClass();
		   	var oTitle=document.getElementsByName("optionTitle")
			var oBody=document.getElementsByName("optionBody")
			option.titleObj=oTitle;
			option.bodyObj=oBody;
			option.create();  //创建选项卡
			$("winDiv").style.display="";
			var h=Element.getHeight("winDiv");
			
			
			var h1=Element.getHeight(document.getElementById("optionTitle"))+1;
			for (var i=0;i<oBody.length;i++){
				oBody[i].style.height="350px";
			}
			form1.userPhotoUrl.value="../system/user/img/defaultPhoto.gif";
			addU.loadExinfo("../system/user/");
			if (uid!=null & uid !=""){
				form1.UserName.readOnly=true;
				addU.loadUserRecord(uid,"../system/user/");
				$("saveButton").value="修改";
				$("saveButton").style.top="530px";
//				form1.PassWord1.isV="0";
//				form1.PassWord.isV="0";
//				form1.PassWord1.notNull="0";
//				form1.PassWord.notNull="0";
//				form1.PassWord1.readOnly=true;
//				form1.PassWord.readOnly=true;
				//document.getElementById("userPhotoIMG").src=form1.userPhotoUrl.value;
				
			}else{
			
			}

		}
	</script>

 <div class="maxTitle">
              修改用户资料
 </div>
<div style="position:relative;display:none;width:630px;left:10px;top:5px;z-index:2;" id="winDiv">
<form action="../system/user/saveUser.aspx?" method="post" name="form1" id="form1">	
 <div  style="position:absolute;top:0px;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  style="border: 1px solid #b5d1e4;" border="0" width="610" cellspacing="0" cellpadding="0">
					<tr>
						<td class="infoLineLeft1" style="width:100px; height: 41px;" >用户名</td>
					  <td style="width:251px" class="infoLineLeft1">
	  					  <input  isV="1" title="用户名" max="20" notNull="1" isNum="0"  type="text" name="UserName"  id="UserName"  size="27">&nbsp;
						  </td>
						<td colspan="2" rowspan="5" align="center" class="infoLineR1" >
						<table border="0" width="200" id="table2">
							<tr>
								<td style="width:40px"></td>
							    <td style="width: 202px"><input name="userPhotoUrl" type="hidden" id="userPhotoUrl"></td>
							</tr>
							<tr>
								<td  colspan="2" style="height:182px;">
								<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="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 class="infoLineLeft2" style="width:100px; height: 41px;">EMAIL</td>
					  <td style="width:251px" class="infoLineLeft2"><input  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; height: 41px;" class="infoLineLeft1">手机号</td>
						<td style="width:251px" class="infoLineLeft1"><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; height: 41px;" class="infoLineLeft2">密码提示问题</td>
					  <td style="width:251px" class="infoLineLeft2"><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; height: 41px;" class="infoLineLeft1">密码提示答案</td>
					  <td style="width:251px; height: 63px;" class="infoLineLeft1"><input isV="1" title="密码提示答案" max="20" notNull="1" isNum="0"   type="text" name="PasAnswer" id="PasAnswer" size="27" onclick="return PasAnswer_onclick()">
						  <span class="STYLE1">*</span></td>
					</tr>
					<tr>
						<td  style="width:100px; height: 19px;" class="infoLineR2">签名</td>
						<td  width="610" colspan="3" style="height: 19px" class="infoLineR2">&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>
	</form>
	<div style="position:absolute;z-index:8;top:390px;left:0px;text-align:center;width:100%" id="bDiv"	>
    	<input type="button" value="提交" id="saveButton" onclick="addU.save()"/>
	</div>
</div>

<script language="javascript" type="text/javascript">
setTimeout("loadPage1()",300);
function PasAnswer_onclick() {

}

</script>
 
</asp:Content>

