<%@ page autoeventwireup="false" inherits="WebExam.Web.zzks, App_Web_plgfti2c" language="vb" masterpagefile="~/Page.master" title="正在执行的考试" %>
    <%@ MasterType VirtualPath="~/Page.master" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="mainCopy">
<script type="text/javascript">
  // <!CDATA[
   function examInfo_onclick(examid) {
    var t=window.showModalDialog('editexam.aspx?ei='+escape(examid),window,"dialogHeight=400px;dialogWidth=600px;help=no;status=no;");
 if(t)self.location.reload(); 
 return 
         
 
          }
	    function examInfo(examid) {
 
            window.showModalDialog('../examinfo.aspx?ei='+encodeURIComponent(examid),window,"dialogHeight=400px;dialogWidth=600px;help=no;status=no;");
           } 
    function grade(examid){
	  
	  self.location ="grade.aspx?id="+escape(examid);
	  }

	  function webenter(examid) {

	      self.location = 'editFreeEnter.aspx?id=' + escape(examid);

	  }
  function kslist(examid) {
 
         self.location = 'kslist.aspx?id='+encodeURIComponent(examid);
    
 
          }
   // ]]>
</script>
<table cellSpacing="10" cellPadding="0" align="center" border="0">
				
				<TR>
					<TD align="center">正在执行的考试</TD>
				</TR>
				<TR>
					<TD align="center">
						<asp:DataGrid id="DataGrid2" runat="server" AutoGenerateColumns="False" DataKeyField="id" BorderColor="#E7E7FF"
							BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Horizontal">
							<FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
							<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
							<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
							<ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#00CCCC"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="id" ReadOnly="True" HeaderText="代号"></asp:BoundColumn>
								<asp:BoundColumn DataField="startTime" HeaderText="开考时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="endTime" HeaderText="结束时间"></asp:BoundColumn>
								<asp:TemplateColumn HeaderText="时长">
									<ItemTemplate>
										<FONT face="宋体">
											<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.timeLen") %>'>
											</asp:Label></FONT>
									</ItemTemplate>
					
								</asp:TemplateColumn>
								<asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:webenter('{0}')"
                            Text="设置报名"></asp:HyperLinkColumn>
								<asp:TemplateColumn HeaderText="成绩公开">
									<ItemStyle Width="60px"></ItemStyle>
									<ItemTemplate>
										<asp:Label ID="Label5" runat="server" Text="完全" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.displayScore")) = 2 %>'>
										</asp:label>
										<asp:Label ID="Label6" runat="server" Text="本人" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.displayScore")) = 1 %>'>
										</asp:label>
										<asp:Label ID="Label7" runat="server" Text="保密" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.displayScore")) = 0 %>'>
										</asp:label>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn Text="详细信息" DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:examInfo('{0}')"></asp:HyperLinkColumn>
								<asp:HyperLinkColumn Text="编辑" DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:examInfo_onclick('{0}')"></asp:HyperLinkColumn>
								<asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:kslist('{0}')"
                                    Text="考生管理"></asp:HyperLinkColumn>
                                    <asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:grade('{0}')" Target="_self" 
                            Text="成绩等级"></asp:HyperLinkColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF" Mode="NumericPages"></PagerStyle>
						</asp:DataGrid></TD>
				</TR>

			</table>

            
</asp:Content>
	
			