<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li>
			<i class="home-icon fa fa-home"></i>
			<a href="#">营销</a>
		</li>
		<li>
			<a href="#">促销活动管理</a>
		</li>
		<li class="active">促销活动列表</li>
	</ul>
</div>
<div class="content">
	<form method='post' action='{url:/market/pro_rule_del}'>
		<table class="table list-table">
			<colgroup>
				<col width="35px" />
				<col width="160px" />
				<col />
				<col width="70px" />
				<col width="230px" />
				<col width="110px" />
			</colgroup>
			<caption>
                <a class="btn btn-default" href="{url:/market/pro_rule_edit}">
                    <i class="fa fa-plus"></i>添加活动
                </a>

                <a class="btn btn-default" onclick="selectAll('id[]')">
                    <i class="fa fa-check"></i>全选
                </a>

                <a class="btn btn-default" onclick="delModel()">
                    <i class="fa fa-close"></i>批量删除
                </a>
			</caption>
			<thead>
				<tr>
					<th></th>
					<th>名称</th>
					<th>活动时间</th>
					<th>状态</th>
					<th>介绍</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody>
				{set:$queryObj=Api::run('getListRule');$resultData=$queryObj->find()}
                {foreach:items=$resultData}
				<tr>
					<td><input type='checkbox' name='id[]' value='{$item['id']}' /></td>
					<td>{$item['name']}</td>
					<td>{$item['start_time']} ～ {$item['end_time']}</td>
					<td>{echo:($item['is_close']==1) ? '关闭':'开启'}</td>
					<td>{$item['intro']}</td>
					<td>
						<a href='{url:/market/pro_rule_edit/id/$item['id']}'>
							<i class='operator fa fa-edit'></i>
						</a>

						<a href='javascript:void(0)' onclick="delModel({link:'{url:/market/pro_rule_del/id/$item[id]}'});">
							<i class='operator fa fa-close'></i>
						</a>
					</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
	</form>
</div>
{$queryObj->getPageBar()}