<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Circulation_List.aspx.cs" Inherits="TotCms.Web.Office.Circulation.Circulation_List" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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 runat="server">
    <title></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.core.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.widget.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.datepicker.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('.dates').datepicker($.datepicker.regional["zh-CN"]);
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="br"></div>
    <div >
            <table cellpadding="0" cellspacing="0" class="style1" width="100%">
                <tr class="suphead">
                    <td>
                        收到传阅
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="31%" height="32"><a href="Circulation_List.aspx?Status=1" class="<%=GetCss(1) %>">已确认</a> <a href="Circulation_List.aspx?Status=0" class="<%=GetCss(0) %>">待确认</a></td>
                            <td width="69%" align="right">&nbsp;标题：
                      <asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;发件人：<asp:TextBox ID="tbUser" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;发送日期：<asp:TextBox ID="tbDateTime" runat="server" CssClass="dates"></asp:TextBox>
                        <asp:Button ID="button" runat="server" Text="查询" onclick="button1_Click" /></td>
                          </tr>
                        </table>
                      
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <asp:ListView ID="ListView" runat="server" ItemPlaceholderID="items" DataKeyNames="id" OnItemDataBound="List_ItemDataBound">
                                <LayoutTemplate>
                                    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
                                        <tr class="suphead">
                                            <td width="12%">
                                                发件人
                                            </td>
                                            <td width="54%" style="text-align:left; padding-left:5px;">
                                                标题
                                            </td>                                            
                                            <td width="11%">
                                                经过天数
                                            </td>
                                            <td width="14%">
                                                发送时间
                                            </td>
                                            <td width="9%">状态</td>
                                        </tr>
                                        <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
                                        </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tbody  ><tbody  ><tbody  ><tbody  ><tr class="lines">
                                        <td>
                                            <a href='../Staff/Staff_Show.aspx?id=<%#Eval("StaffId")%>'><%# Eval("Writer")%></a>
                                        </td>
                                        <td style="text-align:left; padding-left:5px;">
                                            <a href='Circulation_View.aspx?id=<%#Eval("id")%>'><%#Eval("Title")%></a>
                                        </td>
                                        
                                        <td>
                                            <span id="span" runat="server"></span>天
                                        </td>
                                        <td>
                                            <%#Eval("PubDate")%>
                                        </td>
                                        <td><%# Convert.ToInt32(Eval("Status"))==1?"<span class=\"red\">已确认</span>":"<span class=\"gray\">进行中</span>" %></td>
                                    </tr>
                                </ItemTemplate>
                                <EmptyDataTemplate>
                                    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
                                        <tr class="suphead">
                                            <td>暂时没有数据</td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:ListView>
                        </div>
                        <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
