<form name="frmsearch" method="post">
<input name="page" id="page" type="hidden" value="1">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table width="100%" align="center" class="sgrid">
    <tr>
        <td>
			<input name="title" type="text" class="text" size="15" value="{?$Saxue.request.title?}">&nbsp;
			<select name="cid"><option value="0">分类</option>{?section name=i loop=$cate?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.cid?} selected{?/if?}>{?$cate[i].cname?}</option>{?/section?}</select>&nbsp;
			<select name="status"><option value="">状态</option><option value="1"{?if '1'==$Saxue.request.status?} selected{?/if?}>显示</option><option value="0"{?if '0'==$Saxue.request.status?} selected{?/if?}>不显示</option></select>&nbsp;
			<label><input name="isgood" type="checkbox" value="1"{?if 1==$Saxue.request.isgood?} checked{?/if?}>&nbsp;推荐TAG</label>&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>{?function saxue_getsort:'文章数':'counts':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>{?function saxue_getsort:'访问数':'views':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>{?function saxue_getsort:'时间':'addtime':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>状态</th>
		<th>模版</th>
		<th>操作</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].topicid?}"/></td>
		<td>{?if 1==$rows[i].isgood?}<strong class="c_top">[荐]</strong>&nbsp;{?/if?}<a href="{?$rows[i].url?}" target="_blank">{?$rows[i].title?}</a></td>
		<td><a href="{?$rows[i].curl?}" target="_blank">{?$rows[i].cname?}</a></td>
		<td>{?$rows[i].counts?}</td>
		<td>{?$rows[i].views?}</td>
		<td>{?$rows[i].addtime|date:'Y-m-d H:i'?}</td>
		<td>{?if 1==$rows[i].status?}<a href="{?$saxue_thisurl?}&action=sethide&ids[]={?$rows[i].topicid?}" title="点击隐藏"><strong class="green">显示</strong></a>{?else?}<a href="{?$saxue_thisurl?}&action=setshow&ids[]={?$rows[i].topicid?}" title="点击显示"><strong class="red">隐藏</strong></a>{?/if?}</td>
		<td>{?$rows[i].temp?}</td>
		<td>
			<a href="javascript:doDialog('{?$saxue_url?}/topic/admin/article.php?topicid={?$rows[i].topicid?}&action=add','添加专题文章——《{?$rows[i].title?}》','800','600')">{?function saxue_geticon:'add':'添加文章'?}</a>
			<a href="javascript:doDialog('{?$saxue_url?}/topic/admin/article.php?topicid={?$rows[i].topicid?}','专题文章管理——《{?$rows[i].title?}》','800','600')">{?function saxue_geticon:'set':'文章管理'?}</a>
			<a href="addtopic.php?topicid={?$rows[i].topicid?}">{?function saxue_geticon:'edit':'修改'?}</a>
			<a href="{?$saxue_thisurl?}&action=delete&topicid[]={?$rows[i].topicid?}" onclick="return confirm('你确定要删除『{?$rows[i].title?}』吗？')">{?function saxue_geticon:'del':'删除'?}</a>
		</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="setgood">推荐</option>
				<option value="cacelgood">取消推荐</option>
				<option value="setshow">显示</option>
				<option value="sethide">不显示</option>
				<option value="movecate">分类移动</option>
				<option value="delete">删除</option>
				<option value="counts">统计文章数</option>
			</select>&nbsp;
			<select name="tocid" id="tocid"><option value="">选择分类</option>{?section name=i loop=$cate?}<option value="{?$i['key']?}">{?$cate[i].cname?}</option>{?/section?}</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>