<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="exame_manage.aspx.cs" Inherits="RPWEB.Manage.exame_manage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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">
    <title></title>
    <link href="../Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/Jquery.js"></script>
    <script type="text/javascript" src="../JS/ManageWeb.js"></script>
    


    <script language="javascript" type="text/javascript">
    window.onerror = function() { return true; }
$(function() {
var x = 10;
var y = 10;

    $("#cp1").click(function() {
        
            var checkValue = "";
            $("[name=CheckMes]:checkbox:checked").each(function() {
                if ($.trim($(this).val()).length > 0) {
                    checkValue += "," + $.trim($(this).val());
                }
            })
            if (checkValue.length == 0) {
                alert("你没有选择任何考试，请先选中要对比的信息！");
                return false;
            }
            else {
                $("#HSelectID").val(checkValue.substr(1));
            }
            return true;

    });   


    $("#cp2").click(function() {
        
            var checkValue = "";
            $("[name=CheckMes]:checkbox:checked").each(function() {
                if ($.trim($(this).val()).length > 0) {
                    checkValue += "," + $.trim($(this).val());
                }
            })
            if (checkValue.length == 0) {
                alert("你没有选择任何考试，请先选中要对比的信息！");
                return false;
            }
            else {
                $("#HSelectID").val(checkValue.substr(1));
            }
            return true;

    }); 




})
    
    </script>
    
    
    
</head>
<body>
    <form id="form1" runat="server">
       <div class="div_All">
        <div class="Body_Title">
            <a href=exame_manage.aspx>考试管理</a> </div>
            <div class="pageStyle">
                <input type="button" value="添加新考试" onclick='javascript:location.href="exame_Add.aspx"'/>
                
               
                
            </div>
    
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
            
            
<%--        <HeaderTemplate><table class="Linetable">
        <tr>
            <th>班级编号</th>
            <th>学生姓名</th>
            <th>学号</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </HeaderTemplate>--%>
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
                        <th>选择</th>
            <th>考试名称</th>
            <th>原始成绩导入录入</th>
            <th>成绩统计</th>
<th>查看|下载</th>
            <th>操作</th>
                        </tr>
                    </thead>
            </HeaderTemplate>
                 
        
        <ItemTemplate>
          <tr>
          <td align=center><input type="checkbox" value='<%#Eval("ID") %>' name="CheckMes" /></td>
            <td><%#Eval("exam_name")%></td>
            <td><a href=Exame_Fensu_Show.aspx?exame_id=<%#Eval("id") %>>原始成绩</a> | <a href=Exame_fensu_import.aspx?exame_id=<%#Eval("id") %>>导入导出</a> | <a href=Exame_Fensu_keyin.aspx?exame_id=<%#Eval("id") %>>录入</a></td>
            <td>
            <asp:LinkButton ID="LinkButton1" OnClientClick=" return confirm('由于统计需要一些时间，请耐心等待一下！不要重复点击！')" runat="server" CommandName="ResultCount" CommandArgument='<%#Eval("id") %>'>统计</asp:LinkButton>
            
            
            <asp:LinkButton ID="LinkButton3" OnClientClick=" return confirm('由于统计需要一些时间，请耐心等待一下！不要重复点击！')" runat="server" CommandName="ResultToHtml" CommandArgument='<%#Eval("id") %>'><%#ShowBTResultToHtmlExcel(Eval("CountOrLock").ToString(), "生成网页")%></asp:LinkButton>


           
            <asp:LinkButton ID="LinkButton4" OnClientClick=" return confirm('由于统计需要一些时间，请耐心等待一下！不要重复点击！')" runat="server" CommandName="ResultToExcel" CommandArgument='<%#Eval("id") %>'><%#ShowBTResultToHtmlExcel(Eval("CountOrLock").ToString(), "生成Excel")%></asp:LinkButton>
            
            
            </td>

 <td>

            <%#ShowHtmlLink(Eval("ShowHtmlURL").ToString())%>
            
            <%#ResultExcelLink(Eval("ResultExcelURL").ToString())%>
<%--            <a title="成绩详细.." href='ExameResultShow.aspx?exame_id=<%#Eval("id") %>'>成绩详细aspx</a>
            <asp:LinkButton ID="LinkButton2" OnClientClick=" return confirm('由于统计需要几秒钟时间，请耐心等待一下！不要重复点击！')" runat="server" CommandName="ResultCountToExcel" CommandArgument='<%#Eval("id") %>'>成绩导出</asp:LinkButton>
--%>
</td>
            <td>
<%--                <asp:LinkButton ID="LinkButton1" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("id") %>' runat="server">删除</asp:LinkButton>
--%>                
                
                
                
                
                <a title="修改信息.." href='Exame_Edit.aspx?id=<%#Eval("id") %>'><%--<img src="../Images/Edit.gif"/>--%>修改&设置</a>&nbsp;&nbsp;
                
                
                    <%--<asp:ImageButton ID="IBDelService" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' runat="server" ImageUrl="~/Images/Delete.gif" ToolTip="删除该用户.."/>--%>
<asp:LinkButton ID="IBDelService" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' runat="server">删除</asp:LinkButton>
                
                
                </td>
          </tr>
          </ItemTemplate>
        <FooterTemplate></table></FooterTemplate>      
        </asp:Repeater>
        
                <div class="BottomPage">



                <span >
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共[%RecordCount%]条，[%CurrentPageIndex%] / [%PageCount%]页"
                            FirstPageText="[ 首页 ]" LastPageText="[ 末页 ]" NextPageText="[ 下一页 ]" NumericButtonCount="15"
                            PageSize="20" PrevPageText="[ 上一页 ]" CustomInfoTextAlign="Left" ShowCustomInfoSection="Left"
                            Direction="LeftToRight" Width="100%" InvalidPageIndexErrorMessage="你确定你输入的是数字？！"
                            PageIndexOutOfRangeErrorMessage="没这么多页o(∩_∩)o 哈哈.." SubmitButtonText="转到" CssClass="pageStyle"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="20%">
                        </webdiyer:AspNetPager>
                    </span>
        </div>
    
    
    <div class="BottomPage">
  <span >  
                <input id="BtnAllSelect" type="button" value="全选" />
                
                
                
                
                &nbsp;<asp:Button ID="BtnAllDel" runat="server" Text="删除" OnClick="BtnAllDel_Click" />
                
<asp:HiddenField ID="HSelectID" runat="server" Value="" />
  &nbsp;
                对比(请选择具有相同班级和学科属性的考试进行对比):<asp:Button ID="cp2" runat="server" Text="一分四率" OnClick="cp2_Click" />   <asp:Button ID="cp1" runat="server" Text="平均分" OnClick="cp1_Click" />              

    </span>
    
    </div>
    
    
    </div>
    </form>
</body>
</html>
