<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=list">
<input type="hidden" name="ischeck" value="<?=$ischeck?>" />
	<div class="space">
		<div class="subtitle">链接管理</div>
		<table class="maintable" border="0" cellspacing="0" cellpadding="0">
			<tr class="altbg2">
                <th colspan="6">
                    <ul class="subtab">
                    <li<?=$ischeck&&$logo?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=list&ischeck=1&logo=yes">图片链接</a></li>
                    <li<?=$ischeck&&!$logo?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=list&ischeck=1">文字链接</a></li>
                    <li<?=$ischeck==0?' class="current"':''?>><a href="admincp.php?action=<?=$action?>&file=list&ischeck=0">未审核(<?=$num_nochecks?>)</a></li>
                    </ul>
                </th>
            </tr>
            <tr class="altbg1">
				<td width="5%">删?</td>
                <td width="10%">排序</td>
				<td width="20%">名称</td>
				<td width="20%">地址</td>
                <td width="20%">Logo</td>
				<td width="25%">描述</td>
			</tr>
			<?=$contents?>
			<tr>
                <td colspan="6" class="altbg1">
                    <button type="button" class="btn2" onclick="checkbox_checked('linkids[]');">全选</button>
                    <?if($ischeck!=0){?>
                    <button type="button" class="btn2" onclick="location.href='admincp.php?action=<?=$action?>&file=add';">增加</button>
                    <?}?>
                    <?if($ischeck==0){?>
                    <select name="operation">
                        <option value="" selected="selected">==处理操作==</option>
                        <option value="check">审核所选</option>
                        <option value="delete">删除所选</option>
                    </select>
                    <?}?>
                </td>
            </tr>
		</table>
	<center>
    <input type="hidden" name="dosubmit" value="yes" />
    <button type="submit" name="deletesubmit" value="yes" class="btn" /> 提交操作 </button>
    </center>
	</div>
</form>
</div>