<%@ Page Language="C#" AutoEventWireup="true" Codebehind="IfarmeRegister.aspx.cs"
    Inherits="LJCMS.IfarmeRegister" %>

<!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 runat="server">
    <title>用户资料</title>



    <link href="Css/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="Js/checkform.js"></script>

    <script type="text/javascript" src="js/jquery-latest.pack.js"></script>

    <link type="text/css" rel="stylesheet" href="Css/validator.css"></link>

    <script src="js/formValidator_min.js" type="text/javascript"></script>

    <script src="js/formValidatorRegex.js" type="text/javascript"></script>

    <style>
.tdbg5 {
	BACKGROUND: #e0e0d7; LINE-HEIGHT: 120%; width:300px;
}
.tdbg {
	BACKGROUND: #f1f1ed; LINE-HEIGHT: 120%; 
}
.border {
	BORDER-RIGHT: #e0e0d7 1px solid; BORDER-TOP: #e0e0d7 1px solid; BORDER-LEFT: #e0e0d7 1px solid; BORDER-BOTTOM: #e0e0d7 1px solid
}
</style>

    <script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({onError:function(msg){alert(msg)}});
	$("#UserName_Input").formValidator({onshow:"请输入用户名",onfocus:"用户名不能为空",oncorrect:"用户名合法"}).InputValidator({min:1,onerror:"用户名不能为空,请确认"}).RegexValidator({regexp:"^[a-zA-Z][a-zA-Z0-9_]{4,15}$",onerror:"你输入的用户名不正确"});
	$("#Receiver_Input").formValidator({onshow:"请输入真实姓名",onfocus:"姓名不能为空",oncorrect:"姓名合法"}).InputValidator({min:1,onerror:"姓名不能为空,请确认"}).RegexValidator({regexp:"[\u4e00-\u9fa5]",onerror:"你输入的姓名不正确"});
	$("#PassWord_Input1").formValidator({onshow:"请输入密码",onfocus:"密码不能为空",oncorrect:"密码合法"}).InputValidator({min:1,onerror:"密码不能为空,请确认"});
	$("#PassWord_Input2").formValidator({onshow:"请输入重复密码",onfocus:"两次密码必须一致哦",oncorrect:"密码一致"}).InputValidator({min:1,onerror:"重复密码不能为空,请确认"}).CompareValidator({desID:"PassWord_Input1",operateor:"=",onerror:"2次密码不一致,请确认"});
	$("#Mobile_Input").formValidator({empty:true,onshow:"请输入你的手机号码，可以为空哦",onfocus:"你要是输入了，必须输入正确",oncorrect:"谢谢你的合作",onempty:"你真的不想留手机号码啊？"}).InputValidator({min:11,max:11,onerror:"手机号码必须是11位的,请确认"}).RegexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的手机号码格式不正确"});;
	$("#Phone_Input").formValidator({empty:true,onshow:"请输入你的联系电话，可以为空哦",onfocus:"格式例如：010-12345678",oncorrect:"谢谢你的合作",onempty:"你真的不想留联系电话了吗？"}).RegexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$",onerror:"你输入的联系电话格式不正确"});
	$("#Email_Input").formValidator({onshow:"请输入邮箱",onfocus:"邮箱至少6个字符,最多100个字符",oncorrect:"恭喜你,你输对了",defaultvalue:"@"}).InputValidator({min:6,max:100,onerror:"你输入的邮箱长度非法,请确认"}).RegexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
	$("#HomePage_Input").formValidator({empty:true,onshow:"请输入你的网址，可以为空哦",onfocus:"格式例如：www.liangjing.org",oncorrect:"谢谢你的合作",onempty:"你真的不想留网址了吗？"}).RegexValidator({regexp:"[a-zA-z]+://[^\s]*",onerror:"你输入的网址不正确"});
	$("#Question_Input").formValidator({onshow:"请输入提示问题",onfocus:"邮箱至少6个字符,最多100个字符",oncorrect:"恭喜你,你输对了"}).InputValidator({min:6,max:100,onerror:"你输入的提示问题长度非法,请确认"});
	$("#Answer_Input").formValidator({onshow:"请输入回答",onfocus:"回答至少6个字符,最多100个字符",oncorrect:"恭喜你,你输对了"}).InputValidator({min:6,max:100,onerror:"你输入的回答长度非法,请确认"});
	$("#CompanyName_Input").formValidator({onshow:"请输入单位名称",onfocus:"单位名称至少6个字符,最多100个字符",oncorrect:"恭喜你,你输对了"}).InputValidator({min:6,max:100,onerror:"你输入的单位名称长度非法,请确认"});
	$("#UAdd_Input").formValidator({onshow:"请输入详细地址",onfocus:"详细地址至少6个字符,最多100个字符",oncorrect:"恭喜你,你输对了"}).InputValidator({min:6,max:100,onerror:"你输入的详细地址长度非法,请确认"});
	$("#PostCode_Input").formValidator({onshow:"请输入邮编",onfocus:"邮编不能为空",oncorrect:"邮编合法"}).InputValidator({min:6,max:6,onerror:"你输入的邮编长度非法,请确认"});
	$("#Fax_Input").formValidator({empty:true,onshow:"请输入你的联系电话，可以为空哦",onfocus:"格式例如：010-12345678",oncorrect:"谢谢你的合作",onempty:"你真的不想留传真了吗？"}).RegexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$",onerror:"你输入的传真格式不正确"});
});
function retcheck(evt)
{
  if(jQuery.formValidator.PageIsValid('1'))
  {
  return checkForm(evt);
  }
  else
  {
  return false;
  }
  
  
}
function tip(mess)
{

alert(mess);
history.back();

}

    </script>

</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data" onsubmit="javascript:return retcheck(this)">
        <table class="border" cellspacing="1" cellpadding="5" width="95%" align="center"
            border="0">
            <tr class="tdbg">
                <td valign="top" height="100">
                    <table cellspacing="1" cellpadding="2" width="95%" align="center" bgcolor="#ffffff">
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                用户名：</td>
                            <td>
                                <input name="UserName_Input" id="UserName_Input" type="text" />
                            </td>
                            <td>
                                <div id="UserName_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                真实姓名：</td>
                            <td>
                                <input name="Receiver_Input" id="Receiver_Input" type="text" />
                            </td>
                            <td>
                                <div id="Receiver_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                性别：</td>
                            <td>
                                <input name="Sex_Input" id="Sex_Input1" type="radio" value="1" checked />男
                                <input name="Sex_Input" id="Sex_Input2" type="radio" value="2" />女
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                用户密码：</td>
                            <td>
                                <input name="PassWord_Input1" id="PassWord_Input1" type="password" />
                            </td>
                            <td>
                                <div id="PassWord_Input1Tip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                确认密码：</td>
                            <td>
                                <input name="PassWord_Input2" id="PassWord_Input2" type="password" />
                            </td>
                            <td>
                                <div id="PassWord_Input2Tip" style="width:200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                密码保护问题：</td>
                            <td>
                                <input type="text" id="Question_Input" name="Question_Input" />
                            </td>
                            <td>
                                <div id="Question_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                回答：</td>
                            <td>
                                <input type="text" id="Answer_Input" name="Answer_Input" />
                            </td>
                            <td>
                                <div id="Answer_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                单位名称：</td>
                            <td>
                                <input type="text" id="CompanyName_Input" name="CompanyName_Input" />
                            </td>
                            <td>
                                <div id="CompanyName_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                详细地址：</td>
                            <td>
                                <input type="text" id="UAdd_Input" name="UAdd_Input" />
                            </td>
                            <td>
                                <div id="UAdd_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                邮政编码：</td>
                            <td>
                                <input type="text" id="PostCode_Input" name="PostCode_Input" />
                            </td>
                            <td>
                                <div id="PostCode_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                联系电话：</td>
                            <td>
                                <input type="text" id="Phone_Input" name="Phone_Input" />
                            </td>
                            <td>
                                <div id="Phone_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                传真号码：</td>
                            <td>
                                <input type="text" id="Fax_Input" name="Fax_Input" />
                            </td>
                            <td>
                                <div id="Fax_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                手机号码：</td>
                            <td>
                                <input type="text" id="Mobile_Input" name="Mobile_Input" />
                            </td>
                            <td>
                                <div id="Mobile_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                电子信箱：</td>
                            <td>
                                <input type="text" id="Email_Input" name="Email_Input" />
                            </td>
                            <td>
                                <div id="Email_InputTip" style="width:200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                网址：</td>
                            <td>
                                <input type="text" id="HomePage_Input" name="HomePage_Input" />
                            </td>
                            <td>
                                <div id="HomePage_InputTip" style="width: 200px">
                                </div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                验证码：</td>
                            <td>
                                <asp:TextBox ID="imgcode" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <img src="CodeImage.aspx" alt="验证码" />
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                            </td>
                            <td>
                                <asp:Button ID="btnPwdModify" runat="server" Text="保存" Width="66px" OnClick="btnPwdModify_Click" />
                            </td>
                            <td>
                                <input type="reset" value="重写" id="btres" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
