<%@ page language="C#" autoeventwireup="true" inherits="SysManage_UserTimeLimit, App_Web_imj1v1td" theme="Themes" stylesheettheme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register src="../UserControls/ChooseUserAdvance.ascx" tagname="ChooseUserAdvance" tagprefix="uc1" %>
<!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>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
    </style>

    <script type="text/javascript" language="javascript">
        function CheckAll() {
            var cked = false;
            cked = document.getElementById("chkSelAll").checked;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        e.checked = cked;
                    }
                }
                catch (exception) {
                }
            }
        }
        function CheckSelect() {
            var count = 0;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        if (e.checked == true) {
                            count++;
                        }
                    }
                }
                catch (exception) {
                }
            }
            if (count == 0) {
                alert("请选择您要删除的项！");
                return false;
            }
            else {
                //return confirm('您确定要删除所选项吗?');
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="LayerAll" runat="server">
    </div>
    <table width="100%" cellpadding="0" cellspacing="0" class="table_3">
        <tr>
            <td class="nav_font">
                <img src="../Images/ico4.gif" />
                当前的位置：登录管理 > 不限制人员设置 
            </td>
        </tr>
    </table>
    <div id="LayerShow" runat="server" style="width: 650px; top: 8%; overflow: auto;
        padding-left: 10px; padding-right: 10px; padding-top: 10px;display:none;  background-color: #fff;">
        <div id="Div1" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666">
                    <table class="" cellpadding="5" height="420px">
                        <tr>
                            <td>
                                <div style="overflow: auto; height:420px;">
                                    <table cellspacing="0" cellpadding="6" border="0" style="table-layout: fixed;">
                                        <tr>
                                            
                                            <td align="left">
                                              
                                                <uc1:ChooseUserAdvance ID="ChooseUserAdvance1" runat="server" />
                                            
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                              你选择的人员：<asp:Label ID="lblUserid" runat="server" Text="暂无"></asp:Label>
                                                <asp:Button ID="btnt" runat="server" Text="添 加" OnClick="btnt_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                               
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
    </div>
    <div class="just_align_01" id="yi" runat="server">
        <table width="100%" cellpadding="5" cellspacing="0" bgcolor="white" style="border: solid 1px #cccccc;">
            <tr>
                <td align="right">
                    <asp:Button ID="btnUrge" runat="server" Text="添加人员" OnClick="btnUrge_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div class="just_align_01">
        <asp:GridView ID="gvUserTimeLimit" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="ID" onrowcommand="gvUserTimeLimit_RowCommand" 
            onrowdatabound="gvUserTimeLimit_RowDataBound" >
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="用户名称">
                    <ItemTemplate>
                        <asp:Label ID="lblName" runat="server" Text='<%# Eval("UserID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="最后修改时间">
                    <ItemTemplate>
                        <asp:Label ID="lblZN" runat="server" Text='<%# Eval("LastWriteTime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <%--  <asp:ImageButton ID="ibtnEdit" runat="server" CommandName="edit" ImageUrl="~/Images/edit.gif"
                                                    ToolTip="编辑" />--%>
                        <asp:LinkButton ID="ibtnEdit" CommandName="ed" runat="server">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <div class="nodata">
                    <img src="../Images/waring_pic01.gif" />
                    <asp:Label ID="lbltext" runat="server" Text="没有你要查询的数据！" HorizontalAlign="Center"
                        Height="30px"></asp:Label>
                </div>
            </EmptyDataTemplate>
            <%-- <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />--%>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    <div class="page_bg_left">
           <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager>
    </div>
    </form>
</body>
</html>
