<%@ 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 Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ 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>
    <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="lblPageTitle" runat="server" Text="<%$ Resources:EmailToUser, IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:EmailToUser, IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:EmailToUser ID="emailToUser" runat="server">
         <SkinTemplate>
            <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
            <fieldset class="AdminSearchform">
                <legend>
                    <asp:Literal ID="litSelectQuery" runat="server" Text="<%$ Resources:EmailToUser, IDS_FromField_litSelectQuery %>"></asp:Literal></legend>
                <table width="45%" border="0" cellspacing="0" cellpadding="0" style="margin-left: 18px">
                    <tr>
                        <td class="searchTableControlTD" style="padding-right:10px"><nobr><asp:RadioButton ID="radSendMore" Checked="true" runat="server" Text="群发给多个用户" GroupName="Send" /></nobr></td>
                        <td class="searchTableLeftTD"><nobr><asp:Label ID="lblMemberRank" runat="server" Text="<%$ Resources:EmailToUser, IDS_FromField_lblMemberRank %>"></asp:Label>：</nobr></td>
                        <td class="searchTableControlTD"><asp:DropDownList ID="dropUserRank" runat="server"  /></td>
                    </tr>
                    <tr>
                        <td class="searchTableLeftTD" style="padding-right:10px"><nobr><asp:RadioButton ID="radSendOne" runat="server" Text="发送给单个用户" GroupName="Send" /></nobr></td>
                        <td class="searchTableLeftTD"><nobr><asp:Label ID="lblSearchText" runat="server" Text="<%$ Resources:MemberSearch, IDS_FromField_Keywords %>"></asp:Label>：</nobr></td>
                        <td class="searchTableControlTD"><asp:TextBox ID="txtSearchText" runat="server" Enabled="false"></asp:TextBox></td>
                    </tr>
                </table>
            </fieldset>
             <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
                <tr>
                   <td  class="leftTD">
                      <asp:Literal ID="Literal1" Text="<%$ Resources:EmailToUser, IDS_Lable_Subject %>" runat="server"></asp:Literal>：
                   </td>
                   <td class="rightTD">
                       <asp:TextBox ID="txtSubject" runat="server" />
                   </td>
                    <td class="rightTD">
                        <div id="txtSubjectTip" runat="server"></div>
                        <Hishop:ValidateTarget ID="ValidateSmtpServer"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtSubject" 
                             Description="<%$ Resources:EmailToUser, IDS_Subject_Help %>" Nullable="False">
                           <Validators>
                             <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:EmailToUser, IDS_Subject_Help%>"/>
                           </Validators>
                        </Hishop:ValidateTarget> 
                    </td>
               </tr>
               <tr>
                   <td  class="leftTD">
                      <asp:Literal ID="lblAfficheDesc" Text="<%$ Resources:EmailToUser, IDS_Lable_Body %>" runat="server"></asp:Literal>：
                   </td>
                   <td colspan="2">
                       <FCKeditorV2:FCKeditor ID="fcEmailContent" runat="server" Width="99%" EnableXHTML="true" EnableSourceXHTML="true" BasePath="~/FCKeditor/" Height="350px" />
                   </td>
               </tr>
               <tr>
                    <td  class="leftTD"></td>
                    <td class="rightTD"><asp:Button ID="btnSendButton" runat="server" OnClientClick="return PageIsValid();" Text="<%$ Resources:EmailToUser, IDS_Button_Send %>" CssClass="inp_L1" /></td>
                    <td class="rightTD"></td>
               </tr>
            </table>
        </SkinTemplate>
        </Hishop:EmailToUser>
    </div>
    <br />
    <div style="text-align: center">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
