<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/assemble_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/assemble_del}' class="form-horizontal">
				<table class="table">
					<colgroup>
						<col width="40px" />
						<col />
						<col width="120px" />
						<col width="90px" />
						<col width="80px" />
						<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>
							<th>操作</th>
						</tr>
					</thead>

					<tbody>
						{set:$queryObj=Api::run('getSellerListByAssemble');$resultData=$queryObj->find()}
						{foreach:items=$resultData}
						<tr>
							<td><input class="checkbox-template" type='checkbox' name='id[]' value='{$item['id']}' /></td>
							<td><a href='{url:/site/assemble/id/$item[id]}' target='_blank' class="orange" title="{$item['title']}">{$item['title']}</a></td>
							<td>{$item['assemble_price']}</td>
							<td>{$item['limit_nums']}</td>
							<td>{$item['sort']}</td>
							<td>{echo:active::statusAssemble($item)}</td>
							<td>{$item['sum_count']}</td>
							<td>
								<a href='{url:/seller/assemble_edit/id/$item['id']}'>
								    <i class="fa fa-edit fa-lg" title="编辑"></i>
								</a>

								<a href='javascript:void(0)' onclick="delModel({link:'{url:/seller/assemble_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>