?? mail_list.php
字號:
<?php include admintpl('header'); ?>
<?php echo $menu; ?>
<?php
if($fnumber>0)
{
?>
<form action="?mod=<?php echo $mod; ?>&file=<?php echo $file; ?>&action=deleteall" method="post" name="formmails" id="formmails">
<table align="center" cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan="7">已經存在的郵件列表文件</th>
</tr>
<tr align="center">
<td class="tablerowhighlight">選中</td>
<td class="tablerowhighlight">序號</td>
<td class="tablerowhighlight">文件</td>
<td class="tablerowhighlight">大小</td>
<td class="tablerowhighlight">Email個數</td>
<td class="tablerowhighlight">創建時間</td>
<td class="tablerowhighlight">操作</td>
</tr>
<?php foreach($mailfiles as $i=>$f) { ?>
<tr onMouseOut="this.style.backgroundColor='#F1F3F5'" onMouseOver="this.style.backgroundColor='#BFDFFF'" bgcolor="#F1F3F5">
<td>
<input name="mail[]" id="mail<?php echo $i; ?>" type="checkbox" value="<?php echo $f; ?>" title="選擇此文件" /> </td>
<td onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);"><?php echo $i+1; ?></td>
<td onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);">
<a title="打開此文件" href="<?php echo $mail_datadir.$f; ?>" target="_blank"><?php echo $f; ?></a></td>
<td onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);"><?php echo round(filesize($mail_datadir.$f)/(1024),2); ?> KB</td>
<td align="center" onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);"><?php echo count(file($mail_datadir.$f)); ?></td>
<td align="center" onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);"><?php echo date("Y-m-d H:i:s",filemtime($mail_datadir.$f)); ?></td>
<td align="center" onMouseDown="document.getElementById('mail<?php echo $i; ?>').checked = (document.getElementById('mail<?php echo $i; ?>').checked ? false : true);"> <a href="?mod=<?php echo $mod; ?>&file=<?php echo $file; ?>&action=send&filename=<?php echo urlencode($f); ?>">發 送</a>
<a href="?mod=<?php echo $mod; ?>&file=<?php echo $file; ?>&action=down&mail=<?php echo urlencode($f); ?>" >下 載</a>
<a href="#" onclick="javascript:confirmurl('?mod=<?php echo $mod; ?>&file=<?php echo $file; ?>&action=delete&mail=<?php echo urlencode($f); ?>',' 確定要刪除這個郵件列表文件 <?php echo $f; ?> 么?')">刪 除</a> </td>
</tr>
<?php } ?>
<tr>
<td colspan="7" class="tablerow">
<input name="chkall" type="checkbox" id="chkall" onclick="checkall(this.form)" value="checkbox" title="全部選中">
全選/反選
<input name="submit" type="submit" id="submit" value=" 刪除所選 " /> </td>
</tr>
</table>
</form>
<?php
}
else
{
echo '<center><strong>暫無郵件列表文件</strong></center>';
}
?>
<br />
<form action="?mod=<?php echo $mod; ?>&file=mail&action=save&submit=1" method="post" enctype="multipart/form-data" name="formimport" id="formimport" >
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan="3">導入列表</th>
</tr>
<tr>
<td colspan="2" class="tablerow">導入郵件列表文件</td>
<td class="tablerow">
<input name="uploadfile" type="file" id="uploadfile" size="40" />
文件擴展名必須為 txt ,上傳前請自行確保其格式正確。 </td>
</tr>
<tr>
<td colspan="2" class="tablerow">操作</td>
<td class="tablerow">
<input name="submit" type="submit" id="submit" value=" 上 傳 " />
<input name="reset" type="reset" id="reset" value=" 清 除 " />
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -