<%@ page autoeventwireup="true" inherits="_Student_N25_Basicl_Student_Modify, App_Web_59rphgcb" debug="true" language="C#" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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>

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

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

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

 <%--   <link href="../alert/jquery.alert.css" rel="stylesheet" type="text/css" />--%>

    <script src="../alert/jquery.easydrag.js" type="text/javascript"></script>

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

    <style type="text/css">
.tablenotd{
   border:none;
}
.tablenotd td{
border:none;
}
table{
    border-collapse:collapse;
}
table{
    border: 1px solid #606275;
    border-collapse: collapse;
    font-size: 9pt;
    line-height: 25px;
}
table td{
    background: none repeat scroll 0 0 #FFFFFF;
    border-right: 1px solid #606275;
    border-top: 1px solid #606275;
	border-left: 1px solid #606275;
	border-bottom: 1px solid #606275;
}
table .lbl{
	text-align:right;
	 background-color:#F0F0F0;
}
table .title{
	text-align:center;
}
table .indent{
	text-indent:10px;
}
table .tip{
	text-indent:10px; color:#0000FF;
}
textarea{
resize: none; 
}
.DataList
{
   border:none;
}
.DataList td {
   border:none;
}
.DataList .table {
    border-right: 1px solid #606275;
    border-top: 1px solid #606275;
	border-left: 1px solid #606275;
}
.DataList .table td {
    border-right: 1px solid #606275;
    border-top: 1px solid #606275;
	border-left: 1px solid #606275;
}
</style>

<script type="text/javascript" >
$(window.document).ready(function () {
    $("#btn").click(function () {

        var StuItemNo = $.trim($("#txtStuItemNo").val());
        var StuPwd = $.trim($("#txtStuPwd").val());
        var StuClaId=$.trim($("#ddlClaId").val());
        var StuName = $.trim($("#txtStuName").val());
        var StuSex = $.trim($("#txtStuSex").val());
        var StuNative = $.trim($("#txtStuNative").val());
        var StuBirthDate = $.trim($("#txtStuBirthDate").val());
        var StuProperties = $.trim($("#txtStuProperties").val());
        var StuRegion = $.trim($("#txtStuRegion").val());
        var StuIs = $.trim($("#txtStuIs").val());
        var StuFamilyAddress = $.trim($("#txtStuFamilyAddress").val());
        var StuTel = $.trim($("#txtStuTel").val());
        var StuPolitical = $.trim($("#txtStuPolitical").val());
        var StuSpecialty = $.trim($("#txtStuSpecialty").val());

        var StuPhoto = $("#txtStuPhoto").val();
        var StuDate = $("#txtStuDate").val();

        if (StuItemNo == "") return Msg("抱歉!请输入学籍号!", "txtStuItemNo");
        var IsStuItemNo = /^[a-zA-Z0-9]{6,20}$/;
        if (!IsStuItemNo.test(StuItemNo)) return Msg("抱歉!学籍号 只能输入 0-9或字母大小组合，且长度6位至20位之间!", "txtStuUser");

        if (StuClaId=="") return Msg("抱歉!请选择班级!","ddlClaId");
        
      //  if (StuPwd == "") return Msg("抱歉!请输入密码!", "txtStuPwd");

        if (StuName == "") return Msg("抱歉!请输入姓名!", "txtStuName");

        var IsStuName = /^[\u4e00-\u9fa5]{2,10}$/;
        if (!IsStuName.test(StuName)) return Msg("抱歉!姓名 只能中文，且长度2位至10位之间!", "txtStuName");

        if (StuSex == "") return Msg("抱歉!请选择性别!", "txtStuSex");
        if (StuNative == "") return Msg("抱歉!请选择民族!", "txtStuNative");
        if (StuBirthDate == "") return Msg("抱歉!请输入出生日期!", "txtStuBirthDate");
        if (StuProperties == "") return Msg("抱歉!请选择户口性质!", "txtStuProperties");

        if (StuRegion == "") return Msg("抱歉!请输入户口所在地!", "txtStuRegion");

        if (StuFamilyAddress == "") return Msg("抱歉!请输入家庭地址!", "txtStuFamilyAddress");
        if (StuTel == "") return Msg("抱歉!请输入联系电话!", "txtStuTel");
        
        var IsStuTel = /((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$/;
        if (!IsStuTel.test(StuTel)) return Msg("抱歉!联系电话不正确!", "txtStuTel");
        
        if (StuPolitical == "") return Msg("抱歉!请选择政治面貌!", "txtStuPolitical");
        if (StuSpecialty == "") return Msg("抱歉!请输入爱好特长!", "txtStuSpecialty");

        if (StuDate == "") return Msg("抱歉!请输入报名日期!", "txtStuDate");

        var date = /^[1-9][0-9][0-9][0-9][-]([1-9]|[1][0-2])[-]([1-9]|[1-2][0-9]|[3][0-1])$/;
    })
})


//--------------------

function Msg(s, obj) {
    $("#" + obj).css({
        "background-color": "#FFE1E1"
    });
    $("#" + obj).change(function () {
        if ($.trim($(this).val()) != "") {
            $("#" + obj).css({
                "background-color": ""
            });
        } else {
            $("#" + obj).css({
                "background-color": "#FFE1E1"
            });
        }
    });
    window.alert(s);
    return false
}
</script>





</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"
            EnableScriptLocalization="true">
        </asp:ScriptManager>
   <div class="title">
   学生学籍信息-修改
   </div>
        <div style="text-align: left">
            <table align="center" border="1" cellpadding="0" cellspacing="0" width="800px">
                <tr>
                    <td align="center" colspan="2">
                        学生学籍信息添加
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        学籍号：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuItemNo" runat="server" Height="19px" Width="149px"></asp:TextBox>必填
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        班级：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:DropDownList ID="ddlClaId" runat="server" Height="19px" Width="149">
                        </asp:DropDownList>
                        必选
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        学<span style="padding-left: 4px">&nbsp;</span>号：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuNo" runat="server" Width="149px"></asp:TextBox>必填
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        密码：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuPwd" runat="server" Height="19px" TextMode="Password" Width="149px"></asp:TextBox>必填
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        相片：
                    </td>
                    <td align="left" style="height: 200px" valign="middle">
                        <div>
                            <asp:HiddenField ID="txtTeaPhoto" runat="server" />
                            <asp:Image ID="Image1" runat="server" Height="170" ImageUrl="~/photo/download.jpg" />
                            <br />
                            <asp:FileUpload ID="FileUpload1" runat="server" /><asp:Button ID="Button1" runat="server"
                                OnClick="Button1_Click" Text="上传" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        姓名：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuName" runat="server" Height="19px"></asp:TextBox>必填
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        性别：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:DropDownList ID="txtStuSex" runat="server" Height="19px" Width="60">
                            <asp:ListItem>男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        名族：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:DropDownList ID="txtStuNative" runat="server" Height="19px">
                            <asp:ListItem>汉族</asp:ListItem>
                            <asp:ListItem>蒙古族</asp:ListItem>
                            <asp:ListItem>回族</asp:ListItem>
                            <asp:ListItem>藏族</asp:ListItem>
                            <asp:ListItem>维吾尔族</asp:ListItem>
                            <asp:ListItem>苗族</asp:ListItem>
                            <asp:ListItem>彝族</asp:ListItem>
                            <asp:ListItem>壮族</asp:ListItem>
                            <asp:ListItem>布依族</asp:ListItem>
                            <asp:ListItem>朝鲜族</asp:ListItem>
                            <asp:ListItem>满族</asp:ListItem>
                            <asp:ListItem>侗族</asp:ListItem>
                            <asp:ListItem>瑶族</asp:ListItem>
                            <asp:ListItem>白族</asp:ListItem>
                            <asp:ListItem>土家族</asp:ListItem>
                            <asp:ListItem>哈尼族</asp:ListItem>
                            <asp:ListItem>哈萨克族</asp:ListItem>
                            <asp:ListItem>傣族</asp:ListItem>
                            <asp:ListItem>黎族</asp:ListItem>
                            <asp:ListItem>傈僳族</asp:ListItem>
                            <asp:ListItem>佤族</asp:ListItem>
                            <asp:ListItem>畲族</asp:ListItem>
                            <asp:ListItem>高山族</asp:ListItem>
                            <asp:ListItem>拉祜族</asp:ListItem>
                            <asp:ListItem>水族</asp:ListItem>
                            <asp:ListItem>东乡族</asp:ListItem>
                            <asp:ListItem>纳西族</asp:ListItem>
                            <asp:ListItem>景颇族</asp:ListItem>
                            <asp:ListItem>柯尔克孜族</asp:ListItem>
                            <asp:ListItem>土族</asp:ListItem>
                            <asp:ListItem>达斡尔族</asp:ListItem>
                            <asp:ListItem>仫佬族</asp:ListItem>
                            <asp:ListItem>羌族</asp:ListItem>
                            <asp:ListItem>布朗族</asp:ListItem>
                            <asp:ListItem>撒拉族</asp:ListItem>
                            <asp:ListItem>毛难族</asp:ListItem>
                            <asp:ListItem>仡佬族</asp:ListItem>
                            <asp:ListItem>锡伯族</asp:ListItem>
                            <asp:ListItem>阿昌族</asp:ListItem>
                            <asp:ListItem>普米族</asp:ListItem>
                            <asp:ListItem>塔吉克族</asp:ListItem>
                            <asp:ListItem>怒族</asp:ListItem>
                            <asp:ListItem>乌孜别克族</asp:ListItem>
                            <asp:ListItem>俄罗斯族</asp:ListItem>
                            <asp:ListItem>鄂温克族</asp:ListItem>
                            <asp:ListItem>崩龙族</asp:ListItem>
                            <asp:ListItem>保安族</asp:ListItem>
                            <asp:ListItem>裕固族</asp:ListItem>
                            <asp:ListItem>京族</asp:ListItem>
                            <asp:ListItem>塔塔尔族</asp:ListItem>
                            <asp:ListItem>独龙族</asp:ListItem>
                            <asp:ListItem>鄂伦春族</asp:ListItem>
                            <asp:ListItem>赫哲族</asp:ListItem>
                            <asp:ListItem>门巴族</asp:ListItem>
                            <asp:ListItem>珞巴族</asp:ListItem>
                            <asp:ListItem>基诺族</asp:ListItem>
                            <asp:ListItem>其他族</asp:ListItem>
                            <asp:ListItem>外国血统</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        曾用名：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuFirstName" runat="server" Height="19px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        入学年份：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuInSchoolYear" runat="server" Height="19px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        在读学校：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuSchool" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        身份证号：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuIdentity" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        国籍：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuCountry" runat="server" Height="19px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        港澳台侨胞：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_QiaoBao" runat="server" Height="19px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        户籍所在地址：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuRegion" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        家庭住址：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStuFamilyAddress" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        户籍地教育主管部门：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_Edu_dep" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        学习简历：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_JianLi" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        是否孤儿：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_IsGuer" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        是否残疾：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_IsCanJi" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        是否寄宿：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_InSchool" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        是否留守儿童：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:TextBox ID="txtStu_LiuShou" runat="server" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                        学籍状态：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:DropDownList ID="txtStuStatus" runat="server" Height="19px">
                            <asp:ListItem>正常</asp:ListItem>
                            <asp:ListItem>转入</asp:ListItem>
                            <asp:ListItem>转出</asp:ListItem>
                            <asp:ListItem>退学</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" />
                        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="返回列表" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
