<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.Net.WebExam.Admin.Exam.KS_daylist" CodeBehind="KS.Daylist.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
  <asp:Panel ID="ListPanel" runat="server" Width="100%">
 <div class="content-area mt20">   
    <div class="myTitle clearfix">
        <asp:Button ID="BtnCreate" runat="server" Text="生成练习" CssClass="fr mr20 button button_on" OnClick="BtnCreate_Click" />
        每日一练
    </div>
    <KS:ksgv id="list"  CssClass="CTable" runat="server" AutoGenerateColumns="False" PagerType="CustomNumeric" Width="99%" OnRowDataBound="list_RowDataBound" GridLines="None" EmptyDataText="还没有生成每日一练!">
        <Columns>
         	<asp:TemplateField HeaderText="选择">
            	
                <itemstyle horizontalalign="Center" Height="30px" width="30px" />
                <itemtemplate>
                <input type="checkbox"  name="ids" id="ids" value="<%#Eval("id") %>" />
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="ID号" DataField="ID" Visible="false">
                <itemstyle horizontalalign="Center" />
            </asp:BoundField>      
        <asp:BoundField HeaderText="标题" DataField="Title">
                <itemstyle verticalalign="Middle"  horizontalalign="Left"/>
            </asp:BoundField>  
             <asp:BoundField HeaderText="年份" DataField="year">
                <itemstyle verticalalign="Middle"  horizontalalign="Center"/>
            </asp:BoundField> 

            <asp:BoundField HeaderText="生成时间" DataField="adddate">
                <itemstyle verticalalign="Middle"  horizontalalign="Center"/>
            </asp:BoundField>       
                  
        </Columns>
        <EmptyDataRowStyle CssClass="emptycss" />
        <HeaderStyle CssClass="CTitle" />
    </KS:ksgv>
    

        <asp:Panel ID="Panel2" runat="server" Height="30px" Width="741px">
         <div class="listedit">
             <ul>
                 <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全选</label>
                 <input type="button" value="删除记录" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" onclick="if (GetIDS('del')) { this.form.action = '?action=del'; this.form.submit()}"/>
             </ul>
         </div>
      </asp:Panel>
      
            
 <KS:Page ID="Page1" runat="server" />

    </asp:Panel>
</div>
   </asp:Content>