<!--{if AJAX}-->
{$xml[0]}
	<!--{if $lists}-->
	<form method="get" action="system.php" name="ajaxForm_new" id="ajaxForm_new">
		<input type="hidden" name="sys" value="collect" />
		<input type="hidden" name="work" value="edit_rules" />
		<input type="hidden" name="rules" value="{$rules}" />
		<input type="hidden" name="channelid" value="{$channelid}" />
		<input type="hidden" name="step" value="2" />
		<table cellpadding="0" cellspacing="1" border="0" align=center width=100% class="tableborder" style="background:#F5F5F5">
		<!--{loop $lists $key $val}-->
			<tr>
				<td style="padding:3px 0;width:24px;"><input type="radio" name="test_link" id="test_link_{$key}" value="{$val[test_url]}"  /></td>
				<td style="padding:3px 0"><label for="test_link_{$key}">{$val[test_title]}</label></a></td>
				<td style="padding:3px 0;text-align:right;"><a href="<!--{echo urldecode($val[test_url])}-->" target="_blank">浏览</a></td>
			</tr>
		<!--{/loop}-->
		</table>
	</form>
	<script type="text/javascript" reload="1">
	(function(){
		qmeCms.dialogView.setSubmit(true, "下一步", function(){
			var ids = getInputIds('ajaxForm_new');
			if(ids.length == 0){
				alert("请选择一个测试链接");
				return false;
			}
			qmeCms.dialogView.setSubmit(true, "提交中...", function(){});
			document.forms['ajaxForm_new'].submit();
		});
	})();
	</script>
	<!--{else}-->
	<p class="padding">采集链接规则有点问题</p>
	<!--{/if}-->
{$xml[1]}
<!--{else}-->
<!--{template 'head'}-->
<!--{template 'collect/head'}-->
<table cellpadding="0" cellspacing="1" border="0" align=center width=100% class="tableborder">
	<tr>
		<td width="27%" bgColor="#8482A5" height="30" align="center">
			<font color="#FFFFFF">错误分析</font>
		</td>
		<td width="15%" bgColor="#8482A5" height="30" align="center">
			<font color="#FFFFFF">连接数</font>
		</td>
		<td width="25%" bgColor="#8482A5" height="30" align="center">
			<font color="#FFFFFF">分析HTML</font>
		</td>
		<td width="33%" bgColor="#8482A5" height="30" align="center">
			<font color="#FFFFFF">测试的网址</font>
		</td>
	</tr>
	<tr>
		<td width="27%" bgColor="#efefef" height="40" align="center">
			<center>{$test_file}</center>
		</td>
		<td width="15%" bgColor="#f7f7f7" align="center" height="40">{$num}</td>
		<td width="25%" bgColor="#f7f7f7" align="center" height="40">
			<a href="###" onclick="qmeCms.dialogView.get('HTML分析', 'system.php?sys=collect&channelid={$channelid}&work=file_link&rules={$rules}&cuowuleurl={$url}', {type:'abs', width:800});return false;">错误了吗来分析HTML吧</a>
		</td>
		<td width="33%" bgColor="#f7f7f7" align="center" height="40"><a target="_blank" href="{$url}">{$url}</a></td>
	</tr>
	<tr>
		<td width="19%"  height="142" colspan="4" style="padding-top: 0px;">
			<!--{loop $lists $val}-->
			<table style="BORDER-COLLAPSE: collapse;" cellSpacing="0" cellPadding="0" width="100%" border="1" bordercolor="#C0C0C0">
				<tr>
					<td width="10%" bgColor="#efefef" height="30" align="center">标题</td>
					<td width="70%" bgColor="#f7f7f7" style="padding-left:15px;">{$val[test_title]}</td>
					<td width="20%" bgColor="#f7f7f7" align="center">
						<a href="###" onclick="qmeCms.dialogView.get('测试提取', 'system.php?sys=collect&channelid={$channelid}&work=test_work&rules={$val[test_rules]}&ceshitqurl={$val[test_url]}', {type:'abs', width:700});return false;">测试提取</a>
					</td>
				</tr>
				<tr>
					<td bgColor="#efefef" height="30" align="center">连接</td>
					<td style="padding-left:15px;"><a target="_blank"  href="{$val[test_url]}">{$val[test_urlname]}</a></td>
					<td align="center"><a href="#top">返回顶部</a></td>
				</tr>
			</table>
			<!--{/loop}-->
		</td>
	</tr>
</table>
<!--{/if}-->