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

<!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 id="Head1" runat="server">
    <title>用户资料</title>
        <script type="text/javascript">
    <!--
    if (self==top) {
self.location.href="EnUserRegister.aspx";
}
//-->
    </script>
    <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:"please input username",onfocus:"please input username",oncorrect:"Right"}).InputValidator({min:1,onerror:"the user name that you input is invalid, please confirm"}).RegexValidator({regexp:"^[a-zA-Z][a-zA-Z0-9_]{4,15}$",onerror:"Worry"});
	$("#Receiver_Input").formValidator({onshow:"please input realy username",onfocus:"please input realy username",oncorrect:"Right"}).InputValidator({min:1,onerror:"Do not be empty your name, please confirm"}).RegexValidator({regexp:"[\u4e00-\u9fa5]",onerror:"Worry"});
	$("#PassWord_Input1").formValidator({onshow:"please input your password",onfocus:"Do not be empty your password",oncorrect:"The password is valid"}).InputValidator({min:1,onerror:"Do not be empty your password, please confirm"});
	$("#PassWord_Input2").formValidator({onshow:"Please input your password again",onfocus:"The password you input twice must be equal",oncorrect:"The password is equal"}).InputValidator({min:1,onerror:"Repeat you password which cannot be empty,please confirm"}).CompareValidator({desID:"PassWord_Input1",operateor:"=",onerror:"It is not equal that you input the password twice , please confirm"});
	$("#Mobile_Input").formValidator({empty:true,onshow:"please input your Mobile",onfocus:"If you input like that,eg:13146948246",oncorrect:"Thank you for your corpoartion",onempty:"Don't you want to leave your contact number？"}).InputValidator({min:11,max:11,onerror:"It is incorrect form that you input your contact number"}).RegexValidator({regexp:"mobile",datatype:"enum",onerror:"It is incorrect form that you input your contact number"});;
	$("#Phone_Input").formValidator({empty:true,onshow:"please input your Phone",onfocus:"If you input like that,eg:010-81991660",oncorrect:"Thank you for your corpoartion",onempty:"Don't you want to leave your contact number？"}).RegexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$",onerror:"It is incorrect form that you input your contact number"});
	$("#Email_Input").formValidator({onshow:"please input Email!!",onfocus:"at least 6 letters for E-mail address, and don't exceed 100 letters",oncorrect:"Congratulations",defaultvalue:"@"}).InputValidator({min:6,max:100,onerror:"It is invaild that you input your E-mail address,please confirm"}).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:"It is incorrect form that you input your E-mail "});
	$("#HomePage_Input").formValidator({empty:true,onshow:"please input your WebSite!!",onfocus:"If you input like that，eg：'http://www.liangjing.org'",oncorrect:"Thank you for your corporation",onempty:"Don't you want to leave your website？"}).RegexValidator({regexp:"[a-zA-z]+://[^\s]*",onerror:"It is incorrect form that you input your website"});
	$("#Question_Input").formValidator({onshow:"Please set your question for the password",onfocus:"at least 6 letters, within 100 letters",oncorrect:"The form is correct"}).InputValidator({min:6,max:100,onerror:"The form is incorrect，please input again"});
	$("#Answer_Input").formValidator({onshow:"please input your Answer",onfocus:"at least 6 letters, within 100 letters",oncorrect:"The form is correct"}).InputValidator({min:6,max:100,onerror:"he form is incorrect，please input again"});
	$("#CompanyName_Input").formValidator({onshow:"please input Company Name ",onfocus:"at least 6 letters for Company Name, and don't exceed 100 letters",oncorrect:"this Company Name is available"}).InputValidator({min:6,max:100,onerror:"the Company Name that you input is invalid, please confirm"});
	$("#UAdd_Input").formValidator({onshow:"please input Address",onfocus:"at least 6 letters for Address, and don't exceed 100 letters",oncorrect:"this Address is available"}).InputValidator({min:6,max:100,onerror:"the Address that you input is invalid, please confirm"});
	$("#PostCode_Input").formValidator({onshow:"please input Post Code!!",onfocus:",at least 6 letters",oncorrect:"this Post Code is available"}).InputValidator({min:6,max:6,onerror:"the Post Code that you input is invalid, please confirm"});
	$("#Fax_Input").formValidator({empty:true,onshow:"please input Fax",onfocus:"If you input like that,eg:010-81991660",oncorrect:"Thank you for your corporation",onempty:"Don't you want to leave your Fax？"}).RegexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$",onerror:"It is incorrect form that you input your contact number"});
});
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">
                                Name：</td>
                            <td>
                                <input name="UserName_Input" id="UserName_Input" type="text" class ="tbinput" />
                            </td>
                            <td>
                            <div id="UserName_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Realy Name：</td>
                            <td>
                                <input name="Receiver_Input" id="Receiver_Input" type="text" class ="tbinput" />
                            </td>
                            <td>
                            <div id="Receiver_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Sex：</td>
                            <td>
                                <input name="Sex_Input" id="Sex_Input1" type="radio" value="1" checked />M
                                <input name="Sex_Input" id="Sex_Input2" type="radio" value="2" />F
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                PassWord：</td>
                            <td>
                                <input name="PassWord_Input1" id="PassWord_Input1" type="password"  class ="tbinput"/>
                            </td>
                            <td>
                            <div id="PassWord_Input1Tip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Confirm PassWord：</td>
                            <td>
                                <input name="PassWord_Input2" id="PassWord_Input2" type="password" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="PassWord_Input2Tip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Question：</td>
                            <td>
                                <input type="text" id="Question_Input" name="Question_Input" class ="tbinput"/>
                            </td>
                            
                            <td>
                            <div id="Question_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Answer：</td>
                            <td>
                                <input type="text" id="Answer_Input" name="Answer_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="Answer_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Company Name ：</td>
                            <td>
                                <input type="text" id="CompanyName_Input" name="CompanyName_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="CompanyName_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Receiving Address：</td>
                            <td>
                                <input type="text" id="UAdd_Input" name="UAdd_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="UAdd_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Postal Code：</td>
                            <td>
                                <input type="text" id="PostCode_Input" name="PostCode_Input" class ="tbinput" />
                            </td>
                            <td>
                            <div id="PostCode_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Phone：</td>
                            <td>
                                <input type="text" id="Phone_Input" name="Phone_Input" class ="tbinput"/>
                            </td>
                            <td>
                             <div id="Phone_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Fax：</td>
                            <td>
                                <input type="text" id="Fax_Input" name="Fax_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="Fax_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Mobile：</td>
                            <td>
                                <input type="text" id="Mobile_Input" name="Mobile_Input" class ="tbinput" />
                            </td>
                            <td>
                             <div id="Mobile_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Email：</td>
                            <td>
                                <input type="text" id="Email_Input" name="Email_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="Email_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Web Site：</td>
                            <td>
                                <input type="text" id="HomePage_Input" name="HomePage_Input" class ="tbinput"/>
                            </td>
                            <td>
                            <div id="HomePage_InputTip" style="width:200px"></div>
                            </td>
                        </tr>
                        <tr class="tdbg">
                            <td class="tdbg5" align="right">
                                Code：</td>
                            <td>
                               <asp:TextBox ID ="imgcode" runat ="server" CssClass ="tbinput"></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="Submit" Width="66px" OnClick="btnPwdModify_Click" />
                            </td>
                            <td>
                            <input type ="reset" value ="Reset" id="btres"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

