<%@ page language="C#" autoeventwireup="true" inherits="admin_Usermanger, 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;" colspan="4">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="16pt" 
                            ForeColor="#FF0066" Text="用户管理" Font-Overline="False" 
                            Font-Underline="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: left;">
                                                姓名：</td>
                <td style="vertical-align: top; text-align: left;">
                                                <asp:TextBox ID="TextBox1" runat="server" MaxLength="20" Width="100px"></asp:TextBox>
                        <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="查 询" 
                            Width="80px" />
                        [输入*显示全部]</td>
                <td style="vertical-align: top; text-align: left;">
                       
                        <span lang="zh-cn">电话：</span><asp:TextBox ID="TextBox2" runat="server" 
                            Width="100px"></asp:TextBox>
                        <asp:Button ID="Button4" runat="server" Text="查 询" Width="80px" 
                            onclick="Button4_Click" />
                </td>
                <td style="vertical-align: top; text-align: left;">
                        <span lang="zh-cn">宽带帐号：<asp:TextBox ID="TextBox3" runat="server" 
                            Width="100px"></asp:TextBox>
                        <asp:Button ID="Button5" runat="server" Text="查 询" Width="80px" 
                            onclick="Button5_Click" />
                        </span></td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: right;" colspan="4">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            CellPadding="4" ForeColor="#333333" 
    GridLines="None" Width="100%" 
                            Height="36px" onrowcommand="GridView1_RowCommand" PageSize="25" 
                            onpageindexchanging="GridView1_PageIndexChanging" AllowPaging="True" 
                            ShowFooter="True">
                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="user_name" HeaderText="用户姓名" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="单位/地址">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("user_address") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" 
                                               Text='<%# Eval("user_address").ToString().Length>10?Eval("user_address").ToString().Substring(0,10)+"...":Eval("user_address") %>' ToolTip='<%#Eval("user_address").ToString()%>'>
 
                                            </asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="user_department" HeaderText="证件号码" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="用户电话" DataField="user_telephone" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_age" HeaderText="年龄" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_sex" HeaderText="性别" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_date" HeaderText="开户日期" 
                                    DataFormatString="{0:yyyy-MM-dd}" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_pppoed" HeaderText="宽带帐户" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_password" HeaderText="宽带密码" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_count" HeaderText="余额" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="操作">
                                        <itemtemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" 
                                                   CommandArgument='<%# Eval("user_pppoed") %>' CommandName="DelCmd" 
                                                   onclientclick="return confirm('您确定要删除该用户吗？');">删除</asp:LinkButton>
                                            &nbsp;
                                        </itemtemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:HyperLinkField DataNavigateUrlFields="id" 
                                    DataNavigateUrlFormatString="Useredit.aspx?id={0}" HeaderText="修改" 
                                    Text="修改" >
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:HyperLinkField>
                                    <asp:HyperLinkField DataNavigateUrlFields="id" 
                                        DataNavigateUrlFormatString="Useridcount.aspx?id={0}" HeaderText="充值" 
                                        Text="充值" Target="_self" />
                                    <asp:HyperLinkField DataNavigateUrlFields="user_pppoed" 
                                        DataNavigateUrlFormatString="Usernetwork.aspx?user_pppoed={0}" HeaderText="记录" 
                                        Text="查看" />
                                </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" />
                                
                                <PagerTemplate><div style="text-align:center; color:Blue">
      <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">首页</asp:LinkButton>
      <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">前页</asp:LinkButton>
      第<asp:Label ID="lblcurPage" ForeColor="Blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'></asp:Label>页/共<asp:Label
       ID="lblPageCount" ForeColor="blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页
      <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">后页</asp:LinkButton>
      <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
       Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">尾页</asp:LinkButton>
       &nbsp;<asp:TextBox ID="txtGoPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
       Width="32px" CssClass="inputmini"></asp:TextBox>页<asp:Button ID="Button3" runat="server"
           OnClick="Turn_Click" Text="转到" /></div>
</PagerTemplate>

                                
                            </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top; text-align: right;" colspan="4">
                    <asp:Button ID="Button2" runat="server" Height="39px" onclick="Button2_Click" 
                        Text="返回主管理" Width="100px" />
                </td>
            </tr>
            </table>
    </div>
    </form>
</body>
</html>

