<?php defined('G_IN_ADMIN')or exit('No permission resources.'); ?>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title></title>

<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/global.css" type="text/css">

<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/style.css" type="text/css">

<style>

tbody tr{ line-height:30px; height:30px;} 

.con_a_btn { border:0px solid #0c0}

.con_a_btn a{ display:inline-block; padding:3px 6px; margin-right:5px; background:#6CF; color:#fff; font-weight:bold; text-decoration:none; cursor:pointer}

</style>

</head>

<body>

<div class="header lr10" style="height: auto;">
	<form action="/member/member/ccwzjmember" method="get">
	<?php echo $this->headerment();?>
	</form>

</div>

<div class="bk10"></div>

<div class="table-list lr10">

		<?php if(ROUTE_A == 'noregmember'){ ?>

					

		  <table width="100%" cellspacing="0">

				<thead>

					<tr>

						<th width="100px" align="center">ID</th>

						<th width="100px" align="center">用户名</th>

						<th width="100px" align="center">邮箱</th>

						<th width="100px" align="center">手机</th>

						<th width="100px" align="center">注册时间</th>					

						<th width="100px" align="center">管理</th>       

					</tr>

				</thead>

				<tbody>

			    <?php foreach($members as $v){ ?>

				<tr>
					<td align="center"><?php echo $v['uid']; ?></td>

					<td align="center"><?php echo $v['username']; ?></td>	

					<td align="center"><?php echo $v['email']; ?></td>	

					<td align="center"><?php echo $v['mobile']; ?></td>	

					<td align="center"><?php echo date("Y-m-d H:i:s",$v['time']); ?></td>

			

					<td align="center">						

						<a href="<?php echo G_MODULE_PATH; ?>/member/modify/<?php echo $v['uid'];?>">修改11</a>

						<span class="span_fenge lr5">|</span>

						<a href="<?php echo G_MODULE_PATH; ?>/member/del/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>					

				   </td>            	

				</tr>

			   <?php } ?>

			  	</tbody>

				</table>

		<?php }elseif(ROUTE_A == 'otherregmember'){ ?>
			
				
				  <table width="100%" cellspacing="0">

						<thead>

							<tr>

								<th width="100px" align="center">ID</th>

								<th width="100px" align="center">用户名</th>

								<th width="100px" align="center">注册时间</th>					
	
								<th width="100px" align="center">注册来源</th>

								<th width="100px" align="center">管理</th>       

							</tr>

						</thead>

						<tbody>

					    <?php foreach($members as $v){ ?>

						<tr>

							<td align="center"><?php echo $v['uid']; ?></td>

							<td align="center"><?php echo $v['username']; ?></td>	

							<td align="center"><?php echo date("Y-m-d H:i:s",$v['time']); ?></td>

							<td align="center"><?php if(substr($v['username'],0,6) !='weixin'){ echo '<font style="color:red">快捷登陆注册</font>';}else{echo '关注公众号注册';} ?></td>

							<td align="center">						

								<a href="<?php echo G_MODULE_PATH; ?>/member/modify/<?php echo $v['uid'];?>">修改</a>

								<span class="span_fenge lr5">|</span>

								<a href="<?php echo G_MODULE_PATH; ?>/member/del/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>					

						   </td>            	

						</tr>

					   <?php } ?>

					  	</tbody>

						</table>

		<?php }elseif(ROUTE_A == 'daorumember'){ ?>
					
					  <table width="100%" cellspacing="0">

							<thead>

								<tr>

									<th width="100px" align="center">ID</th>

									<th width="100px" align="center">用户名</th>

									<th width="100px" align="center">注册时间</th>					
					
									<th width="100px" align="center">注册来源</th>

									<th width="100px" align="center">管理</th>       

								</tr>

							</thead>

							<tbody>

						    <?php foreach($members as $v){ ?>

							<tr>

								<td align="center"><?php echo $v['uid']; ?></td>

								<td align="center"><?php echo $v['username']; ?></td>	

								<td align="center"><?php echo date("Y-m-d H:i:s",$v['time']); ?></td>

								<td align="center">批量导入会员</td>

								<td align="center">						

									<a href="<?php echo G_MODULE_PATH; ?>/member/modify/<?php echo $v['uid'];?>">修改</a>

									<span class="span_fenge lr5">|</span>

									<a href="<?php echo G_MODULE_PATH; ?>/member/del/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>					

							   </td>            	

							</tr>

						   <?php } ?>

						  	</tbody>

							</table>




		<?php }elseif(ROUTE_A == 'ccwzjmember'){ ?>
			
			<div class="bk10"></div>

            

			  <table width="100%" cellspacing="0">
			
			    <thead>
			
					<tr>
						<th width="100px" align="center"><input type="checkbox" class="check_all" /></th>
			            <th width="100px" align="center">ID</th>
			
			            <th width="100px" align="center">用户名</th>
			
			            <th width="100px" align="center">邮箱</th>
			
			            <th width="100px" align="center">手机</th>
			
			            <th width="100px" align="center">账户金额</th>
			
			            <th width="100px" align="center">邮箱认证</th>
			
			            <th width="100px" align="center">手机认证</th>
			
			            <th width="100px" align="center">管理</th>       
			
					</tr>
			
			    </thead>
			
			    <tbody>
					<form action="/member/member/hongbao" method="post">
					<input type="hidden" name="num" value="<?php echo $_REQUEST['num'];?>" />
			    	<?php foreach($members as $v){ ?>
			
						<tr>
							<td align="center"><input type="checkbox" class="uid" value="<?php echo $v['uid']; ?>" name="uid[]" /></td>
							<td align="center"><?php echo $v['uid']; ?></td>
			
							<td align="center"><?php echo $v['username']; ?></td>	
			
							<td align="center"><?php echo $v['email']; ?></td>	
			
							<td align="center"><?php echo $v['mobile']; ?></td>	
			
							<td align="center"><?php echo $v['money']; ?></td>	
			
							<td align="center"><?php if($v['emailcode']==1){?><span style="color:red">已认证</span><?php }else{ ?>未认证<?php } ?></td>	
			
							<td align="center"><?php if($v['mobilecode']==1){?><span style="color:red">已认证</span><?php }else{ ?>未认证<?php } ?></td>
			
							<td align="center">
			
								<?php if($table=='@#_member_del'): ?>
			
								<a href="<?php echo G_MODULE_PATH; ?>/member/huifu/<?php echo $v['uid'];?>">恢复</a>
			
								<span class="span_fenge lr5">|</span>
			
								<a href="<?php echo G_MODULE_PATH; ?>/member/del_true/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>
			
								<?php else: ?>
			
								<a href="<?php echo G_MODULE_PATH; ?>/member/modify/<?php echo $v['uid'];?>">修改</a>
			
								<span class="span_fenge lr5">|</span>
			
								<a href="<?php echo G_MODULE_PATH; ?>/member/del/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>
			
								<?php endif; ?>
			
						   </td>            	
			
						</tr>
			
			            <?php } ?>
			            <tr><td colspan="9" align="left"><input style="padding: 5px;" type="submit" value="发放红包"/></td></tr>
			            
						</form>
			
			  	</tbody>
			
			</table>
			<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
			<script type="text/javascript">
			jQuery(document).ready(function($){ 
			    try{
			        jQuery(".check_all").on('click',function () {
			        	var the=jQuery(this);
			        	if (the.prop('checked')) {
			        		jQuery(".uid").prop('checked',true);
			        	}else{
			        		jQuery(".uid").prop('checked',false);
			        	}
			        })   
			    }catch(e){}
			});
			</script>
			
		<?php }elseif(ROUTE_A == 'hongbao'){ ?>
			
			<div class="bk10"></div>

            

			  <table width="100%" cellspacing="0">
			
			    <thead>
			
					<tr>
			            <th width="100px" align="center">ID</th>
			
			            <th width="100px" align="center">用户名</th>
			
			            <th width="100px" align="center">邮箱</th>
			
			            <th width="100px" align="center">手机</th>
			
			            <th width="100px" align="center">账户金额</th>
			
			            <th width="100px" align="center">红包金额</th>
			
			            <th width="100px" align="center">是否领取</th>
			
			
					</tr>
			
			    </thead>
			
			    <tbody>
					<form action="/member/member/hongbao" method="post">
					<input type="hidden" name="num" value="<?php echo $_REQUEST['num'];?>" />
			    	<?php foreach($list as $v){ ?>
			
						<tr>
							<td align="center"><?php echo $v['uid']; ?></td>
			
							<td align="center"><?php echo $v['username']; ?></td>	
			
							<td align="center"><?php echo $v['email']; ?></td>	
			
							<td align="center"><?php echo $v['mobile']; ?></td>	
			
							<td align="center"><?php echo $v['money']; ?></td>	
			
							<td align="center"><?php echo $v['jine'];?></td>	
			
							<td align="center"><?php if($v['status']==1){?><span style="color:red">已领取</span><?php }else{ ?>未领取<?php } ?></td>
			
			
						</tr>
			
			            <?php } ?>
			            
						</form>
			
			  	</tbody>
			
			</table>
			
		<?php }else{  ?>		

<!--start-->


		<!-- 	<div class="con_a_btn">

				<a href="<?php echo WEB_PATH.'/'.ROUTE_M.'/'.ROUTE_C.'/'.ROUTE_A; ?>/login_t/1">1个月未登陆</a>

				<a href="<?php echo WEB_PATH.'/'.ROUTE_M.'/'.ROUTE_C.'/'.ROUTE_A; ?>/login_t/2">2个月未登陆</a>

				<a href="<?php echo WEB_PATH.'/'.ROUTE_M.'/'.ROUTE_C.'/'.ROUTE_A; ?>/login_t/3">3个月未登陆</a>

				<a href="<?php echo WEB_PATH.'/'.ROUTE_M.'/'.ROUTE_C.'/'.ROUTE_A; ?>/login_t/desc">登陆时间倒序</a>

                			<a href="<?php echo WEB_PATH.'/'.ROUTE_M.'/'.ROUTE_C.'/'.ROUTE_A; ?>/login_t/asc">登陆时间正序</a>

			</div> -->

            <div class="bk10"></div>

            

  <table width="100%" cellspacing="0">

    <thead>

		<tr>
            <th width="100px" align="center">ID</th>

            <th width="100px" align="center">用户名</th>

            <th width="100px" align="center">邮箱</th>

            <th width="100px" align="center">手机</th>

            <th width="100px" align="center">账户金额</th>

            <th width="100px" align="center">邮箱认证</th>

            <th width="100px" align="center">手机认证</th>

            <th width="100px" align="center">管理</th>       

		</tr>

    </thead>

    <tbody>

    	<?php foreach($members as $v){ ?>

			<tr>
				<td align="center"><?php echo $v['uid']; ?></td>

				<td align="center"><?php echo $v['username']; ?></td>	

				<td align="center"><?php echo $v['email']; ?></td>	

				<td align="center"><?php echo $v['mobile']; ?></td>	

				<td align="center"><?php echo $v['money']; ?></td>	

				<td align="center"><?php if($v['emailcode']==1){?><span style="color:red">已认证</span><?php }else{ ?>未认证<?php } ?></td>	

				<td align="center"><?php if($v['mobilecode']==1){?><span style="color:red">已认证</span><?php }else{ ?>未认证<?php } ?></td>

				<td align="center">

					<?php if($table=='@#_member_del'): ?>

					<a href="<?php echo G_MODULE_PATH; ?>/member/huifu/<?php echo $v['uid'];?>">恢复</a>

					<span class="span_fenge lr5">|</span>

					<a href="<?php echo G_MODULE_PATH; ?>/member/del_true/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>

					<?php else: ?>

					<a href="<?php echo G_MODULE_PATH; ?>/member/modify/<?php echo $v['uid'];?>">修改</a>

					<span class="span_fenge lr5">|</span>

					<a href="<?php echo G_MODULE_PATH; ?>/member/del/<?php echo $v['uid'];?>" onClick="return confirm('是否真的删除！');">删除</a>

					<?php endif; ?>

			   </td>            	

			</tr>

            <?php } ?>

  	</tbody>

</table>

	   <?php } ?>	

</div><!--table-list end-->

<div id="pages"><ul><li>共 <?php echo $total; ?> 条</li><?php echo $page->show('one','li'); ?></ul></div>

<script>

</script>

</body>

</html> 