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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" 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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>

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

    <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>
        html
        {
            overflow-x: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0" class="table_3">
        <tr>
            <td class="nav_font">
                <img src="../Images/ico4.gif" />
                当前的位置：试题和考试管理 &gt; 面试设置 
            </td>
        </tr>
    </table>
    <div class="box">
        <table width="100%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td align="right" width="80px">
                    岗位名称：
                </td>
                <td width="200px">
                    <asp:DropDownList ID="ddlSubject" runat="server" AppendDataBoundItems="True" Width="200px"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlSubject_SelectedIndexChanged">
                        <asp:ListItem Value="0">全部</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td colspan="2" align="right">
                    <asp:Button ID="btnAdd" runat="server" Text="添加考试设置" OnClick="btnAdd_Click" />&nbsp;<asp:Button
                        ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" Visible="False" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:GridView ID="gvExemOptionsSetting" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="JobID" OnRowCommand="gvExemOptionsSetting_RowCommand"
            OnRowDataBound="gvExemOptionsSetting_RowDataBound">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField DataField="post" HeaderText="岗位名称" />
                <asp:BoundField DataField="JobName" HeaderText="考试名称" />
                <asp:BoundField DataField="ExamTime" HeaderText="考试时间" />
                <asp:BoundField DataField="RadioButtons" HeaderText="单选数量" />
                <asp:BoundField DataField="CheckBoxs" HeaderText="多选数量" />
                <asp:BoundField DataField="Opinions" HeaderText="判断数量" />
                <asp:BoundField DataField="Answer" HeaderText="问答数量" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="ibtnGet" runat="server" CommandName="modify" Text="编辑" /><br />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
            </EmptyDataTemplate>
            <EmptyDataRowStyle HorizontalAlign="Center" />
            <EditRowStyle Wrap="True" />
        </asp:GridView>
    </div>
    <div class="page_bg_left">
           <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
                                PageSize="10" FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowCustomInfoSection="Left"
                                CustomInfoTextAlign="Left" ShowInputBox="Always">
                            </cc1:AspNetPager>
    </div>
    </form>
</body>

<script type="text/javascript">
    function CheckAll() {
        var cked = false;
        cked = document.getElementById("chkSelAll").checked;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    e.checked = cked;
                }
            }
            catch (exception) {
            }
        }
    }
    function CheckSelect() {
        var count = 0;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    if (e.checked == true) {
                        count++;
                    }
                }
            }
            catch (exception) {
            }
        }
        if (count == 0) {
            alert("请选择您要删除的项！");
            return false;
        }
        else {
            return confirm('您确定要删除所选项吗?');
        }
    }
</script>

</html>
