<%@ page language="C#" autoeventwireup="true" inherits="admin_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 href="admin.css" rel="stylesheet" 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="adminmaintable" border="0" cellpadding="3" cellspacing="1" style="width: 100%">
                <tr>
                    <td class="bt" style="text-align: center; height: 35px;" colspan="2">
                        <asp:Literal ID="acbt" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td style="width: 52px" >
                        收件人：</td>
                    <td style="text-align: left" >
                        <asp:DropDownList ID="sjr" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width: 52px" >
                        主题：</td>
                    <td style="text-align: left" >
                        <asp:TextBox ID="titlel" runat="server" Width="293px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 52px" >
                        内容：</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="100px" OnClick="send_Click" /><asp:Button ID="edit" runat="server" Text="修改" Width="100px" OnClick="edit_Click" /></td>
                </tr>
            </table>
            &nbsp;
            </asp:Panel>
        <asp:Panel ID="all" runat="server" Height="50px" Width="100%" Visible="false">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                PageSize="20" Width="100%">
                <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>
