<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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">
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
                <div class="PageTitle">
                     <asp:Literal ID="Literal1" runat="server" Text="短信邮件设置" ></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="Literal2" runat="server" Text="在这里可以管理短信、邮件和站内信的发送，以及短信、邮件和站内信的配置和相关的模版设置。" ></asp:Literal>
                </div>
         </div>
         <Hishop:SendMessageTemplets ID="SendMessageTemplets" runat="server">
            <SkinTemplate>
            <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
         <div class="grdHeaderStyle">
			<ul>
            	<li><img src="../images/gif-0677.gif" width="13" height="10" /></li>
				<li>电子邮件&nbsp;&nbsp;</li>
                <li><a href="EmailSetting.aspx"><strong>配置</strong></a></li>
                <li class="Pg_45">&nbsp;<img src="../images/p_icon09.gif" width="12" height="13" /></li>
                <li>手机短信&nbsp;&nbsp;</li>
                <li><a href="SMSSettings.aspx"><strong>配置</strong></a></li>
			</ul>
	    </div>
                <div class="grdGroupFormList">            		    
                   <div class="grdGroupList">
                         <Hishop:CustomGridView ID="grdMessageTemplets" DataKeyNames="MessageType" runat="server" AutoGenerateColumns="false" ShowHeader="true" CssClass="GridViewStyle" GridLines="None" 
                                     RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle">                                                        
                                        <Columns>
                                <asp:BoundField HeaderText="消息类型" ItemStyle-Width="200px" HeaderStyle-CssClass="td_right td_left" DataField="Name" />
                                <asp:TemplateField HeaderText = "电子邮件" HeaderStyle-CssClass="td_right td_left">    
                                    <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" style="border:none;">
                                    <tr><td style="border:none; width:10px;"><asp:CheckBox runat="server" ID="chkSendEmail" Checked='<%# Eval("SendEmail")%>' /></td>
                                    <td style="border:none;"><span class="submit_bianji float"><a href='<%# "EditEmailTemplet.aspx?MessageType="+Eval("MessageType")%>'>编辑</a></span></td></tr>
                                    </table> 
                                    </ItemTemplate>
                                </asp:TemplateField>   
                                <asp:TemplateField HeaderText="站内消息" HeaderStyle-CssClass="td_right td_left">                                                                                                        
                                    <ItemTemplate> 
                                    <table cellpadding="0" cellspacing="0" style="border:none;">
                                    <tr><td style="border:none; width:10px;"><asp:CheckBox runat="server" ID="chkInnerMessage"  Checked='<%# Eval("SendInnerMessage")%>'/></td>
                                    <td style="border:none;"><span class="submit_bianji"><a href='<%# "EditInnerMessageTemplet.aspx?MessageType="+Eval("MessageType")%>'>编辑</a></span></td></tr>
                                    </table>                          
                                    </ItemTemplate>
                                </asp:TemplateField>  
                                <asp:TemplateField HeaderText="手机短信" HeaderStyle-CssClass="td_left td_right_fff">                                                                                                       
                                    <ItemTemplate>  
                                    <table cellpadding="0" cellspacing="0" style="border:none;">
                                    <tr><td style="border:none; width:10px;"><asp:CheckBox runat="server" ID="chkCellPhoneMessage"  Checked='<%# Eval("SendSMS")%>' /></td>
                                    <td style="border:none;"><span class="submit_bianji"><a href='<%# "EditCellPhoneMessageTemplet.aspx?MessageType="+Eval("MessageType")%>'>编辑</a></span></td></tr>
                                    </table>                          
                                    </ItemTemplate>
                                </asp:TemplateField>                                                                                                                                                                                                                                      
                                        </Columns>
                                    </Hishop:CustomGridView>
                          </div>
                     <div class="Pg_15 Pg_010" style="text-align:center;">
                        <asp:Button ID="btnSaveSendSetting" runat="server" OnClientClick="return PageIsValid();" Text="保存设置"  CssClass="inp_L1"/></div>   
                </div>
            </SkinTemplate>
            </Hishop:SendMessageTemplets>
    </div>
    <br />
    <div class="botCopyInfo">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
