<%@ page autoeventwireup="true" inherits="_N25_Basicl_Student_Detail, App_Web_m37mpoil" language="C#" %>

<!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:center;
	 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
}

function ffx()
{
window.close ();
}

</script>





</head>
<body>
    <form id="form1" runat="server">
   
   <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" BorderWidth="0" 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:Label ID="ddlClaId" runat="server" Text="Label"></asp:Label>
                        
                    </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" BorderWidth="0" 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" BorderWidth="0" 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" />
                         
                        </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" BorderWidth="0" 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:Label ID="txtStuSex" runat="server" Text="Label"></asp:Label>
                        
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl" style="width: 120px">
                        名族：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
                        <asp:Label ID="txtStuNative" runat="server" Text="Label"></asp:Label>
                      
                    </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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" 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" BorderWidth="0" Height="19px" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                        学籍状态：
                    </td>
                    <td align="left" style="height: 30px" valign="middle">
              
                        
                        <asp:Label ID="txtStuStatus" runat="server" Text="Label"></asp:Label>
                        
                    </td>
                </tr>
             
            </table>
        </div>
       <div  style=" text-align:center ; padding-top:10px ">
         
            <a href="javascript:;" onclick="ffx()" >关闭</a>
            
            </div>
       
       
   
   
   
    </form>
</body>
</html>
