<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IPTongJi.aspx.cs" Inherits="Admin_TongJi_IPTongJi" %>

<!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="../Images/Admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="height:18px">
        位置：访问统计 &gt; ＩＰ统计
        </div>
        <div style="height:5px"></div>
        <table class="tab1" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <table class="tab2" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="tab2_bt">
                                ＩＰ统计
                            </td>
                        </tr>
                        <tr>
                            <td>
                    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="tab3" GridLines="None" Width="100%" OnSorting="GridView1_Sorting" CellSpacing="1">
                        <Columns>
                            <asp:BoundField DataField="ID" DataFormatString="{0}" HeaderText="ID" SortExpression="ID">
                                <HeaderStyle Width="10%" />
                                <ItemStyle Width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IP" DataFormatString="{0}" HeaderText="IP">
                                <HeaderStyle Width="15%" />
                                <ItemStyle Width="15%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="所在地区" DataFormatString="{0}" HeaderText="所在地区">
                                <HeaderStyle Width="25%" />
                                <ItemStyle Width="25%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="访问次数" DataFormatString="{0}" HeaderText="访问次数" SortExpression="访问次数">
                                <HeaderStyle Width="10%" />
                                <ItemStyle Width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="最后访问时间" DataFormatString="{0}" HeaderText="最后访问时间" SortExpression="最后访问时间">
                                <HeaderStyle Width="15%" />
                                <ItemStyle Width="15%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="所占比例">
                                <HeaderStyle Width="25%" />
                                <ItemStyle Width="25%" />
                                <ItemTemplate>
                                    <div style="width:100%;border:1px #dddddd solid;">
                                    <div style="background:url(../Images/bfb.gif);width:<%# Convert.ToInt32((Convert.ToInt32(Eval("访问次数"))/Convert.ToDouble(总访问数))*100) %>%;height:12px"></div>
                                    </div><%# Convert.ToInt32((Convert.ToInt32(Eval("访问次数"))/Convert.ToDouble(总访问数))*100) %>%
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="tab3_bt" />
                    </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
        <asp:HiddenField ID="PaiXuZiDuan" runat="server" Value="ID" />
        <asp:HiddenField ID="PaiXuFangXiang" runat="server" Value="true" />
    </form>
    <div style="height:5px"></div>
        <form method="get" action="IPTongJi.aspx">
        <asp:Panel ID="Panel1" runat="server" Style="text-align: right" Width="100%">
            <asp:Label ID="FenYeDaiMa" runat="server" Text="Label"></asp:Label></asp:Panel></form>
</body>
</html>
