<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Training.aspx.cs" Inherits="TotCms.Web.Office.Staff.Training" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">培训信息</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic"><a href="Training_Add.aspx">添加培训</a></td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        DataKeyNames="id" OnItemCommand="lvList_ItemCommand"
      onpagepropertieschanged="lvList_PagePropertiesChanged">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>标题</td>
              <td>地址</td>
              <td>开始日期</td>
              <td>结束日期</td>
              <td>费用</td>
              <td>发布日期</td>
              <td>主办单位</td>
              <td>操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td><a href='Training_Show.aspx?id=<%# Eval("id") %>'><%# Eval("Title")%></a></td>
            <td><%# Eval("Address")%></td>
            <td><%# Eval("FromDate", "{0:yyyy-MM-dd}")%></td>
            <td><%# Eval("ToDate", "{0:yyyy-MM-dd}")%></td>
            <td><%# Eval("Fee")%></td>
            <td><%# Eval("PubDate","{0:yyyy-MM-dd}")%></td>
            <td><%# Eval("Organizers")%></td>            
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="editobj" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						|
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="deleteobj" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            暂时没有数据.
        </EmptyDataTemplate>       
    </asp:ListView>
    <div class="pages">
      <asp:DataPager ID="DataPager1" runat="server" 
        PagedControlID="lvList" PageSize="15">
      <Fields>
        <asp:NextPreviousPagerField FirstPageText="首页" LastPageText="尾页" 
          NextPageText="下一页" PreviousPageText="上一页" ShowFirstPageButton="True" 
          ShowLastPageButton="True" />
        <asp:NumericPagerField />
      </Fields>
    </asp:DataPager></div>
    </form>
</body>
</html>

