list_robot_thread.tpl
来自「企业易站官方网站 下面是相关帮助信息: 1.企业易站官方网站 http://ww」· TPL 代码 · 共 137 行
TPL
137 行
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
数据采集-机器人列表
</title>
<link href="main.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
{literal}
<script language="javascript">
<!--
function check_all()
{
var chk = document.getElementsByName("thread_id[]");
if(document.all.adminflag.value=="no")
{
for (i=0;i<chk.length;i++)
{
chk[i].checked = true;
}
document.all.checkall.value="取消"
document.all.adminflag.value="yes"
}
else
{
for (i=0;i<chk.length;i++)
{
chk[i].checked = false;
}
document.all.checkall.value="全选"
document.all.adminflag.value="no"
}
return;
}
function check_one()
{
var chk = document.getElementsByName("thread_id[]");
for (i=0;i<chk.length;i++)
{
if(chk[i].checked == true)
{
document.robot.btn_run.value="正在采集...";
document.robot.action="run_robot.php";
document.robot.submit();
alert("采集机器人正在运行,因是采集大量数据,过程稍长,\n\n 请稍后查看采集进度..");
return true;
break;
}
}
alert("请至少选择一个采集机器人");
return false;
}
//-->
</script>
{/literal}
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" bgcolor="ffffee">
<br>
<table width="95%" border="0" align="center">
<tr>
<td><form name="search_channel" action="list_robot_thread.php" method="post">
请输入搜索关键字(采集机器人名称)
<input type="input" name="UserKeyword" value="{$UserKeyword}">
<input type="submit" name="btn_submit" value="查询">
<input type="hidden" name="s_action" value="search">
(<a href="add_robot_thread.php">添加采集机器人</a>)
</form></td>
</tr>
</table>
<form method="POST" enctype="multipart/form-data" name="robot" target="run_robot">
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f2f2f2" class=p9 >
<tr bgcolor="#F2F2F2">
<td align="right">
<input type="hidden" name="thread_chk">
<input type="button" name="btn_run" value="开始采集" onclick="check_one()">
<iframe name=run_robot style=display:none></iframe>
</td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f2f2f2" class=p9 >
<tr bgcolor="#7596E2">
<td>编号</td>
<td>
选择
<input type=button name=checkall value="全选" onclick="check_all()">
</td>
<td>机器人名称</td>
<td>采集地址</td>
<td>新闻类型</td>
<td align=center>操 作</td>
</tr>
{section name=layers loop=$item_array step=1}
<tr>
<td>{$item_array[layers].thread_id}</td>
<td>
<input type="checkbox" name=thread_id[] value="{$item_array[layers].thread_id}">
</td>
<td>{$item_array[layers].thread_name}</td>
<td>
<a href="{$item_array[layers].snap_url}" target="blank">
{$item_array[layers].snap_url2}
</a>
</td>
<td>{$item_array[layers].news_type}</td>
<td align=center>
<a href="add_robot_thread.php?s_action=view&thread_id={$item_array[layers].thread_id}">修改</a>
<a href="add_robot_thread.php?s_action=del&thread_id={$item_array[layers].thread_id}">删除</a>
</td>
{math equation="x + y" x=$smarty.section.layers.index y=1 assign="next_index"}
</tr>
{/section}
</table>
<input type='hidden' name='adminflag' value='no'>
</form>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="30">
<tr align="right">
<td align="right">
当前是第{pagination->mPage}页
共{pagination->mPageCount}页
<a href="?UserKeyword={$UserKeyword}&page={pagination->mFirstPage}">首页</a>
<a href="?UserKeyword={$UserKeyword}&page={pagination->mPreviousPage}">上一页</a>
<a href="?UserKeyword={$UserKeyword}&page={pagination->mNextPage}">下一页</a>
<a href="?UserKeyword={$UserKeyword}&page={pagination->mLastPage}">末页</a>
</td>
<form action="list_robot_thread.php" method="post">
<td align="right" width="110">
<input type="hidden" name="UserKeyword" value="{$UserKeyword}">
跳到
<input type="text" name="page" size="3">页<input type="submit" name="Submit" value="GO">
</td>
</form>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?