<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="WeUserList.aspx.cs" Inherits="AndroidSevice.Web.BackStage.WeChat.WeUserList" %>
<%@ 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: ['800px', '600px'],
            fix: false, //不固定
            maxmin: true,
            content: _url
        });
    }
    function sAlert(info) {
        var message = info;
        layer.alert(message, 8); //风格一，layer弹出层特效
    }
    function sAlertOut(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            window.location.href = '../../default.aspx'; //刷新父页面
        });
    }
    </script>
</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">
                             <button class="btn" type="button" onclick="ShowDataHelp('ComparyEdit.aspx','','')">公司信息</button>
                             <button class="btn" type="button" onclick="ShowDataHelp('WeUserEdit.aspx','','')">新增用户</button>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                            <th style=" width:30px">序号</th>
											<th>验证码</th>
											<th>公司名称</th>
											<th>手机号</th>
                                            <th>联系人</th>
                                            <th>修改</th>
                                            <th>解除</th>
										</tr>
									</thead>
                                    <tbody>
                                    <%
                                        if (dtlist != null)
                                        {
                                            for (int i = 0; i < dtlist.Rows.Count; i++)
                                            {
                                    %>
                                    <tr>
                                            <td><%=i+1 %></td>
											<td><%=dtlist.Rows[i]["wechatid"].ToString()%></td>
                                            <td><%%></td>
                                            <td><%=dtlist.Rows[i]["mobile"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["person"].ToString()%></td>
                                            <td><a onclick="ShowDataHelp('WeUserEdit.aspx?subherf=edit&wxuserid=<%=dtlist.Rows[i]["sysid"].ToString() %>','','')">修改</a></td>
                                            <td><a href="WeUserList.aspx?subherf=del&uxuserid=<%=dtlist.Rows[i]["sysid"].ToString() %>">解除</a></td>
										</tr>
                                        <%
                                            }
                                        }
                                         %>
                                    </tbody>
							</table>
                            <div class="pager">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPager1_PageChanging"
                            PageSize="20" AlwaysShow="True" />
                            </div>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>