
<%@ page autoeventwireup="false" inherits="WebExam.Web.endexam, App_Web_plgfti2c" language="vb" masterpagefile="~/Page.master" title="静态考试" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="mainCopy">

    <script type="text/javascript">
// <!CDATA[
   function examInfo(examid) {
 window.showModalDialog('../examinfo.aspx?ei='+encodeURIComponent(examid),window,"dialogHeight=400px;dialogWidth=600px;help=no;status=no;");
           
         
 
          }
          function teacher(examid){self.location ="../score/teacherscore.aspx?id="+encodeURIComponent(examid);}
    function scoreList(examid){
  
   var url="../../../data/staticexam/"+encodeURIComponent(examid)+"/scoreList_0.xml";
   var win=window.open(url,"scoreListWindow");  win.focus();

}
function anaPaper(examid) {

    var url = "../../../data/staticexam/" + encodeURIComponent(examid) + "/testpaper.xml?ana=1";
    var win = window.open(url); win.focus();
}
function paperA(examid){
   var en=encodeURIComponent(examid);
   var url="../../../data/staticexam/"+en+"/"+en+".a.xml";
   var win=window.open(url,"paperAWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
   win.focus();
}
    function confirmdel(){
		if (confirm("确实要删除该行吗?"))
		return true
		else
		return false
		
		
		}


// ]]>
    </script>

    <table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td align="center">
                静态的考试</td>
        </tr>
        <tr>
            <td align="center">
                <asp:DataGrid ID="DataGrid2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" DataKeyField="examid">
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <ItemStyle ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundColumn DataField="examid" HeaderText="代号" ReadOnly="True" SortExpression="examid">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="卷类型">
                            <ItemStyle Width="50px" />
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text="系统指定" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random"))=2 %>'>
                                </asp:Label>
                                <asp:Label ID="Label2" runat="server" Text="随机试卷" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random"))=1 %>'>
                                </asp:Label>
                                <asp:Label ID="Label3" runat="server" Text="人工指定" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random"))=0 %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="startTime" DataFormatString="{0:yyyy-M-d H:m}" HeaderText="开考时间"
                            ReadOnly="True" SortExpression="startTime"></asp:BoundColumn>
                        <asp:BoundColumn DataField="endTime" DataFormatString="{0:yyyy-M-d H:m}" HeaderText="结束时间"
                            ReadOnly="True" SortExpression="endTime"></asp:BoundColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="examid" DataNavigateUrlFormatString="javascript:examInfo('{0}')"
                            Text="详细信息"></asp:HyperLinkColumn>
                        <asp:ButtonColumn CommandName="Delete" Text="删除"></asp:ButtonColumn>
                       
                        <asp:HyperLinkColumn DataNavigateUrlField="examid" DataNavigateUrlFormatString="javascript:scoreList('{0}')"
                            Text="成绩单"></asp:HyperLinkColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="examid" DataNavigateUrlFormatString="javascript:anaPaper('{0}')"
                            Text="试题分析"></asp:HyperLinkColumn>
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
                </asp:DataGrid></td>
        </tr>
        <tr>
            <td height="10">
            </td>
        </tr>
        <tr>
            <td>
                <dl compact="compact">
                    <dt>说明：</dt><dd><font color="#ff0066"><asp:Localize ID="Localize2" runat="server"
                        Text="静态考试">
                    </asp:Localize></font>
                        <asp:Localize ID="Localize1" runat="server" Text="是指已经归档的考试，考试的任何数据不再发生变化。"></asp:Localize></dd><dd><font
                            color="#ff0066">卷类型</font>一列中有三种情况，“人工指定”是指在考试用卷中的每一道试题都是事先由管理人员人工编辑确定的，不存在任何随机试题。
                            “随机试卷”是指在试卷中存在随机试题，系统对每位考生都会按照随机规则自动产生不同的试题。 “系统指定”是指在试卷中，系统按照管理人员设定的规则自动产生一次试题，所有的考生得到的试题是完全一样的，包括管理人员在内，谁都无法事先获知试题内容。</dd></dl>
            </td>
        </tr>
    </table>
</asp:Content>
