<commit_before><include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
				
                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <input type="hidden" id="defaultTab" name="defaultTab" value="{$tab}" />
                		<ul class="nav nav-pills" role="tablist" id="myTab">
                			<li role="presentation">
                				<a class="col-sx-4" href="#movedIn">已迁入
                					<i title="说明：无关联房屋住户进入待审核列表，住户迁入房屋后进入已迁入列表，审核不通过进入未通过列表，管理员将住户迁出房屋后，住户将进入已迁出列表。" class="fa fa-question-circle"></i>
                				</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#tapeAudit">待审核 <span style="font-weight:bold;color:red;">({$tapeAuditCount})</span>
                				</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#notPass">未通过</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#movedOut">已迁出</a>
                			</li>
                		</ul>
                		<div class="tab-content">
                			 <div id="movedIn" class="tab-pane active">
                			 	<div class="row">
				                    <div class="col-xs-12">
				                			<div class="row">
					                        	<form class="form-inline" action="{:U('importExcel')}" method="post" enctype="multipart/form-data">
										            <input class="inline" type="file" name="import"/>
										            <input type="hidden" name="table" value="tablename"/>
										            <input class="btn btn-info" type="submit" value="导入"/>
											    </form>
					                            <form class="form-inline" id="searchForm" action="" method="get">
					                            	<input type="hidden" id="tabname" name="tabname" value="movedIn" />
					                                <a class="btn btn-info" href="{:U('add')}" value="">新增</a>
					                                <a class="btn btn-info" href="{:U('exportHousehold')}" value="">导出</a>
					                                <a class="btn btn-info" href="{:U('exportExcelTemplate')}" value="">下载导入模板</a>
					                                <label class="inline">住户搜索</label>
					                                <select name="field" class="form-control">
					                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
					                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
					                                </select>
					                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
					                                <label class="inline">&nbsp;&nbsp;排序：</label>
					                                <select name="order" class="form-control">
					                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
					                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
					                                </select>
					                                <button type="submit" class="btn btn-purple btn-sm">
					                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
					                                    Search
					                                </button>
					                            </form>
					                        </div>
					                        <div class="space-4"></div>
					                        <div class="row">
					                            <form id="form" method="post" action="{:U('del')}">
					                                <table class="table table-striped table-bordered table-hover">
					                                    <thead>
					                                    <tr>
					                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
					                                        <th class="center">手机</th>
					                                        <th class="center">姓名</th>
					                                        <th class="center">小区</th>
					                                        <th class="center">楼宇</th>
					                                        <th class="center">单元</th>
					                                        <th class="center">房号</th>
					                                        <th class="center">住户身份</th>
					                                        <th class="center">登录次数</th>
					                                        <th class="center">操作</th>
					                                    </tr>
					                                    </thead>
					                                    <tbody>
					                                    <volist name="listMovedIn" id="val">
					                                        <tr>
					                                        	<td class="center">
					                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
					                                            </td>
					                                            <td class="center">{$val['tel']}</td>
					                                            <td class="center">{$val['household_name']}</td>
					                                        	<td class="center">{$val['village_name']}</td>
					                                        	<td class="center">{$val['building_name']}</td>
					                                        	<td class="center">{$val['unit_name']}</td>
					                                            <td class="center">{$val['house_name']}</td>
					                                            <td class="center">{$val['household_status']}</td>
					                                            <td class="center">{$val['login_times']}</td>
					                                            <td class="center">
		                                            				<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
					                                            	<a href="{:U('edit',array('household_id'=>$val['household_id']))}">修改</a>&nbsp;
					                                            	<a class="out" href="javascript:;" val="{:U('movedOut',array('household_id'=>$val['household_id'],'house_id'=>$val['house_id']))}">迁出房屋</a>&nbsp;
					                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
					                                            </td>
					                                        </tr>
					                                    </volist>
					                                    </tbody>
					                                </table>
					                            </form>
					                            <!-- <div class="cf">
					                                <input id="submit" class="btn btn-info" type="button" value="删除">
					                            </div> -->
					                            {$pageMovedIn}
						                    </div>
				                		</div>
				                        <!-- PAGE CONTENT ENDS -->
				                    </div>
                			 </div>
		                     <div id="tapeAudit" class="tab-pane">
		                     	<div class="row">
				                    <div class="col-xs-12">
				                			<div class="row">
						                            <form class="form-inline" id="searchForm" action="" method="get">
						                            	<input type="hidden" id="tabname" name="tabname" value="tapeAudit" />
						                                <label class="inline">住户搜索</label>
						                                <select name="field" class="form-control">
						                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
						                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
						                                </select>
						                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
						                                <label class="inline">&nbsp;&nbsp;排序：</label>
						                                <select name="order" class="form-control">
						                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
						                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
						                                </select>
						                                <button type="submit" class="btn btn-purple btn-sm">
						                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
						                                    Search
						                                </button>
						                            </form>
						                        </div>
						                        <div class="space-4"></div>
						                        <div class="row">
						                            <form id="form" method="post" action="{:U('del')}">
						                                <table class="table table-striped table-bordered table-hover">
						                                    <thead>
						                                    <tr>
						                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
						                                        <th class="center">手机</th>
					                                        	<th class="center">姓名</th>
					                                        	<th class="center">小区</th>
						                                        <th class="center">住户来源</th>
						                                        <th class="center">注册时间</th>
						                                        <th class="center">迁入申请</th>
						                                        <th class="center">操作</th>
						                                    </tr>
						                                    </thead>
						                                    <tbody>
						                                    <volist name="listTapeAudit" id="val">
						                                        <tr>
						                                        	<td class="center">
						                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
						                                            </td>
						                                            <td class="center">{$val['tel']}</td>
						                                            <td class="center">{$val['household_name']}</td>
						                                        	<td class="center">{$val['village_name']}</td>
						                                        	<td class="center">
						                                        		<?php if($val['openid']!=''){echo '微信';}else{echo '未知';} ?>
						                                        	</td>
						                                        	<td class="center">{$val['first_login_time']}</td>
						                                        	<td class="center">{$val['move_reason']}</td>
						                                            <td class="center">
						                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
						                                            	<!-- <a id="auditing" href="javascript:;">审核</a>&nbsp; -->
						                                            </td>
						                                        </tr>
						                                    </volist>
						                                    </tbody>
						                                </table>
						                            </form>
						                            {$pageTapeAudit}
						                        </div>
				                		</div>
				                        <!-- PAGE CONTENT ENDS -->
				                    </div>
		                     </div>
		                     <div id="notPass" class="tab-pane">
		                     	<div class="row">
		                            <form class="form-inline" id="searchForm" action="" method="get">
		                            	<input type="hidden" id="tabname" name="tabname" value="notPass" />
		                                <label class="inline">住户搜索</label>
		                                <select name="field" class="form-control">
		                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
		                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
		                                </select>
		                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
		                                <label class="inline">&nbsp;&nbsp;排序：</label>
		                                <select name="order" class="form-control">
		                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
		                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
		                                </select>
		                                <button type="submit" class="btn btn-purple btn-sm">
		                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
		                                    Search
		                                </button>
		                            </form>
		                        </div>
		                        <div class="space-4"></div>
		                        <div class="row">
		                            <form id="form" method="post" action="{:U('del')}">
		                                <table class="table table-striped table-bordered table-hover">
		                                    <thead>
		                                    <tr>
		                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
		                                        <th class="center">手机</th>
	                                        	<th class="center">姓名</th>
	                                        	<th class="center">小区</th>
		                                        <th class="center">迁入申请</th>
		                                        <th class="center">注册时间</th>
		                                        <th class="center">操作</th>
		                                    </tr>
		                                    </thead>
		                                    <tbody>
		                                    <volist name="listNotPass" id="val">
		                                        <tr>
		                                        	<td class="center">
		                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
		                                            </td>
		                                        	<td class="center">{$val['tel']}</td>
		                                            <td class="center">{$val['household_name']}</td>
		                                        	<td class="center">{$val['village_name']}</td>
		                                        	<td class="center">{$val['move_reason']}</td>
		                                        	<td class="center">{$val['first_login_time']}</td>
		                                            <td class="center">
		                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
		                                            	<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
		                                            	<a class="del" href="javascript:;" val="{:U('del',array('householdIds'=>$val['household_id']))}" title="删除后无法恢复，请谨慎操作。">删除</a>&nbsp;
		                                            </td>
		                                        </tr>
		                                    </volist>
		                                    </tbody>
		                                </table>
		                            </form>
		                            {$pageNotPass}
		                        </div>
		                     </div>
		                     <div role="tabpanel" id="movedOut" class="tab-pane fade">
		                     	<div class="row">
		                            <form class="form-inline" id="searchForm" action="" method="get">
		                            	<input type="hidden" id="tabname" name="tabname" value="movedOut" />
		                                <label class="inline">住户搜索</label>
		                                <select name="field" class="form-control">
		                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
		                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
		                                </select>
		                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
		                                <label class="inline">&nbsp;&nbsp;排序：</label>
		                                <select name="order" class="form-control">
		                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
		                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
		                                </select>
		                                <button type="submit" class="btn btn-purple btn-sm">
		                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
		                                    Search
		                                </button>
		                            </form>
		                        </div>
		                        <div class="space-4"></div>
		                        <div class="row">
		                            <form id="form" method="post" action="{:U('del')}">
		                                <table class="table table-striped table-bordered table-hover">
		                                    <thead>
		                                    <tr>
		                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
		                                        <th class="center">手机</th>
	                                        	<th class="center">姓名</th>
	                                        	<th class="center">小区</th>
		                                        <th class="center">注册时间</th>
		                                        <th class="center">操作</th>
		                                    </tr>
		                                    </thead>
		                                    <tbody>
		                                    <volist name="listMovedOut" id="val">
		                                        <tr>
		                                        	<td class="center">
		                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
		                                            </td>
		                                        	<td class="center">{$val['tel']}</td>
		                                            <td class="center">{$val['household_name']}</td>
		                                        	<td class="center">{$val['village_name']}</td>
		                                        	<td class="center">{$val['first_login_time']}</td>
		                                            <td class="center">
		                                            	<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
		                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">再次迁入</a>&nbsp;
		                                            	<a class="del" href="javascript:;" val="{:U('del',array('householdIds'=>$val['household_id']))}" title="删除后无法恢复，请谨慎操作。">删除</a>&nbsp;
		                                            </td>
		                                        </tr>
		                                    </volist>
		                                    </tbody>
		                                </table>
		                            </form>
		                            {$pageMovedOut}
		                        </div>
		                     </div>
                		</div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>
	<!-- 模态框（Modal） -->
	<div class="modal fade" id="auditModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" 
							aria-hidden="true">×
					</button>
					<h4 class="modal-title" id="myModalLabel">
						审核
					</h4>
				</div>
				<div class="modal-body">
					<form>  
	                    <div class="form-group">  
	                        <label for="recipient-name" class="control-label">Recipient:</label>  
	                        <input type="text" class="form-control" id="recipient-name">  
	                    </div>  
	                    <div class="form-group">  
	                        <label for="message-text" class="control-label">Message:</label>  
	                        <textarea class="form-control" id="message-text"></textarea>  
	                    </div>  
	                </form>  
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" 
							data-dismiss="modal">关闭
					</button>
					<button type="button" class="btn btn-primary">
						提交更改
					</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
    	var defaultTab = $("#defaultTab").val();
    	$('#myTab a[href="#'+defaultTab+'"]').tab('show');//初始化显示哪个tab  
    	//$("#"+defaultTab).load(defaultTab+'.html'); // ajax加载页面 
    		  
    	$('#myTab a').click(function (e) {
    		e.preventDefault();//阻止a链接的跳转行为  
    		var clickTab = $(this).attr("href");
    		//alert(clickTab);
    		//$("#currentTab").val();
    		//$(clickTab).html('<br> 页面加载中，请稍后...');
    		//var tab = $.trim(clickTab);
    		//var tab = tab.substr(1);
    		//$(clickTab).load(tab+'.html'); // ajax加载页面 
    		$(this).tab('show');//显示当前选中的链接及关联的content  
    	})  
    	
        $(".check-all").click(function () {
            $(".householdIds").prop("checked", this.checked);
        });
      
    	//批量删除
        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选住户？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        //删除单个
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除该住户?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        
        //迁出
        $(".out").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要迁出该住户?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        
      	//审核
        $("#auditing").click(function () {
        	$('#auditModel').modal({
        	        keyboard: true,
        	        backdrop: 'static'
       	    });
        	
        });
      	
     	// 弹出框 居中
        $('#auditModel').on('show.bs.modal', function(){
          var $this = $(this);
          var $modal_dialog = $this.find('.modal-dialog');
          // 关键代码，如没将modal设置为 block，则$modala_dialog.height() 为零
          $this.css('display', 'block');
          $modal_dialog.css({'margin-top': Math.max(0, ($(window).height() - $modal_dialog.height()) / 2) });
        });
    })
</script>
</body>
</html>
<commit_msg>1.住户管理列表新增是否绑定微信列<commit_after><include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
				
                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <input type="hidden" id="defaultTab" name="defaultTab" value="{$tab}" />
                		<ul class="nav nav-pills" role="tablist" id="myTab">
                			<li role="presentation">
                				<a class="col-sx-4" href="#movedIn">已迁入
                					<i title="说明：无关联房屋住户进入待审核列表，住户迁入房屋后进入已迁入列表，审核不通过进入未通过列表，管理员将住户迁出房屋后，住户将进入已迁出列表。" class="fa fa-question-circle"></i>
                				</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#tapeAudit">待审核 <span style="font-weight:bold;color:red;">({$tapeAuditCount})</span>
                				</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#notPass">未通过</a>
                			</li>
                			<li role="presentation">
                				<a class="col-sx-4" href="#movedOut">已迁出</a>
                			</li>
                		</ul>
                		<div class="tab-content">
                			 <div id="movedIn" class="tab-pane active">
                			 	<div class="row">
				                    <div class="col-xs-12">
				                			<div class="row">
					                        	<form class="form-inline" action="{:U('importExcel')}" method="post" enctype="multipart/form-data">
										            <input class="inline" type="file" name="import"/>
										            <input type="hidden" name="table" value="tablename"/>
										            <input class="btn btn-info" type="submit" value="导入"/>
											    </form>
					                            <form class="form-inline" id="searchForm" action="" method="get">
					                            	<input type="hidden" id="tabname" name="tabname" value="movedIn" />
					                                <a class="btn btn-info" href="{:U('add')}" value="">新增</a>
					                                <a class="btn btn-info" href="{:U('exportHousehold')}" value="">导出</a>
					                                <a class="btn btn-info" href="{:U('exportExcelTemplate')}" value="">下载导入模板</a>
					                                <label class="inline">住户搜索</label>
					                                <select name="field" class="form-control">
					                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
					                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
					                                </select>
					                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
					                                <label class="inline">&nbsp;&nbsp;排序：</label>
					                                <select name="order" class="form-control">
					                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
					                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
					                                </select>
					                                <button type="submit" class="btn btn-purple btn-sm">
					                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
					                                    Search
					                                </button>
					                            </form>
					                        </div>
					                        <div class="space-4"></div>
					                        <div class="row">
					                            <form id="form" method="post" action="{:U('del')}">
					                                <table class="table table-striped table-bordered table-hover">
					                                    <thead>
					                                    <tr>
					                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
					                                        <th class="center">手机</th>
					                                        <th class="center">姓名</th>
					                                        <th class="center">小区</th>
					                                        <th class="center">楼宇</th>
					                                        <th class="center">单元</th>
					                                        <th class="center">房号</th>
					                                        <th class="center">住户身份</th>
					                                        <th class="center">登录次数</th>
					                                        <th class="center">是否绑定微信</th>
					                                        <th class="center">操作</th>
					                                    </tr>
					                                    </thead>
					                                    <tbody>
					                                    <volist name="listMovedIn" id="val">
					                                        <tr>
					                                        	<td class="center">
					                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
					                                            </td>
					                                            <td class="center">{$val['tel']}</td>
					                                            <td class="center">{$val['household_name']}</td>
					                                        	<td class="center">{$val['village_name']}</td>
					                                        	<td class="center">{$val['building_name']}</td>
					                                        	<td class="center">{$val['unit_name']}</td>
					                                            <td class="center">{$val['house_name']}</td>
					                                            <td class="center">{$val['household_status']}</td>
					                                            <td class="center">{$val['login_times']}</td>
					                                            <td class="center"><?php if($val['openid']!=''){echo '是';}else{echo '否';} ?></td>
					                                            <td class="center">
		                                            				<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
					                                            	<a href="{:U('edit',array('household_id'=>$val['household_id']))}">修改</a>&nbsp;
					                                            	<a class="out" href="javascript:;" val="{:U('movedOut',array('household_id'=>$val['household_id'],'house_id'=>$val['house_id']))}">迁出房屋</a>&nbsp;
					                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
					                                            </td>
					                                        </tr>
					                                    </volist>
					                                    </tbody>
					                                </table>
					                            </form>
					                            <!-- <div class="cf">
					                                <input id="submit" class="btn btn-info" type="button" value="删除">
					                            </div> -->
					                            {$pageMovedIn}
						                    </div>
				                		</div>
				                        <!-- PAGE CONTENT ENDS -->
				                    </div>
                			 </div>
		                     <div id="tapeAudit" class="tab-pane">
		                     	<div class="row">
				                    <div class="col-xs-12">
				                			<div class="row">
						                            <form class="form-inline" id="searchForm" action="" method="get">
						                            	<input type="hidden" id="tabname" name="tabname" value="tapeAudit" />
						                                <label class="inline">住户搜索</label>
						                                <select name="field" class="form-control">
						                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
						                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
						                                </select>
						                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
						                                <label class="inline">&nbsp;&nbsp;排序：</label>
						                                <select name="order" class="form-control">
						                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
						                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
						                                </select>
						                                <button type="submit" class="btn btn-purple btn-sm">
						                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
						                                    Search
						                                </button>
						                            </form>
						                        </div>
						                        <div class="space-4"></div>
						                        <div class="row">
						                            <form id="form" method="post" action="{:U('del')}">
						                                <table class="table table-striped table-bordered table-hover">
						                                    <thead>
						                                    <tr>
						                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
						                                        <th class="center">手机</th>
					                                        	<th class="center">姓名</th>
					                                        	<th class="center">小区</th>
						                                        <th class="center">住户来源</th>
						                                        <th class="center">注册时间</th>
						                                        <th class="center">迁入申请</th>
						                                        <th class="center">是否绑定微信</th>
						                                        <th class="center">操作</th>
						                                    </tr>
						                                    </thead>
						                                    <tbody>
						                                    <volist name="listTapeAudit" id="val">
						                                        <tr>
						                                        	<td class="center">
						                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
						                                            </td>
						                                            <td class="center">{$val['tel']}</td>
						                                            <td class="center">{$val['household_name']}</td>
						                                        	<td class="center">{$val['village_name']}</td>
						                                        	<td class="center">
						                                        		<?php if($val['openid']!=''){echo '微信';}else{echo '未知';} ?>
						                                        	</td>
						                                        	<td class="center">{$val['first_login_time']}</td>
						                                        	<td class="center">{$val['move_reason']}</td>
						                                        	<td class="center"><?php if($val['openid']!=''){echo '是';}else{echo '否';} ?></td>
						                                            <td class="center">
						                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
						                                            	<!-- <a id="auditing" href="javascript:;">审核</a>&nbsp; -->
						                                            </td>
						                                        </tr>
						                                    </volist>
						                                    </tbody>
						                                </table>
						                            </form>
						                            {$pageTapeAudit}
						                        </div>
				                		</div>
				                        <!-- PAGE CONTENT ENDS -->
				                    </div>
		                     </div>
		                     <div id="notPass" class="tab-pane">
		                     	<div class="row">
		                            <form class="form-inline" id="searchForm" action="" method="get">
		                            	<input type="hidden" id="tabname" name="tabname" value="notPass" />
		                                <label class="inline">住户搜索</label>
		                                <select name="field" class="form-control">
		                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
		                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
		                                </select>
		                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
		                                <label class="inline">&nbsp;&nbsp;排序：</label>
		                                <select name="order" class="form-control">
		                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
		                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
		                                </select>
		                                <button type="submit" class="btn btn-purple btn-sm">
		                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
		                                    Search
		                                </button>
		                            </form>
		                        </div>
		                        <div class="space-4"></div>
		                        <div class="row">
		                            <form id="form" method="post" action="{:U('del')}">
		                                <table class="table table-striped table-bordered table-hover">
		                                    <thead>
		                                    <tr>
		                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
		                                        <th class="center">手机</th>
	                                        	<th class="center">姓名</th>
	                                        	<th class="center">小区</th>
		                                        <th class="center">迁入申请</th>
		                                        <th class="center">注册时间</th>
		                                        <th class="center">是否绑定微信</th>
		                                        <th class="center">操作</th>
		                                    </tr>
		                                    </thead>
		                                    <tbody>
		                                    <volist name="listNotPass" id="val">
		                                        <tr>
		                                        	<td class="center">
		                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
		                                            </td>
		                                        	<td class="center">{$val['tel']}</td>
		                                            <td class="center">{$val['household_name']}</td>
		                                        	<td class="center">{$val['village_name']}</td>
		                                        	<td class="center">{$val['move_reason']}</td>
		                                        	<td class="center">{$val['first_login_time']}</td>
		                                        	<td class="center"><?php if($val['openid']!=''){echo '是';}else{echo '否';} ?></td>
		                                            <td class="center">
		                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">迁入房屋</a>&nbsp;
		                                            	<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
		                                            	<a class="del" href="javascript:;" val="{:U('del',array('householdIds'=>$val['household_id']))}" title="删除后无法恢复，请谨慎操作。">删除</a>&nbsp;
		                                            </td>
		                                        </tr>
		                                    </volist>
		                                    </tbody>
		                                </table>
		                            </form>
		                            {$pageNotPass}
		                        </div>
		                     </div>
		                     <div role="tabpanel" id="movedOut" class="tab-pane fade">
		                     	<div class="row">
		                            <form class="form-inline" id="searchForm" action="" method="get">
		                            	<input type="hidden" id="tabname" name="tabname" value="movedOut" />
		                                <label class="inline">住户搜索</label>
		                                <select name="field" class="form-control">
		                                    <option <if condition="I('field') eq household_name">selected</if> value="household_name">住户名</option>
		                                	<option <if condition="I('field') eq nickname">selected</if> value="nickname">昵称</option>
		                                </select>
		                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
		                                <label class="inline">&nbsp;&nbsp;排序：</label>
		                                <select name="order" class="form-control">
		                                    <option <if condition="I('order') eq asc">selected</if> value="asc">修改时间升</option>
		                                    <option <if condition="I('order') eq desc">selected</if> value="desc">修改时间降</option>
		                                </select>
		                                <button type="submit" class="btn btn-purple btn-sm">
		                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
		                                    Search
		                                </button>
		                            </form>
		                        </div>
		                        <div class="space-4"></div>
		                        <div class="row">
		                            <form id="form" method="post" action="{:U('del')}">
		                                <table class="table table-striped table-bordered table-hover">
		                                    <thead>
		                                    <tr>
		                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
		                                        <th class="center">手机</th>
	                                        	<th class="center">姓名</th>
	                                        	<th class="center">小区</th>
		                                        <th class="center">注册时间</th>
		                                        <th class="center">是否绑定微信</th>
		                                        <th class="center">操作</th>
		                                    </tr>
		                                    </thead>
		                                    <tbody>
		                                    <volist name="listMovedOut" id="val">
		                                        <tr>
		                                        	<td class="center">
		                                                <input class="householdIds" type="checkbox" name="householdIds[]" value="{$val['household_id']}">   
		                                            </td>
		                                        	<td class="center">{$val['tel']}</td>
		                                            <td class="center">{$val['household_name']}</td>
		                                        	<td class="center">{$val['village_name']}</td>
		                                        	<td class="center">{$val['first_login_time']}</td>
		                                        	<td class="center"><?php if($val['openid']!=''){echo '是';}else{echo '否';} ?></td>
		                                            <td class="center">
		                                            	<a href="{:U('details',array('household_id'=>$val['household_id']))}">查看详情</a>&nbsp;
		                                            	<a href="{:U('movedIn',array('household_id'=>$val['household_id']))}">再次迁入</a>&nbsp;
		                                            	<a class="del" href="javascript:;" val="{:U('del',array('householdIds'=>$val['household_id']))}" title="删除后无法恢复，请谨慎操作。">删除</a>&nbsp;
		                                            </td>
		                                        </tr>
		                                    </volist>
		                                    </tbody>
		                                </table>
		                            </form>
		                            {$pageMovedOut}
		                        </div>
		                     </div>
                		</div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>
	<!-- 模态框（Modal） -->
	<div class="modal fade" id="auditModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" 
							aria-hidden="true">×
					</button>
					<h4 class="modal-title" id="myModalLabel">
						审核
					</h4>
				</div>
				<div class="modal-body">
					<form>  
	                    <div class="form-group">  
	                        <label for="recipient-name" class="control-label">Recipient:</label>  
	                        <input type="text" class="form-control" id="recipient-name">  
	                    </div>  
	                    <div class="form-group">  
	                        <label for="message-text" class="control-label">Message:</label>  
	                        <textarea class="form-control" id="message-text"></textarea>  
	                    </div>  
	                </form>  
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" 
							data-dismiss="modal">关闭
					</button>
					<button type="button" class="btn btn-primary">
						提交更改
					</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
    	var defaultTab = $("#defaultTab").val();
    	$('#myTab a[href="#'+defaultTab+'"]').tab('show');//初始化显示哪个tab  
    	//$("#"+defaultTab).load(defaultTab+'.html'); // ajax加载页面 
    		  
    	$('#myTab a').click(function (e) {
    		e.preventDefault();//阻止a链接的跳转行为  
    		var clickTab = $(this).attr("href");
    		//alert(clickTab);
    		//$("#currentTab").val();
    		//$(clickTab).html('<br> 页面加载中，请稍后...');
    		//var tab = $.trim(clickTab);
    		//var tab = tab.substr(1);
    		//$(clickTab).load(tab+'.html'); // ajax加载页面 
    		$(this).tab('show');//显示当前选中的链接及关联的content  
    	})  
    	
        $(".check-all").click(function () {
            $(".householdIds").prop("checked", this.checked);
        });
      
    	//批量删除
        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选住户？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        //删除单个
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除该住户?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        
        //迁出
        $(".out").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要迁出该住户?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        
      	//审核
        $("#auditing").click(function () {
        	$('#auditModel').modal({
        	        keyboard: true,
        	        backdrop: 'static'
       	    });
        	
        });
      	
     	// 弹出框 居中
        $('#auditModel').on('show.bs.modal', function(){
          var $this = $(this);
          var $modal_dialog = $this.find('.modal-dialog');
          // 关键代码，如没将modal设置为 block，则$modala_dialog.height() 为零
          $this.css('display', 'block');
          $modal_dialog.css({'margin-top': Math.max(0, ($(window).height() - $modal_dialog.height()) / 2) });
        });
    })
</script>
</body>
</html>

{'fraction_non_alphanumeric': 0.14498032396815227, 'fraction_numerical': 0.0011897135535828681, 'mean_word_length': 0.8907152991660033, 'pattern_counts': {'":': 30, '<': 1021, '<?xml version=': 0, '>': 1045, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 490, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1868490', 'n_tokens_mistral': 15521, 'n_tokens_neox': 12949, 'n_words': 2008}