<%@ page language="C#" autoeventwireup="true" inherits="admin_qq, aoshuosoft" %>

<!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>qq在线客服</title>
        <link href="admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="sz" runat="server" Height="50px" Width="100%" Visible="false">
            <table border="0" cellpadding="3" cellspacing="1" class="adminmaintable">
                <tr>
                    <td class="bt" colspan="2" style="height: 30px; text-align: center">
                        QQ在线客服设置</td>
                </tr>
                <tr>
                    <td style="width: 73px">
                        是否开启：:</td>
                    <td>
                        <asp:RadioButton ID="yes" runat="server" GroupName="0" Text="开启" />
                        <asp:RadioButton ID="no" runat="server" Text="关闭" GroupName="0" /></td>
                </tr>
                <tr>
                    <td style="width: 73px">
                        已添加的：</td>
                    <td>
                        <asp:GridView ID="allqq" runat="server" AutoGenerateColumns="False" Width="402px" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <Columns>
                                <asp:TemplateField HeaderText="QQ号码"><ItemTemplate><a href='qq.aspx?action=edit&id=<%# Eval("id") %>'><%#Eval("qqhm") %></a></ItemTemplate></asp:TemplateField>
                                <asp:TemplateField HeaderText="QQ昵称"><ItemTemplate><a href='qq.aspx?action=edit&id=<%# Eval("id") %>'><%#Eval("nc") %></a></ItemTemplate></asp:TemplateField>
                                <asp:TemplateField HeaderText="修改"><ItemTemplate><a href='qq.aspx?action=edit&id=<%# Eval("id") %>'>修改</a></ItemTemplate></asp:TemplateField>
                                <asp:TemplateField HeaderText="删除"><ItemTemplate><a href='qq.aspx?action=del&id=<%# Eval("id") %>'  onclick="return confirm('删除将不可恢复，您真的要删除吗？')">删除</a></ItemTemplate></asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                        <asp:Literal ID="ts" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td style="width: 73px">
                    </td>
                    <td>
                        <asp:Button ID="save" runat="server" Text="保持设置" OnClick="save_Click" /></td>
                </tr>               
            </table>
        </asp:Panel>
         <asp:Panel ID="ac" runat="server" Height="50px" Width="100%" Visible="false">
            <table border="0" cellpadding="3" cellspacing="1" class="adminmaintable">
                <tr>
                    <td class="bt" colspan="2" style="height: 30px; text-align: center">
                        <asp:Literal ID="bt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style="width: 73px">
                        QQ号码：</td>
                    <td>
                        <asp:TextBox ID="qqhm" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 73px">
                        呢称：</td>
                    <td>
                        <asp:TextBox ID="nc" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 73px">
                        </td>
                    <td><asp:Button ID="add" runat="server" Text="添加" OnClick="add_Click" Width="70px" />
                        <asp:Button ID="edit" runat="server" Text="修改" Width="70px" OnClick="edit_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        &nbsp;
        </div>
    </form>
</body>
</html>
