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

<%@ Register Src="../UserControls/SMSEmailNav.ascx" TagName="SMSEmailNav" TagPrefix="uc1" %>
<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">
                        <table class="data_title" cellspacing="3">
                            <tr>
                                <td class="data_caption">
                                    <em style="float: left">
                                        <img src="/images/10.gif" />
                                    </em>邮件模板管理<br />
                                    <span class="tip01">管理发货、序列号快到期模块的邮件提醒的模板</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="data_field">
                                    类型：
                                    <asp:DropDownList ID="ddlTempType" runat="server">
                                    </asp:DropDownList>
                                    <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btn_77px" />
                                </td>
                            </tr>
                        </table>
                        <div class="page_op">
                            <asp:Button ID="btnNewOrder" runat="server" Text="新增模板" CssClass="btn_77px" OnClientClick="return OpenDialog('MailTemplateEdit.aspx','新增模板');" />
                        </div>
                        <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:BoundField DataField="TempTypeText" HeaderText="类型">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TempTitle" HeaderText="模板简称" />
                                    <asp:TemplateField HeaderText="是否HTML">
                                        <ItemTemplate>
                                            <img class='<%#Eval("IsHtml").ToString().Equals("1") ? "ico01" : "ico02"%>' src="/images/transparent.gif" />
                                        </ItemTemplate>
                                        <ItemStyle Width="80px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="是否启用">
                                        <ItemTemplate>
                                            <img class='<%#Eval("Enabled").ToString().Equals("1") ? "ico01" : "ico02"%>' src="/images/transparent.gif" />
                                        </ItemTemplate>
                                        <ItemStyle Width="80px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnEdit" runat="server" Text='编辑'></asp:LinkButton>
                                            <asp:LinkButton ID="lbtnDelete" runat="server">删除</asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle Width="80px" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
