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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ 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 type="text/javascript" src="../Js/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>

<%--    <link id="artDialogSkin" href="../js/skin/default.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/artDialog.js"></script>--%>
    <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <script type="text/javascript">
        //artDialog js的完美弹出层
        function showWindow(url) {
            var sURL = url;
            //art.dialog({ id: 'myDialogNote', title: '考试复查', iframe: sURL, width: '750', height: '480', lock: true });
            art.dialog.open(sURL, { id: 'myDialogNote', title: '考试复查', width: '780px', height: '480px', lock: true });
            return false;
        };
 
    </script>

    <style>
        html
        {
            overflow-x: hidden;
        }
    </style>
</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    &nbsp;<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtUserName"
        CompletionSetCount="12" CompletionInterval="1" EnableCaching="true" MinimumPrefixLength="1"
        ServicePath="../services/AutoComplete.asmx" ServiceMethod="GetUserLoginNameList">
    </asp:AutoCompleteExtender>
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置： 
                    <asp:Label ID="lblnum" runat="server" Text="Label"></asp:Label></span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="right" width="80px">
                            考试名称:
                        </td>
                        <td width="100px">
                            <asp:TextBox ID="txtCourseName" runat="server" Width="100" MaxLength="20"></asp:TextBox>
                        </td>
                        <td align="right" width="58px">
                            姓名:                         </td>
                        <td align="left" width="80px">
                            <asp:TextBox ID="txtUserName" runat="server" Width="150px"></asp:TextBox>
                        </td>
                        <td align="right" width="58px">
                            结果:
                        </td>
                        <td width="60px" align="left">
                            <asp:DropDownList ID="ddlCourseName" runat="server">
                                <asp:ListItem Value="0">全部</asp:ListItem>
                                <asp:ListItem Value="1">通过</asp:ListItem>
                                <asp:ListItem Value="2">未通过</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right" width="58px">
                            时间:
                        </td>
                        <td align="left" width="80px">
                         <input id="txtExamTimeStart" name="txtExamTimeStart" style="width:80px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                            
                        </td>
                        <td align="center" width="20px">
                            至
                        </td>
                        <td align="left" width="80px">
                        <input id="txtExamTimeEnd" name="txtExamTimeEnd" style="width:80px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                            
                        </td>
                        <td align="left">
                            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" 
                                SkinID="small_btn" />
                        </td>
                        <td align="right">
                            <asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返 回" 
                                Visible="False"></asp:Button>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvAchievement" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                OnRowDataBound="gvAchievement_RowDataBound" OnRowCommand="gvAchievement_RowCommand">
                                <PagerSettings Visible="False" />
                                <Columns>
                                    <asp:BoundField DataField="UserId" HeaderText="姓名" />
                                    
                                    <asp:TemplateField HeaderText="考试名称">
                                      
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Common.CutString(Eval("ExamName").ToString(),25) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ExamMark" HeaderText="考试成绩">
                                        <ItemStyle ForeColor="Maroon" />
                                    </asp:BoundField>
                                    
                                    <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
                                    <asp:BoundField DataField="ExamTime" HeaderText="考试时间" />
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnCheck" CommandName="check" runat="server">考试复查</asp:LinkButton>
                                            <asp:Label ID="lblUserId" runat="server" Visible="false" Text='<%# Eval("userid") %>'></asp:Label>
                                            <asp:Label ID="lblExamId" runat="server" Visible="false" Text='<%# Eval("examid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                </EmptyDataTemplate>
                                <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td 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>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
      <script type="text/javascript">
             $("#loading").fadeOut()
</script>
</body>
</html>
