<%@ Page Language="C#" MasterPageFile="~/home/main.Master" AutoEventWireup="true"
    Codebehind="userModi.aspx.cs" Inherits="ZYDN.Web.home.userModi" Title="无标题页" %>

<%@ MasterType VirtualPath="~/home/main.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="rTop_1">
    </div>
    <div class="rTop_2">

        <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 style="width:700px;">
            <form action="../system/user/saveUser.aspx?" method="post" name="form1" id="form1">
                <div id="formDiv">
                    <div style="width: 100%;" class="topOptionList">
                        <div style="width: 20px; float: left;">
                        </div>
                        <div name="optionTitle" id="optionTitle" class="optionCar">
                            基本资料</div>
                        <div name="optionTitle" id="optionTitle" class="optionCar_1">
                            详细资料</div>
                        <div class="optionCar_1">
                            <a href="modiPass.aspx">修改密码</a>
                        </div>
                    </div>
                    <div class="topOptionListBody" id="oBodyDiv">
                        <div name="optionBody" id="optionBody" style="">
                            <!--基本开始-->
                            <div style="padding: 4px; text-align: center;">
                                <table style="border: 1px solid #b5d1e4;" border="0" width="680" 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; width: 100%; visibility: hidden;">
                            <!--扩展部分开始-->
                            <div style="padding: 4px; overflow: auto; width: 630px;" id="userEx">
                            </div>
                            <!--扩展部分完-->
                        </div>
                    </div>
                </div>
            </form>
            <div style="text-align: center; width: 100%" id="bDiv">
                <input type="button" value="提交" id="saveButton" onclick="addU.save()" />
            </div>
        </div>
    </div>
    <div class="rTop_3">
    </div>

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

}

  var nCar =new  carClass();
                nCar.optionDiv="optionTitle";
                nCar.bodyDiv="optionBody";
                nCar.thisClass="optionCar";
                nCar.className="optionCar_1";
                setTimeout("nCar.Create()",50);

    </script>

</asp:Content>
