<table width="100%" class="topmenu">
	<tr><td>
		<a href="friendlink.php" class="on"><em>链接管理</em></a><span>|</span>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/friendlink.php?action=add','添加链接','500','250')"><em>添加链接</em></a><span>|</span>
		<a href="?action=cache"><em>更新缓存</em></a>
	</td></tr>
</table>
<form method="post" name="frmpost" id="frmpost">
<input name="action" id="action" type="hidden" value="listorder">
<table width="100%" class="grid">
	<tr>
		<th>排序</th>
		<th>链接显示</th>
		<th>类型</th>
		<th>状态</th>
		<th>联系方式</th>
		<th>添加时间</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="text" class="text" name="listorder[{?$rows[i].linkid?}]" size="5" maxlength="4" value="{?$rows[i].listorder?}" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
		<td><a href="{?$rows[i].url?}" target="_blank" title="{?$rows[i].intro?}">{?if $rows[i].type==1?}<img src="{?$rows[i].logo?}" alt="{?$rows[i].title?}">{?else?}{?$rows[i].title?}{?/if?}</a></td>
		<td>{?if $rows[i].type==1?}图片{?else?}文字{?/if?}</td>
		<td>{?if $rows[i].display==1?}<a href="?linkid={?$rows[i].linkid?}&action=display&display=0">{?function saxue_geticon:'status':'显示'?}</a>{?else?}<a href="?linkid={?$rows[i].linkid?}&action=display&display=1">{?function saxue_geticon:'status':'隐藏':0?}</a>{?/if?}</td>
		<td>{?$rows[i].contact?}</td>
		<td>{?$rows[i].addtime|date:'Y-m-d H:i'?}</td>
		<td>
			<a href="javascript:doDialog('{?$saxue_admin_url?}/friendlink.php?action=add&linkid={?$rows[i].linkid?}','修改链接——{?$rows[i].title?}','500','250')">{?function saxue_geticon:'edit':'修改链接'?}</a>
			<a href="?action=delete&linkid={?$rows[i].linkid?}" onclick="return confirm('你确定要删除链接『{?$rows[i].title?}』吗？')">{?function saxue_geticon:'del':'删除链接'?}</a>
		</td>
	</tr>
	{?/section?}
	<tr><td colspan="9" class="foot"><input type="submit" value="排序" class="button"></td></tr>
	</tbody>
</table>
</form>