<form name="frmsearch" method="post">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table width="100%" align="center" class="sgrid">
    <tr>
        <td>
			关键词：
			<input name="keywords" type="text" class="text" size="15" value="{?$Saxue.request.keywords?}">&nbsp;
            <input type="submit" name="btnsearch" class="button" value="搜 索">
        </td>
    </tr>
</table>
</form>
<br>
<form method="post" name="frmpost">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table width="100%" class="grid">
	<tr>
		<th><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for (var i=0;i<this.form.elements.length;i++){ if (this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }"></th>
		<th>关键词</th>
		<th>模块</th>
		<th>栏目</th>
		<th>{?function saxue_getsort:'缓存时间':'searchtime':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>缓存失效时间</th>
		<th>{?function saxue_getsort:'结果数':'results':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>{?function saxue_getsort:'搜索次数':'searchtimes':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].searchid?}"/></td>
		<td><a href="{?$rows[i].url?}" target="_blank">{?$rows[i].keywords?}</a></td>
		<td>{?$rows[i].modname?}</td>
		<td>{?if $rows[i].catid>0?}<a href="{?$rows[i].caturl?}" target="_blank">{?$rows[i].catname?}</a>{?else?}--{?/if?}</td>
		<td>{?$rows[i].searchtime|date:"Y-m-d H:i:s"?}</td>
		<td>{?$rows[i].cacheto|date:"Y-m-d H:i:s"?}</td>
		<td>{?$rows[i].results?}</td>
		<td>{?$rows[i].searchtimes?}</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="cache">重置缓存</option>
				<option value="delete">批量删除</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
	</tbody>
</table>
</form>
<table width="100%"><tr><td width="100%">
	<div class="fl pages">
		<ul>
			<li><span class="fl">每页显示:</span></li>
			<li{?if $Saxue.request.pagesize==20?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(20)">20</a></li>
			<li{?if $Saxue.request.pagesize==30?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(30)">30</a></li>
			<li{?if $Saxue.request.pagesize==50?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(50)">50</a></li>
			<li{?if $Saxue.request.pagesize==100?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(100)">100</a></li>
		</ul>
	</div>
	<div class="fr pages"><ul>{?$url_jumppage?}</ul></div>
</td></tr></table>