<%@ page autoeventwireup="false" inherits="WebExam.Web.lcks, App_Web_yngu4kvv" language="vb" masterpagefile="~/Page.master" title="公共成绩查询" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="mainCopy">
       
    <script type="text/javascript">
// <!CDATA[
function check(){
   var box=document.getElementById("enddatebox");
   if (box.value!="")
   return true; 
   else 
   return false;

}
function scoreList(examid){
  
   var url="../../data/staticexam/"+encodeURIComponent(examid)+"/scoreList_0.xml";
   var win = window.open(url, examid);
  win.focus();
   
}
function getExamIdBox(){return document.getElementById("examid").value}
// ]]>
    </script>

	<table style="WIDTH: 770px" cellSpacing="0" cellPadding="0" align="center"
				border="0">
			
				<TR>
					<TD style="HEIGHT: 35px" align="center"><FONT size="4">截至<asp:label id="Label_date" runat="server"></asp:label>前结束的前20场考试</FONT>
					</TD>
				</TR>
				<TR>
					<TD align="center"><asp:datagrid id="DataGrid2" runat="server" AutoGenerateColumns="False" DataKeyField="id" AllowCustomPaging="True"
							AllowPaging="True" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4">
							<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
							<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
							<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="id" SortExpression="id" ReadOnly="True" HeaderText="代号"></asp:BoundColumn>
								<asp:TemplateColumn HeaderText="卷类型">
									<ItemStyle Width="50px"></ItemStyle>
									<ItemTemplate>
										<asp:label id="Label4" runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.random")=2 %>' text="系统指定">
										</asp:label>
										<asp:label id="Label2" runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.random")=1 %>' text="随机试卷">
										</asp:label>
										<asp:label id="Label3" runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.random")=0 %>' text="人工指定">
										</asp:label>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="startTime" SortExpression="endTime" HeaderText="开考时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="endTime" SortExpression="endTime" HeaderText="结束时间"></asp:BoundColumn>
								<asp:HyperLinkColumn Text="成绩单" DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:scoreList('{0}')"></asp:HyperLinkColumn>
							</Columns>
							<PagerStyle Visible="False" HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
                       </TD>
				</TR>
				<tr>
					<td height="10"></td>
				</tr>
				<tr>
					<td align="center">输入截止日期：<input id="enddatebox" name="enddatebox" readonly="readonly" /><asp:button id="BtnQ" runat="server" Text="查询此前结束的考试" Width="150px"></asp:button>
					</td>
				</tr>
				<tr>
					<td align="center">输入考试名称：<input type="text" id="examid"><input style="WIDTH: 150px" onclick="javascript:scoreList(getExamIdBox())"
							type="button" value="查询成绩单">
				<tr>
					<td>
						<p align="center"><FONT face="宋体" color="#ff0066">说明：此处只能查询已经结束且向所有用户公开成绩的考试。</FONT></P>
					</td>
				</tr>
			</table>
			
			<script type="text/javascript">
  
  Calendar.setup(
    {
      inputField  : "enddatebox",      // ID of the input field
      ifFormat    : "%Y-%m-%d",    // the date format
      daFormat    : "%Y-%m-%d",
      
      weekNumbers : false,
      showsTime   : false
    }
  );

  
 
            </script>
	
</asp:Content>
		
	
	
		
