<!--{template 'head'}-->
<!--{template 'collect/head'}-->
<table cellpadding="0" cellspacing="1" border="0" align=center width=100% class="tableborder border">
	<tr>
		<td align="left" colspan="2" valign="bottom" class="tablerow">
			<form name="tablesForm" method="get" action="system.php">
			<input type="hidden" value="rules_show" name="work">
			<input type="hidden" value="collect" name="sys">
			<input type="hidden" value="{$channelid}" name="channelid">
			<select onchange="this.form.submit();" name="class">
				<option value="">显示全部</option>
				{$menuTree}
			</select>
			</form>
		</td>
		<td align="center" colspan="3" valign="bottom" class="tablerow">
			<!--{eval new pager( $total, $pagesize);}-->
		</td>
	</tr>
	<tr bgcolor="#8482A5" bordercolor="#636194">
		<td align="center" width="60" height=30><font color="#EFF3FF">ID</font></td>
		<td align="center" width="180"><font color="#FFFFFF">所属栏目</font></td>
		<td align="left" style="padding-left:15px"><font color="#FFFFFF">&nbsp;名称</font></td>
		<td align="center" width="50"><font color="#FFFFFF">状态</font></td>
		<td align="center" width="150"><font color="#FFFFFF">最后采集时间</font></td>
	</tr>
	<!--{loop $lists $val}-->
	<tr>
		<td class="tablerowhighlight" height=26 align=center>{$val[id]}</td>
		<td class="tablerow" align=center>{$val[title]}</td>
		<td class="tablerow" style="padding-left:20px;">{$val[name]}</td>
		<td class="tablerow" align=center><!--{if $val['status']}-->正常<!--{else}--><font color=green>未完</font><!--{/if}--></td>
		<td class="tablerow" align=center>{$val[last_update]}</td>
	</tr>
	<tr>
		<td colspan="5" class="tablerowhighlight">
			<div style="text-align:right;padding-right:200px;">
				<!--{if $val['status']}-->
					<a href="system.php?sys=collect&channelid={$channelid}&work=test_link_work&rules={$val[id]}">测试</a> |
					<a href="system.php?sys=collect&channelid={$channelid}&work=collect&rules={$val[id]}">开始采集</a> |
					<a onclick="return qmeCms.dialogView.get('定时', 'system.php?sys=collect&channelid={$channelid}&work=cron&id={$val[id]}')" href="###">定时采集</a> |
					<a href="system.php?sys=collect&channelid={$channelid}&work=edit_rules&rules={$val[id]}">编辑</a> | 
					<a href="system.php?sys=collect&channelid={$channelid}&work=copy_rules&rules={$val[id]}">复制</a> |
					<a href="system.php?sys=collect&channelid={$channelid}&work=link_show&rules={$val[id]}">未采集链接</a> |
					<a href="system.php?sys=collect&channelid={$channelid}&work=del&rules={$val[id]}&data=link">清空</a> |
					<a href="system.php?sys=collect&channelid={$channelid}&work=export&rules={$val[id]}">导出规则</a> |
					<a onclick="return window.confirm('您确定要删除编号为{$val[id]}的采集器『{$val[rule_name]}』么?');" href="system.php?sys=collect&channelid={$channelid}&work=del&del=all&rules={$val[id]}">删除</a>
				<!--{else}-->
					<a href="system.php?sys=collect&channelid={$channelid}&work=edit_rules&rules={$val[id]}">编辑</a> | 
					<a onclick="return window.confirm('您确定要删除编号为{$val[id]}的采集器『{$val[rule_name]}』么?');" href="system.php?sys=collect&channelid={$channelid}&work=del&del=all&rules={$val[id]}">删除</a>
				<!--{/if}-->
			</div>
		</td>
	</tr>
	<!--{/loop}-->
</table>
<!--{template 'foot'}-->