<%@ page language="C#" autoeventwireup="true" inherits="Exam_AddJobExam, App_Web_t61aasr1" stylesheettheme="Themes" theme="Themes" %>

<!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 type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

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

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

    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 40%;
        }
    </style>
</head>

<script type="text/javascript">
  $(document).ready(function() {
            Validator();
        });
        function Validator() {
            $('#<%= btnAdd.ClientID %>').bind('click', function() {
                ValidatorEmpty($("#<%=txtTel.ClientID %>"), "联系方式");
                ValidatorEmpty($("#<%=txtNum.ClientID %>"), "身份证号");
                ValidatorEmpty($("#<%=txtName.ClientID %>"), "姓名");
                ValidateDropdownList($("#<%= ddlPost.ClientID %>"), "应聘职位");
                return GetValidatorMessage();
            });
            $('#<%= txtTel.ClientID %>').onlypressInt();  
        }
</script>

<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td class="style2" align="center" colspan="2">
                    <div class="warning" style="width: 350px;">
                        <font>请填写基本信息后点参加考试进行面试！</font>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style2" align="right">
                    应聘职位：
                </td>
                <td>
                    <asp:DropDownList ID="ddlPost" runat="server" Width="150px" AppendDataBoundItems="True">
                        <asp:ListItem Value="0">请选择</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2" align="right">
                    姓名：
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" align="right">
                    身份证号：
                </td>
                <td>
                    <asp:TextBox ID="txtNum" runat="server" MaxLength="18"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" align="right">
                    联系方式：
                </td>
                <td>
                    <asp:TextBox ID="txtTel" runat="server" MaxLength="11"></asp:TextBox>(电话)
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="参加考试" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
