<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="selectAll('id[]')" value="全选" />
				<input type="button" class="btn btn-primary" onclick="delModel();" value="批量删除" />
			</div>
		</div>

		<div class="card-body">
			<form action="{url:/seller/refer_del}" method="post" name="goodsForm" class="form-horizontal">
				<table class="table">
					<colgroup>
						<col width="30px" />
						<col />
						<col width="120px" />
						<col width="160px" />
						<col width="120px" />
						<col width="160px" />
						<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('getSellerListByRefer');$resultData=$queryObj->find()}
						{foreach:items=$resultData}
						<tr>
							<td><input name="id[]" type="checkbox" class="checkbox-template" value="{$item['id']}" /></td>
							<td><a href="{url:/site/products/id/$item['goods_id']}" target="_blank" title="{$item['name']}">{$item['name']}</a></td>
							<td>{if:isset($item['username'])}{$item['username']}{else:}非会员{/if}</td>
							<td>{$item['time']}</td>
							<td>{if:$item['admin_name']}{$item['admin_name']}{elseif:$item['seller_name']}{$item['seller_name']}{/if}</td>
							<td>{$item['reply_time']}</td>
							<td>
								<a href="{url:/seller/refer_edit/id/$item['id']}"><i class="fa fa-comment-o fa-lg" title="回复"></i></a>
								<a href="javascript:delModel({link:'{url:/seller/refer_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>