<table width="100%" class="topmenu">
	<tr><td>
		<a href="index.php?catid={?$catid?}" class="on"><em>栏目内容</em></a><span>|</span>
		<a href="post.php?catid={?$catid?}"><em>添加文章</em></a><span>|</span>
		<a href="{?$saxue_admin_url?}/move.php?catid={?$catid?}"><em>批量移动</em></a>
	</td></tr>
</table>
<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>
			<select name="mtype">
			  <option value="addtime"{?if 'addtime' == $Saxue.request.mtype?} selected{?/if?}>添加时间</option>
			  <option value="updatetime"{?if 'updatetime' == $Saxue.request.mtype?} selected{?/if?}>更新时间</option>
			</select>&nbsp;
			<input type="text" name="fromtime" id="fromtime" value="{?$Saxue.request.fromtime?}" size="12" class="text date" readonly> - <input type="text" name="totime" id="totime" value="{?$Saxue.request.totime?}" size="12" class="text date" readonly>&nbsp;
			<select name="lang">
				<option value="">选择语言</option>{?section name=i loop=$lang?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.lang?} selected{?/if?}>{?$lang[i].name?}</option>{?/section?}
			</select>&nbsp;
			<select name="display">
			  <option value=""{?if '' == $Saxue.request.display?} selected{?/if?}>显示状态</option>
			  <option value="1"{?if '1' == $Saxue.request.display?} selected{?/if?}>显示</option>
			  <option value="0"{?if '0' == $Saxue.request.display?} selected{?/if?}>隐藏</option>
			</select>&nbsp;
			<select name="istop">
			  <option value=""{?if '' == $Saxue.request.istop?} selected{?/if?}>置顶状态</option>
			  <option value="1"{?if '1' == $Saxue.request.istop?} selected{?/if?}>置顶</option>
			  <option value="0"{?if '0' == $Saxue.request.istop?} selected{?/if?}>非置顶</option>
			</select>&nbsp;
			<select name="islink">
			  <option value=""{?if '' == $Saxue.request.islink?} selected{?/if?}>是否链接</option>
			  <option value="1"{?if '1' == $Saxue.request.islink?} selected{?/if?}>是</option>
			  <option value="0"{?if '0' == $Saxue.request.islink?} selected{?/if?}>否</option>
			</select>&nbsp;
			<select name="keytype">
			  <option value="title"{?if "title" == $Saxue.request.keytype?} selected{?/if?}>标题</option>
			  <option value="intro"{?if "intro" == $Saxue.request.keytype?} selected{?/if?}>简介</option>
			</select>&nbsp;
			<input name="keyword" type="text" class="text" size="15" value="{?$Saxue.request.keyword?}">&nbsp;
            <input type="submit" name="btnsearch" class="button" value="搜 索">
        </td>
    </tr>
</table>
</form>
<br>
<form method="post" name="frmpost" id="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>ID</th>
		<th>标题</th>
		<th>文章状态</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].id?}"/></td>
		<td>{?$rows[i].langname?}</td>
		<td>{?$rows[i].id?}</td>
		{?if $rows[i].islink==1?}
		<td><a href="{?$rows[i].url?}" target="_blank">{?$rows[i].title?}</a>&nbsp;&nbsp;<span class="red">[链]</span></td>
		{?else?}
		<td><a href="{?$saxue_url?}/content.php?pl={?$rows[i].lang?}&catid={?$catid?}&id={?$rows[i].id?}" target="_blank">{?$rows[i].title?}</a></td>
		{?/if?}
		<td>
			{?if $rows[i].display==1?}<span class="green">显示</span>{?else?}<span class="red">隐藏</span>{?/if?}{?if $rows[i].istop==1?}&nbsp;&nbsp;<span class="red">置顶</span>{?/if?}
		</td>
		<td>{?$rows[i].updatetime|date:"Y-m-d H:i:s"?}</td>
		<td>{?$rows[i].views?}</td>
		<td><a href="post.php?catid={?$catid?}&id={?$rows[i].id?}">修改</a></td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="batchaction" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="delete">批量删除</option>
				<option value="nodisplay">隐藏文章</option>
				<option value="display">显示文章</option>
				<option value="istop">置顶文章</option>
				<option value="caceltop">取消置顶</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">&nbsp;&nbsp;
			<input type="button" value="批量移动" class="button" onclick="$('#frmpost').attr('action', '{?$saxue_admin_url?}/move.php?catid={?$catid?}').submit()"/>
		</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==10?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(10)">10</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>
<link rel="stylesheet" type="text/css" href="{?$saxue_skin_server?}/calendar/calendar.css"/>
<script type="text/javascript" src="{?$saxue_skin_server?}/calendar/calendar.js"></script>
<script type="text/javascript">
Calendar.setup({
	inputField : "fromtime",
	trigger    : "fromtime",
	onSelect	: function() {this.hide();}
});
Calendar.setup({
	inputField : "totime",
	trigger    : "totime",
	onSelect	: function() {this.hide();}
});
</script>