<%@ page language="C#" autoeventwireup="true" inherits="user_message, aoshuosoft" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!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>短消息管理</title>
    <link rel="stylesheet" href="user.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="addedit" runat="server" Height="50px" Width="100%" Visible="false">
            <table class="usertable" cellpadding="3" cellspacing="1" border="0" width="100%">
                <tr>
                    <td class="bt" colspan="2" style="height: 30px; text-align: center;">
                        <asp:Literal ID="acbt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style="width: 62px"  >
                        收件人：</td>
                    <td >
                        <asp:DropDownList ID="sjr" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="width: 62px"  >
                        标题：</td>
                    <td >
                        <asp:TextBox ID="titlel" runat="server" Width="270px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 62px"  >
                        内容：</td>
                    <td >
                        <fckeditorv2:fckeditor id="content" runat="server" basepath="~/FCKeditor/" enablesourcexhtml="true"
                            enablexhtml="true" height="300px" toolbarset="self">
                        </fckeditorv2:fckeditor>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="send" runat="server" Text="发送" Width="80px" OnClick="send_Click" />
                        <asp:Button ID="edit" runat="server" Text="修改" Width="80px" OnClick="edit_Click"/>
                        </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="all" runat="server" Height="50px" Width="100%" Visible="false">
            <asp:GridView ID="GridView1" OnPageIndexChanging="GridView1_PageIndexChanging" runat="server" CellPadding="4" Width="100%" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" PageSize="20">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="发件人"><ItemTemplate><a href="message.aspx?action=edit&id=<%#Eval("id") %>"><%#Eval("send") %></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="收件人"><ItemTemplate><a href="message.aspx?action=edit&id=<%#Eval("id") %>"><%#Eval("income") %></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="标题"><ItemTemplate><a href="message.aspx?action=edit&id=<%#Eval("id") %>"><%#Eval("titlel") %></a></ItemTemplate></asp:TemplateField>
                    <asp:BoundField DataField="sj" HeaderText="时间" />
                    <asp:TemplateField HeaderText="查看/编辑"><ItemTemplate><a href="message.aspx?action=edit&id=<%#Eval("id") %>">查看/编辑</a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="删除"><ItemTemplate><a href="message.aspx?action=del&id=<%#Eval("id") %>" onclick="return confirm('删除将不可恢复，您真的要删除吗？')">删除</a></ItemTemplate></asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
        </div>
    </form>
</body>
</html>
