<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_UserRight.aspx.cs" Inherits="AndroidSevice.Web.XDGL.Frm_UserRight" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['700px', '500px'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function sAlert(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'; //刷新父页面
            });
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 25px;
            height: 27px;
        }
        .style2
        {
            height: 27px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
				<div class="btn-group">
				</div>
</div>
<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>巡店管理</a>
				<a href="#" class="current">管辖人员</a>
</div>
<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">
                             <!---->
                             <div class="container-fluid">
                    <div class="row-fluid">
					<div class="span5">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>管理员</h5>
                               
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th class="style1">序号</th>
											<th class="style2">业务员</th>
										</tr>
									</thead>
									<tbody>
                                    <% if (dtuserlist != null && dtuserlist.Rows.Count != 0)
                                       {
                                           for (int i = 0; i < dtuserlist.Rows.Count; i++)
                                           {%>
										<tr>
                                            <td style="width:25px"><%=i + 1%></td>
											<td><a href="Frm_UserRight.aspx?etypeid=<%=dtuserlist.Rows[i]["etypeid"].ToString() %>&etypename=<%=dtuserlist.Rows[i]["fullname"].ToString() %>"><%=dtuserlist.Rows[i]["fullname"].ToString()%></a></td>
										</tr>
                                    <%}
                                       }%>
									</tbody>
								</table>
							</div>
						</div>
                            <webdiyer:aspnetpager ID="AspNetPagerUser" runat="server" FirstPageText="首页" 
                                    LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerUser_PageChanging"
                            PageSize="20" NumericButtonCount="10" AlwaysShow="True" />
					</div>
                    <div class="span6" >
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>管辖人员&nbsp;&nbsp;(<%=_etypename %>)</h5>
                                <div class="buttons">
									<a title="增加人员" onclick=ShowDataHelp('Frm_AddUserRight.aspx?subl=UserAdd&loginid=<%=_etypeid%>','','') class="btn btn-mini" href="#"><i class="icon-plus-sign"></i>增加人员</a>
								</div>
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th style=" width:25px">序号</th>
                                            <th>业务员</th>
                                            <th>删除</th>
										</tr>
									</thead>
									<tbody>
                                     <% if (dtempored != null && dtempored.Rows.Count != 0)
                                        {
                                            for (int i = 0; i < dtempored.Rows.Count; i++)
                                            {%>
										<tr>
                                            <td style="width:25px"><%=i+1 %></td>
											<td><a href="#"><%=dtempored.Rows[i]["loginname"].ToString()%></a></td>
                                            <td><button type="button" onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_UserRight.aspx?subdel=del&num=<%=dtempored.Rows[i]["num"].ToString() %>&RightID=<%=dtempored.Rows[i]["RightID"].ToString() %>&etypeid=<%=_etypeid%>&etypename=<%=_etypename%>'" class="btn">删除</button></td>
										</tr>
                                        <% }
                                        }%>
									</tbody>
								</table>
							</div>
						</div>
                            <webdiyer:aspnetpager ID="AspNetPagerLodeuser" runat="server" FirstPageText="首页" 
                            LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerLodeUser_PageChanging"
                            PageSize="20" NumericButtonCount="10" AlwaysShow="True" />
                            </div>
					</div>
				</div>
            </div>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>
