<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="EmailTaskList.aspx.cs" Inherits="OAWeb.SMSEmail.EmailTaskList" %>

<%@ Register Src="../UserControls/SMSEmailNav.ascx" TagName="SMSEmailNav" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:SMSEmailNav ID="SMSEmailNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <div class="tabs">
                            <div class="tab_handles">
                                <span>短信提醒队列</span> <span class="current">邮件提醒队列</span>
                            </div>
                            <table class="data_title" cellspacing="3">
                                <tr>
                                    <td class="data_field">
                                        类型：
                                        <asp:DropDownList ID="ddlTempType" runat="server">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlState" runat="server">
                                            <asp:ListItem>所有</asp:ListItem>
                                            <asp:ListItem Value="3">成功</asp:ListItem>
                                            <asp:ListItem Value="2">失败</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:Button ID="btnSearch" runat="server" Text="查  询" class="btn_77px" />
                                        <asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn_77px" />
                                        <asp:Button ID="btnSend" runat="server" Text="重发" CssClass="btn_77px" />
                                    </td>
                                </tr>
                            </table>
                            <div class="list">
                                <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                                    GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                                    OnRowDataBound="gvData_RowDataBound">
                                    <RowStyle HorizontalAlign="Left" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="编号">
                                            <HeaderTemplate>
                                                <input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox" value="chkHeader" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <input id="chkItem" type="checkbox" value="<%#Eval("Id") %>" />
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" ForeColor="White"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" Width="10px"></ItemStyle>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="AwokeClassText" HeaderText="类型" />
                                        <asp:BoundField DataField="Subject" HeaderText="邮件主题"></asp:BoundField>
                                        <asp:BoundField DataField="ToEmail" HeaderText="接收人邮件"></asp:BoundField>
                                        <asp:BoundField DataField="StateText" HeaderText="状态"></asp:BoundField>
                                        <asp:BoundField DataField="SendDate" HeaderText="发送日期" />
                                        <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnDelete" runat="server">删除</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <div class="pager-bar">
                                    <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                                        PageSize="20" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                                        ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                                    </webdiyer:AspNetPager>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".tab_handles span").click(function () {
                window.location.href = "SMSTaskList.aspx";
            })
        })
    </script>
</asp:Content>
