?? file_manage.php
字號:
<?php include admintpl('header'); ?>
<body>
<br />
<?php echo $attmenu; ?>
<br />
<form name="form1" method="post" action="?mod=phpcms&file=file&action=del&channelid=2&submit=1">
<table border="0" align="center" cellpadding="2" cellspacing="1" class="tableborder">
<th colspan="8"><?php echo $headtitle; ?></tr>
<tr align="center" >
<td width="5%" class="tablerowhighlight">選中</td>
<td class="tablerowhighlight">ID</td>
<td class="tablerowhighlight">Itemid</td>
<td class="tablerowhighlight">文件名</td>
<td class="tablerowhighlight">描述</td>
<td class="tablerowhighlight">時間</td>
<td class="tablerowhighlight">大小</td>
<td class="tablerowhighlight">管理操作</td>
</tr>
<?php
if($atts)
{
foreach($atts as $id=>$att)
{
?>
<tr onMouseOut="this.style.backgroundColor='#F1F3F5'" onMouseOver="this.style.backgroundColor='#BFDFFF'" bgcolor="#F1F3F5">
<td align="center"><input name="aid[]" id="aid<?php echo $att['aid']; ?>" type="checkbox" value="<?php echo $att['aid']; ?>" ></td>
<td align="center" onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);">
<?php echo $att['aid']; ?> </td>
<td align="center" onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);">
<?php if($att['itemid']) { ?>
<a href="<?php echo $att['itempath']; ?>" title="編輯此信息" ><?php echo $att['itemid']; ?></a>
<?php } else { ?>
<a title="建議刪除此附件"><?php echo '---'; ?></a>
<?php } ?>
</td>
<td onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);"><a href="<?php echo $att['filepath']; ?>" title="<?php echo $att['filename']; ?>" target="_blank"><?php echo $att['shortfilename']; ?></a></td>
<td onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);" title="<?php echo $att['adescription']; ?>"><?php echo $att['description']; ?></td>
<td align="center" onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);"><?php echo $att['addtime']; ?></td>
<td onMouseDown="document.getElementById('aid<?php echo $att['aid']; ?>').checked = (document.getElementById('aid<?php echo $att['aid']; ?>').checked ? false : true);"><?php echo $att['filesize']; ?>KB</td>
<td align="center">
<a href="#" title="下載 <?php echo $att['filename']; ?>" >下載</a> | <a href="?mod=phpcms&file=file&action=del&channelid=2&aid=<?php echo $att['aid']; ?>&submit=1" title="刪除 <?php echo $att['filename']; ?>" >刪除</a>
</td>
</tr>
<?php
}
}
else
{
?>
<tr>
<th colspan="8">暫無附件</th>
</tr>
<?php
}
?>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td>
<input type="checkbox" name="chkall" id="chkall" value="checkbox" onclick="checkall(this.form)" />
全選/不選
<input name="submit" type="submit" value="刪除選定的附件" /></td>
</tr>
</table>
</form>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
<tr>
<td align="center"><?php echo $pages; ?></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -