?? channel.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<?=$menu?>
<form method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=updateorder">
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=8>頻道管理</th>
</tr>
<tr align="center">
<td class="tablerowhighlight">排序</td>
<td class="tablerowhighlight">ID</td>
<td class="tablerowhighlight">頻道名稱</td>
<td class="tablerowhighlight">頻道類型</td>
<td class="tablerowhighlight">模型</td>
<td class="tablerowhighlight">訪問地址</td>
<td class="tablerowhighlight">狀態</td>
<td class="tablerowhighlight">管理操作</td>
</tr>
<?php
if(is_array($channels)){
foreach($channels as $channel){
?>
<tr align="center" onmouseout="this.style.backgroundColor='#F1F3F5'" onmouseover="this.style.backgroundColor='#BFDFFF'" bgColor='#F1F3F5'>
<td><input name="orderid[<?=$channel['channelid']?>]" type="text" size="4" value="<?=$channel['orderid']?>"></td>
<td><?=$channel['channelid']?></td>
<td><?=$channel['channelname']?></td>
<?php if($channel['channeltype']){?>
<td>內部頻道</td>
<?php }else{ ?>
<td><font color="red">外部頻道</font></td>
<?php } ?>
<td>
<?php if($channel['channeltype']){?>
<?=$_MODULE[$channel['module']]['modulename']?>
<?php } ?>
</td>
<td align="left"> <a href="<?=$channel['channelurl']?>" target="_blank" ><?=$channel['channelurl']?></a></td>
<td><?=$channel['status']?></td>
<td>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channel['channelid']?>">修改</a> |
<?php if($channel['disabled']){?>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=disabled&value=0&channelid=<?=$channel['channelid']?>">啟用</a>
<?php }else{ ?>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=disabled&value=1&channelid=<?=$channel['channelid']?>">禁用</a>
<?php } ?> |
<a href="javascript:confirmurl('?mod=<?=$mod?>&file=<?=$file?>&action=delete&channelid=<?=$channel['channelid']?>','確認刪除頻道嗎?此操作不可恢復!')">刪除</a> </td>
</tr>
<?php
}
}
?>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
<tr>
<td><input name="submit" type="submit" size="4" value=" 更新排序 "></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -