<%@ page language="C#" autoeventwireup="true" inherits="User_MySms, App_Web_rwk2bofy" %>
<%@ Register src="../Inc/Header1.ascx" tagname="Header1" tagprefix="uc1" %>
<%@ Register src="../Inc/Footer1.ascx" tagname="Footer1" tagprefix="uc2" %>
<%@ Register src="../Inc/YanZen.ascx" tagname="YanZen" tagprefix="uc3" %>
<%@ Register src="../Inc/Menu.ascx" tagname="Menu" tagprefix="uc4" %>

<!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><%=WebTitle%></title>
    <%=WebKeyWords%>
	<%=WebDescription%>
    <link href="../Inc/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <uc3:YanZen ID="YanZen1" runat="server" />
    <uc1:Header1 ID="Header11" runat="server" />
    <uc4:Menu ID="Menu1" runat="server" />
    
    <div class="UserBody">
        <%--左侧导航开始--%>
        <div class="LeftMenu">
            <div style="background-color:#126FB0; height:2px;"></div>
            <div style="height:10px;"></div>
            <div class="Link1"><a href="/User/">首页</a></div>
            <div class="clear"></div>
            <div style="height:10px;"></div>
            <div class="MenuLine1"></div>
            <div class="MenuTit1">应用信息</div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/MyJiaoYi.aspx">交易明细</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/YanZhen.aspx">帐户认证</a></div>
            <div class="clear"></div>
            <div class="Link2_1"><a href="/User/MySms.aspx">站内短信</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/MyBlackList.aspx">我的黑名单</a></div>
            <div class="clear"></div>
            <div style="height:10px;"></div>
            
            <div class="MenuLine1"></div>
            <div class="MenuTit1">资金操作</div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/ChongZhi.aspx">帐户充值</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/TiXian.aspx">提现申请</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/VIP.aspx">申请VIP</a></div>
            <div class="clear"></div>
            <div style="height:10px;"></div>
            
            <div class="MenuLine1"></div>
            <div class="MenuTit1">账号管理</div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/MyInfo.aspx">资料修改</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/MyPass.aspx">密码管理</a></div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/TuiGuan.aspx">我的推广</a></div>
            <div class="clear"></div>
            <div style="height:10px;"></div>
            
            <div class="MenuLine1"></div>
            <div class="MenuTit1">投诉建议</div>
            <div class="clear"></div>
            <div class="Link2"><a href="/User/TouShu.aspx">投诉列表</a></div>
            <div class="clear"></div>
            
            <div style="height:15px;"></div>
            <div style="background-color:#126FB0; height:2px;"></div>
        </div>
        <%--左侧导航结束--%>
    
        <div class="RightView">
        
            <div class="View1">
                <div class="Left1">
                    <img src="/images/user-right-home.jpg" />
                    当前位置：<a href="/User/">用户中心首页</a> &gt; 站内短信
                </div>
                <div class="Right1">
                    <img src="/images/user-RT-icon1.jpg" />
                    <a href="/Platform/Breach.aspx" target="_blank">购买发布点</a>
                    <img src="/images/user-RT-icon2.jpg" style="margin-left:5px;"/>
                    <a href="/User/ChongZhi.aspx" target="_blank">账户充值</a>
                    <img src="/images/user-RT-icon3.jpg" style="margin-left:5px;"/>
                    <a href="/User/TuiGuan.aspx" target="_blank">推广中心</a>
                    <img src="/images/user-RT-icon4.jpg" style="margin-left:5px;"/>
                    <a href="/Help/" target="_blank">帮助中心</a>
                </div>
                <div class="clear"></div>
            </div>
            
            <div class="UserSms">
                <div>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="FaBtn" runat="server" Text="发送短信" Height="30px" 
                                Width="100px" onclick="FaBtn_Click" />
                            <asp:Panel ID="FaSmsPanel" runat="server">
                                <table cellpadding="0" cellspacing="3" style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="ToLoginIDText" runat="server" Height="20px" MaxLength="20" 
                                                Width="160px"></asp:TextBox>
                                            <span style="color:Red;">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ErrorMessage="请填写收信人" ControlToValidate="ToLoginIDText" Display="Dynamic"></asp:RequiredFieldValidator>
                                            <span style="color:#999999">收信人</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="SmsText" runat="server" Rows="5" TextMode="MultiLine" 
                                                Width="300px" MaxLength="200"></asp:TextBox>
                                            <span style="color:Red;">*</span>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                ErrorMessage="请输入信息内容" Display="Dynamic" ControlToValidate="SmsText"></asp:RequiredFieldValidator>
                                            <span style="color:#999999">信息内容（200字以内）</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="GoBtn" runat="server" Text="发送站内信" Height="30px" 
                                                Width="100px" onclick="GoBtn_Click" />
                                            <asp:Button ID="CancelBtn" runat="server" Text="取消" Height="30px" 
                                                Width="60px" CausesValidation="False" onclick="CancelBtn_Click" />
                                            <asp:Label ID="GoErrorLabel" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div style="background-color: #cccccc; height: 1px; margin-top: 15px"></div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div style="text-align:left; margin-top: 15px;">
                            <asp:ImageButton ID="SmsShouBtn" runat="server" 
                                ImageUrl="~/Images/b_sms_10.gif" onclick="SmsShouBtn_Click" 
                                CausesValidation="False" />
                            <asp:ImageButton ID="SmsFaBtn" runat="server" ImageUrl="~/Images/b_sms_21.gif" 
                                onclick="SmsFaBtn_Click" CausesValidation="False" />
                        </div>
                        <div style="margin-top: 10px">
                            <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                                BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
                                ForeColor="Black" GridLines="Vertical" Width="100%" 
                                AutoGenerateColumns="False" onrowdeleting="GridView1_RowDeleting">
                                <FooterStyle BackColor="#CCCCCC" />
                                <RowStyle HorizontalAlign="Center" Height="30px" />
                                <Columns>
                                    <asp:BoundField DataField="LoginID" HeaderText="发件人">
                                        <ItemStyle Width="140px" Wrap="True" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="站内信内容">
                                        <ItemTemplate>
                                            <div style="padding: 3px 8px 3px 8px">
                                                <%# DataBinder.Eval(Container, "DataItem.SmsInfo") %>
                                            </div>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="InDate" DataFormatString="{0:yyyy-MM-dd}" 
                                        HeaderText="发送日期">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:CommandField DeleteText="标记为查看" HeaderText="操作" ShowDeleteButton="True">
                                        <ItemStyle Width="100px" />
                                    </asp:CommandField>
                                </Columns>
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" 
                                    Height="30px" />
                                <AlternatingRowStyle BackColor="#CCCCCC" />
                            </asp:GridView>
                            <asp:GridView ID="GridView2" runat="server" BackColor="White" 
                                BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
                                ForeColor="Black" GridLines="Vertical" Width="100%" 
                                AutoGenerateColumns="False">
                                <FooterStyle BackColor="#CCCCCC" />
                                <RowStyle HorizontalAlign="Center" Height="30px" />
                                <Columns>
                                    <asp:BoundField DataField="ToLoginID" HeaderText="收件人">
                                        <ItemStyle Width="140px" Wrap="True" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="站内信内容">
                                        <ItemTemplate>
                                            <div style="padding: 3px 8px 3px 8px">
                                                <%# DataBinder.Eval(Container, "DataItem.SmsInfo") %>
                                            </div>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="InDate" DataFormatString="{0:yyyy-MM-dd}" 
                                        HeaderText="发送日期">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                </Columns>
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" 
                                    Height="30px" />
                                <AlternatingRowStyle BackColor="#CCCCCC" />
                            </asp:GridView>
                            <asp:Label ID="NoSmsLabel" runat="server" Text="暂无站内信息！"></asp:Label>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>

        </div>
        <div class="clear"></div>
    </div>
    
    <uc2:Footer1 ID="Footer11" runat="server" />
    </form>
</body>
</html>
