<table width="100%" class="topmenu">
	<tr><td>
		<a href="?status=0"{?if '0'==$Saxue.request.status?} class="on"{?/if?}><em>待审核文章</em></a><span>|</span>
		<a href="?status=2"{?if '2'==$Saxue.request.status?} class="on"{?/if?}><em>审核不通过文章</em></a>
	</td></tr>
</table>
<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>
			<select name="tbnum"><option value="">数据分表</option>{?section name=i loop=$tables?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.tbnum?} selected{?/if?}>{?$i['value']?}</option>{?/section?}</select>&nbsp;
			<select name="cid"><option value="">选择分类</option>{?$cates?}</select>&nbsp;
			<select name="keytype">
			  <option value="title"{?if "title" == $Saxue.request.keytype?} selected{?/if?}>文章标题</option>
			  <option value="author"{?if "author" == $Saxue.request.keytype?} selected{?/if?}>文章作者</option>
			  <option value="copyfrom"{?if "copyfrom" == $Saxue.request.keytype?} selected{?/if?}>文章来源</option>
			  <option value="aid"{?if "aid" == $Saxue.request.keytype?} selected{?/if?}>文章ID</option>
			  <option value="uid"{?if "uid" == $Saxue.request.keytype?} selected{?/if?}>会员ID</option>
			</select>&nbsp;
			<input name="keyword" type="text" class="text" size="15" value="{?$Saxue.request.keyword?}">&nbsp;
			<select name="searchtype">
			  <option value="2"{?if '2' == $Saxue.request.searchtype?} selected{?/if?}>完整匹配</option>
			  <option value="1"{?if '1' == $Saxue.request.searchtype?} selected{?/if?}>半模糊匹配</option>
			  <option value="0"{?if '0' == $Saxue.request.searchtype?} selected{?/if?}>模糊匹配</option>
			</select>&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:'时间':'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].aid?}"/></td>
		<td>{?if $rows[i].pid!=$rows[i].cid?}<a href="{?$rows[i].purl?}" target="_blank">{?$rows[i].pname?}</a>&nbsp;>&nbsp;{?/if?}<a href="{?$rows[i].curl?}" target="_blank">{?$rows[i].cname?}</a></td>
		<td><div class="show_single" title="{?$rows[i].title?}"><font color="{?$rows[i].style?}">{?$rows[i].title?}</font>{?if $rows[i].isthumb==1?}&nbsp;<span class="blue">[图]</span>{?/if?}{?if $rows[i].level>0?}&nbsp;[<span class="red">{?$rows[i].level?}</span>]{?/if?}</div></td>
		<td><a href="?keytype=uid&keyword={?$rows[i].uid?}">{?if $rows[i].uid==0?}<span class="red">管理员</span>{?else?}{?$rows[i].uname?}{?/if?}</a></td>
		<td>{?$rows[i].addtime|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].author?}</td>
		<td><a href="{?$rows[i].fromurl?}" target="_blank">{?$rows[i].copyfrom?}</a></td>
		<td>
			<a href="addarticle.php?aid={?$rows[i].aid?}">{?function saxue_geticon:'edit':'修改文章'?}</a>
			<a href="{?$saxue_thisurl?}&action=delete&ids[]={?$rows[i].aid?}" onclick="return confirm('你确定要删除文章『{?$rows[i].title?}』吗？')">{?function saxue_geticon:'del':'删除文章'?}</a>
			{?if $rows[i].ischapter==1?}<a href="chapter.php?aid={?$rows[i].aid?}">{?function saxue_geticon:'set':'章节管理'?}</a>{?/if?}
		</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="delete">批量删除</option>
				<option value="checkok">审核通过</option>
				<option value="checkno">审核不通过</option>
				<option value="movecate">分类转移</option>
				<option value="setlevel">推荐级别</option>
			</select>&nbsp;
			<select name="tocid" id="tocid"><option value="">选择分类</option>{?$cates?}</select>&nbsp;
			<select name="level" id="level"><option value="0">LEVEL 0</option><option value="1">LEVEL 1</option><option value="2">LEVEL 2</option><option value="3">LEVEL 3</option><option value="4">LEVEL 4</option><option value="5">LEVEL 5</option><option value="6">LEVEL 6</option><option value="7">LEVEL 7</option><option value="8">LEVEL 8</option><option value="9">LEVEL 9</option></select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">&nbsp;&nbsp;
		</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>