{include file="templates/html_header.html"}
		<!-- /section:basics/navbar.layout -->
		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
			{literal}
				try{ace.settings.loadState('main-container')}catch(e){}
			{/literal}
			</script>
			<!-- #section:basics/sidebar -->
			{include file="templates/html_sidebar.html"}
			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<div class="main-content-inner">
					<!-- #section:basics/content.breadcrumbs -->
					<div class="breadcrumbs ace-save-state" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="ace-icon fa fa-home home-icon"></i>
								<a href="index.php">首页</a>
							</li>

							<li>
								<a href="#">幸运手机号内定</a>
							</li>
							<li class="active">{$title}</li>
						</ul><!-- /.breadcrumb -->
						<!-- /section:basics/content.searchbox -->
					</div>

					<!-- /section:basics/content.breadcrumbs -->
					<div class="page-content">
					<h3 class="header smaller lighter blue">
						{$title}
						<small>幸运手机号的内定列表</small>
					</h3>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<!-- #section:elements.tab -->
										<div class="tabbable">
											<ul class="nav nav-tabs" id="myTab">
											<li class="active">
													<a data-toggle="tab" href="#home">
														幸运手机号内定列表
													</a>
												</li>

												<li>
													<a  href="./xingyunshoujihaodesignated.php">
														幸运手机号内定设置
													</a>
												</li>
												

												
											</ul>

											<div class="tab-content">
												<div id="designated" class="tab-pane fade in active">
												<style>
													.avatar img{
														width:50px;
														height:50px;
													}
												</style>
													<table class="table table-striped table-bordered table-hover">
															<thead class="thin-border-bottom">
																<tr>
																	<th>微信</th>
																	<th>
																		中奖号码
																	</th>
																	<th>
																		中奖状态
																	</th>
																	
																	<th>
																		内定状态
																	</th>
																	<th>
																		中奖顺序
																	</th>
																	<th >操作</th>
																</tr>
															</thead>

															<tbody>
															{foreach $xingyunshoujihao $item}
																<tr id="item{$item['id']}">
																	<td class="avatar"><img src="{$item['avatar']}" />{$item['nickname']}</td>
																	<td class="phone">{$item['phone']}</td>
																	<td class="status">{$item['statustext']}</td>
																	<td class="designated" data="{$item['designated']}">{$item['designatedtext']}</td>
																	<td class="ordernum">{$item['ordernum']}</td>
																	<td >
																		<a href="###" onclick="del('{$item['id']}')"><span class="label label-danger">删除</span></a>
																	</td>
																</tr>
															{/foreach}
															</tbody>
														</table>
														{$pagehtml}
												</div>
											</div>
										</div>

										<!-- /section:elements.tab -->
									
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->
{include file="templates/html_footercontent.html"}
<!-- 写每个页面自定的js -->
<script type="text/javascript">
{literal}
function del(id){
	if(!confirm('确认要删除这条内定记录吗？'))return false;
	$.ajax({
		'url':"doxingyunshoujihao.php?action=del",
		'type':'get',
		'dataType':"json",
		'data':{'id':id},
		'success':function(json){
			if(json.code>0){
				$('#item'+id).remove();
			}else{
				alert(json.message);
				return false;
			}
		}
	});
}
{/literal}
</script>
{include file="templates/html_footer.html"}