{set:$seller_id = $this->seller['seller_id'];}
<article class="col-lg-12">
	<div class="card forms">
		<div class="card-header d-flex align-items-center justify-content-between">
			<h3>团购列表</h3>
			<div>
				<input type="button" class="btn btn-primary" onclick="window.location.href='{url:/seller/regiment_edit}';" value="添加团购" />
				<input type="button" class="btn btn-primary" onclick="selectAll('id[]')" value="全选" />
				<input type="button" class="btn btn-primary" onclick="delModel();" value="批量删除" />
			</div>
		</div>

		<div class="card-body">
			<form method='post' action='{url:/seller/regiment_del}' class="form-horizontal">
				<table class="table">
					<colgroup>
						<col width="40px" />
						<col />
						<col width="320px" />
						<col width="70px" />
						<col width="80px" />
						<col width="90px" />
						<col width="90px" />
					</colgroup>

					<thead>
						<tr>
							<th></th>
							<th>标题</th>
							<th>团购时间</th>
							<th>排序</th>
							<th>状态</th>
							<th>销售情况</th>
							<th>操作</th>
						</tr>
					</thead>

					<tbody>
						{set:$queryObj=Api::run('getSellerListByRegiment');$resultData=$queryObj->find()}
						{foreach:items=$resultData}
						<tr>
							<td><input type='checkbox' name='id[]' class="checkbox-template" value='{$item['id']}' /></td>
							<td><a href='{url:/site/groupon/id/$item[id]}' target='_blank' title="{$item['title']}">{$item['title']}</a></td>
							<td>{$item['start_time']} ～ {$item['end_time']}</td>
							<td>{$item['sort']}</td>
							<td>{echo:active::statusRegiment($item)}</td>
							<td>{$item['sum_count']}/{$item['store_nums']}</td>
							<td>
								<a href='{url:/seller/regiment_edit/id/$item['id']}'>
									<i class="fa fa-edit fa-lg" title="编辑"></i>
								</a>
								<a href='javascript:void(0)' onclick="delModel({link:'{url:/seller/regiment_del/id/$item[id]}'});">
									<i class="fa fa-close fa-lg" title="删除"></i>
								</a>
							</td>
						</tr>
						{/foreach}
					</tbody>
				</table>
			</form>
			{$queryObj->getPageBar()}
		</div>
	</div>
</article>