<div class="headbar">
	<div class="position"><span>营销</span><span>></span><span>营销活动管理</span><span>></span><span>限时抢购</span></div>
	<div class="operating">
		<a href="javascript:void(0)" onclick="event_link('{url:/market/pro_speed_edit}')"><button class="operating_btn" type="button"><span class="addition">添加限时抢购</span></button></a>
		<a href="javascript:void(0)" onclick="selectAll('id[]');"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a>
		<a href="javascript:void(0)" onclick="delModel();"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a>
	</div>
</div>
<div class="content">
	<form method='post' action='{url:/market/pro_speed_del}'>
		<table class="list_table">
			<colgroup>
				<col width="40px" />
				<col width="140px" />
				<col width="290px" />
				<col width="80px" />
				<col width="80px" />
			</colgroup>

			<thead>
				<tr>
					<th>选择</th>
					<th>名称</th>
					<th>活动时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody>
				{set:$page= (isset($_GET['page'])&&(intval($_GET['page'])>0))?intval($_GET['page']):1;}
				{query:name=promotion where=type eq 1  page=$page}
				<tr>
					<td><input type='checkbox' name='id[]' value='{$item['id']}' /></td>
					<td><a href='{url:/site/products/id/$item['condition']/promo/time/active_id/$item['id']}' target='_blank'>{$item['name']}</a></td>
					<td>{$item['start_time']} ～ {$item['end_time']}</td>
					<td>{echo:active::statusTime($item)}</td>
					<td>
						<a href='{url:/market/pro_speed_edit/id/$item[id]}'>
							<img class="operator" src="{skin:images/admin/icon_edit.gif}" alt="修改" title="修改" />
						</a>

						<a href='javascript:void(0)' onclick="delModel({link:'{url:/market/pro_speed_del/id/$item[id]}'});">
							<img class="operator" src="{skin:images/admin/icon_del.gif}" alt="删除" title="删除" />
						</a>
					</td>
				</tr>
				{/query}
			</tbody>
		</table>
	</form>
</div>
{$query->getPageBar()}
