<%@ page language="C#" autoeventwireup="true" inherits="admin_onlineuser, xnzy-radius-web_deploy" %>

<!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 id="Head1" runat="server">

    <title>在线用户处理-后台管理系统</title>
    
  
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 1000px; height: 220px; font-size: 9pt; " 
            cellpadding="0" cellspacing="0" align="center" border="1" 
            bordercolor="#cccc66">
            <tr>
                <td style="vertical-align: top; text-align: center;">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="16pt" 
                            ForeColor="#CC3300" Text="实时在线用户操作" Font-Underline="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: center;">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                            Height="28px" PageSize="25" 
                            onpageindexchanging="GridView1_PageIndexChanging" 
                            onrowcommand="GridView1_RowCommand" AllowPaging="True">
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="ID" >
                                </asp:BoundField>
                                <asp:BoundField DataField="user_name" HeaderText="宽带帐户" />
                                <asp:BoundField DataField="user_begindate" HeaderText="开始日期" />
                                <asp:BoundField HeaderText="结束日期" DataField="user_enddate" />
                                <asp:BoundField DataField="FramedIPAddress" HeaderText="IP地址" />
                                <asp:BoundField DataField="mac" HeaderText="捆绑" />
                                <asp:BoundField DataField="UserMac" HeaderText="MAC地址" />
                                <asp:BoundField DataField="Rate" HeaderText="带宽" />
                                        
                                <asp:BoundField DataField="NasIP" HeaderText="登陆ROS" />
                                        
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" 
                                            CommandArgument='<%# Eval("user_name") %>' CommandName="delonline">离线</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                        
                                <asp:TemplateField HeaderText="公告">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton2" runat="server" 
                                          CommandArgument='<%# Eval("FramedIPAddress")+"‖"+Eval("NasIP") %>'  CommandName="guanggao" Text="公告"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                        
                            </Columns>
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: center;">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" 
                        Text="实时在线用户操作" Font-Size="12pt" 
                        ForeColor="#FF3300"></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: right;">
                    <asp:Button ID="Button3" runat="server" Height="39px" onclick="Button3_Click" 
                        Text="刷新" Width="100px" />
                    <asp:Button ID="Button2" runat="server" Height="39px" onclick="Button2_Click" 
                        Text="全部离线" Width="100px" />
                    <asp:Button ID="Button1" runat="server" Height="39px" onclick="Button1_Click" 
                        Text="返回主管理" Width="100px" />
                </td>
            </tr>
            </table>
    </div>
    </form>
</body>
</html>


