<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_AddUserRight.aspx.cs" Inherits="AndroidSevice.Web.XDGL.Frm_AddUserRight" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function sAlert(info) {
        var message = info;
        layer.alert(message, { closeBtn: 0
        }, function () {
            parent.location.reload(); //刷新父页面
        });
    }
    function sAlertMes(info) {
        var message = info;
        layer.alert(message, 8); //风格一，layer弹出层特效
    }
    function sAlertok(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            parent.location.reload(); //刷新父页面
        });
    }
    function sAlertOut(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            window.location.href = '../../default.aspx'; //刷新父页面
        });
    }
    function SelectAll() {
        var checkboxs = document.getElementsByName("limitcheck");
        for (var i = 0; i < checkboxs.length; i++) {
            var e = checkboxs[i];
            e.checked = !e.checked;
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>人员信息</h5>
							</div>
							<div class="widget-content">
                            <button type="submit" name="sub" value="sub" class="btn" ><i class="icon-hdd"></i>保存</button>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                           <th style=" width:20px;"><input type="checkbox" name="allChecked" id="allChecked" onclick="SelectAll()"/></th>
											<th>编号</th>
                                            <th>名称</th>
										</tr>
									</thead>
                                    <tbody>
                                    <%
                                        if (dtUser != null && dtUser.Rows.Count != 0)
                                        {
                                            for (int i = 0; i < dtUser.Rows.Count; i++)
                                            {
                                    %>
                                    <tr>
                                            <td><input type="checkbox" value="<%=dtUser.Rows[i]["etypeid"].ToString() %>" name="limitcheck" /></td>
											<td><%=dtUser.Rows[i]["usercode"].ToString()%></td>
                                            <td><%=dtUser.Rows[i]["FullName"].ToString()%></td>
									</tr>
                                    <%
                                            }
                                        }
                                    %>
                                    </tbody>
							</table>
                            <div class="pager">
                            <webdiyer:aspnetpager ID="AspNetPagerLode" runat="server" FirstPageText="首页" 
                            LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerLode_PageChanging"
                            PageSize="20" AlwaysShow="True" />
							</div>
						</div>
					</div>
				</div>
			</div>
</div>
</asp:Content>
