
<%@ page autoeventwireup="false" inherits="WebExam.Web.ddzz, App_Web_plgfti2c" language="vb" masterpagefile="~/Page.master" %>

<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 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();

       }
       function webenter(examid) {

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

       }
	    function confirmdel(){
		if (confirm("确实要删除该行吗?"))
		return true
		else
		return false
		
		
		}
	    function confirmConvert(){
	     if (confirm("确实要更改该试卷类型为“系统指定”吗?\r\n\r\n注意：更改后，将无法再更改回原有类型！"))
		return true
		else
		return false
	    
	    }
	    function grade(examid){
	  
	  self.location ="grade.aspx?id="+encodeURIComponent(examid);
	  }
  // ]]>
  </script>

    <table align="center" border="0" cellpadding="0" cellspacing="0" 
        style="width: 100%">
        <tr>
            <td align="center">
                <font face="宋体">等待执行的考试</font></td>
        </tr>
        <tr>
            <td align="center">
                <asp:DataGrid ID="DataGrid2" runat="server" AllowPaging="False" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                    CellPadding="4" DataKeyField="id">
                    <SelectedItemStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <ItemStyle BackColor="White" ForeColor="#003399" />
                    <HeaderStyle BackColor="#3399CC" Font-Bold="True" ForeColor="White" />
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <Columns>
                        <asp:BoundColumn DataField="id" HeaderText="考试名称" ReadOnly="True">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="卷类型" ItemStyle-Width="60">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text="系统指定" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random")) = 2 %>'>
                                </asp:Label>
                                <asp:Label ID="Label1" runat="server" Text="随机试卷" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random")) = 1 %>'>
                                </asp:Label>
                                <asp:Button ID="oneButon" runat="server" BackColor="#ff0066" BorderStyle="Solid"
                                    BorderWidth="0" CommandName="changeRandom" EnableViewState="True" Text="1" title="转为[系统指定]"
                                    Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random")) = 1 %>' Width="6" />
                                <asp:Label ID="Label3" runat="server" Text="人工指定" Visible='<%# cbyte(DataBinder.Eval(Container, "DataItem.random")) = 0 %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="startTime" HeaderText="开考时间"></asp:BoundColumn>
                        <asp:BoundColumn DataField="endTime" HeaderText="结束时间"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="时长">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.timeLen") %>'>
                                </asp:Label>
                            </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 DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:examInfo('{0}')"
                            Text="详细信息"></asp:HyperLinkColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:self.location='kslist.aspx?id='+encodeURIComponent('{0}')"
                            Text="考生管理"></asp:HyperLinkColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:grade('{0}')"
                            Text="成绩等级"></asp:HyperLinkColumn>
                        <asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="javascript:examInfo_onclick('{0}')"
                            Text="编辑"></asp:HyperLinkColumn>
                        <asp:ButtonColumn CommandName="Delete" Text="删除"></asp:ButtonColumn>
                    </Columns>
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" Mode="NumericPages" />
                </asp:DataGrid></td>
        </tr>
        <tr>
            <td height="10">
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;说明：<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff0066">卷类型</font>一列中有三种情况，“人工指定”是指在考试用卷中的每一道试题都是事先由管理人员人工编辑确定的，不存在任何随机试题。
                “随机试卷”是指在试卷中存在随机试题，系统对每位考生都会按照随机规则自动产生不同的试题。 “系统指定”是指在试卷中，系统按照管理人员设定的规则自动产生一次试题，所有的考生得到的试题是完全一样的，包括管理人员在内，谁都无法事先获知试题内容。
            </td>
        </tr>
    </table>

</asp:Content>
