<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="TotCms.Web.Office.Schedule.Index" %>
<!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" />
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">
      <asp:Label ID="lbTitle" runat="server" Text=" "></asp:Label>
      日程任务</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic">
          <img src="../images/plus.png" width="14" height="14" /><a href="Schedule_Add.aspx">添加日程</a></td>
      </tr>   
    </table>

    <table cellpadding="0" cellspacing="0" class="style1">
      <tr>
        <td valign="top">

    <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 width="12%">姓名</td>
              <td style="text-align:left; padding-left:5px;">标题</td>
              <td width="15%">开始日期</td>
              <td width="15%">结束日期</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='../Staff/Staff_Show.aspx?id=<%# Eval("StaffId") %>'><%# Eval("UserName")%></a></td>
            <td style="text-align:left; padding-left:5px;"><a href='Schedule_Show.aspx?id=<%# Eval("id") %>'><%# Eval("Title")%></a></td>
            <td><%# Eval("FromDate", "{0:yyyy-MM-dd}")%></td>
            <td><%# Eval("ToDate", "{0:yyyy-MM-dd}")%></td>            
            
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            <div class="info">暂时没有数据.</div>
        </EmptyDataTemplate>       
    </asp:ListView>
        </td>
        <td width="10"></td>
        <td valign="top" width="220">
          <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" 
            BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
            Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
            ShowGridLines="True" Width="220px" 
            onselectionchanged="Calendar1_SelectionChanged">
            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
            <OtherMonthDayStyle ForeColor="#CC9966" />
            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
            <SelectorStyle BackColor="#FFCC66" />
            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
              ForeColor="#FFFFCC" />
            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
          </asp:Calendar>
        </td>
      </tr>
    </table>
    <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>

