<!--{:if $work == 'test_url'}-->
{:tpl head}
<table cellpadding="0" cellspacing="1" class="table_list">
 <caption>点击标题，测试内容</caption>
{:loop $data $v}
 <tr><td><a href="?c=spider&a=test&work=test_content&rid={:$rid}&url={:urlencode($v['url'])}" target="right">{:$v['title']}</a><br /><a href="{:$v['url']}" target="_blank">{:$v['url']}</a></td></tr>
{:/loop}
</table>
<!--{:if $power}-->
{:$power}
<!--{:/if}-->
<!--{:elseif $work == 'test_content'}-->
{:tpl head}
<table cellpadding="0" cellspacing="1" class="table_list">
 <caption>点击左边标题，这里显示内容</caption>
 <tr><td height="20px" class="fred">HTML方式预览</td></tr>
 <tr><td>{:str_replace("\n", "<br />", $content)}</td></tr>
 <tr><td height="20px" class="fred">查看源代码</td></tr>
 <tr><td height="400px"><textarea name="content" style="width:99%;height:400px;">{:$content}</textarea></td></tr>
</table>
<!--{:if $power}-->
<p align="center">
{:$power}
</p>
<!--{:/if}-->
<!--{:else}-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={:$charset}" />
<title>精迅网站内容管理 V{:JXCMS_VERSION} - powered by jxcms.com</title>
<style type="text/css">
<!--
body {margin: 0;overflow:hidden;}
-->
</style>
</head>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="400" align="center" valign="top"><iframe name="left" height="100%" width="100%" border="0" frameborder="0" src="?c=spider&a=test&work=test_url&rid={:$rid}"></iframe></td>
    <td valign="top"><iframe name="right" height="100%" width="100%" border="0" frameborder="0" src="?c=spider&a=test&work=test_content&rid={:$rid}"></iframe></td>
  </tr>
</table>
<!--{:/if}-->
</body>
</html>
