国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.5KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>邮件列表文件管理</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css" />
  7. <style type="text/css">
  8. .rb{ border-right:1px solid #98CAEF }
  9. .tb{ border-top:1px solid #98CAEF }
  10. .current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
  11. </style>
  12. </head>
  13. <body>
  14. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cfcfcf;">
  15. <tr>
  16. <td height="24" colspan="4" bgcolor="#EDF9D5" background="images/tbg.gif">
  17. <div style="float:left;padding-right:5px;padding-left:10px;"><b>邮件列表管理</b></div>
  18. </td>
  19. </tr>
  20. <tr bgcolor="#FBFCE2" height="28" align="center">
  21. <td width="28%"><strong>文件名</strong></td>
  22. <td width="16%" background="img/newlinebg3.gif"><strong>文件大小</strong></td>
  23. <td width="22%" background="img/wbg.gif"><strong>创建时间</strong></td>
  24. <td width="34%" background="img/newlinebg3.gif"><strong>操作</strong></td>
  25. </tr>
  26. <?php
  27. $dh = dir($inpath);
  28. $ty1="";
  29. $ty2="";
  30. $files = $dirs = array();
  31. while(($file = $dh->read()) !== false)
  32. {
  33. if($file!="." && $file!=".." && !is_dir("$inpath/$file"))
  34. {
  35. @$filesize = filesize("$inpath/$file");
  36. @$filesize=$filesize/1024;
  37. @$filetime = filemtime("$inpath/$file");
  38. @$filetime = MyDate("Y-m-d H:i:s",$filetime);
  39. if($filesize<0.1)
  40. {
  41. @list($ty1,$ty2)=explode(".",$filesize);
  42. $filesize=$ty1.".".substr($ty2,0,2);
  43. }
  44. else
  45. {
  46. @list($ty1,$ty2)=explode(".",$filesize);
  47. $filesize=$ty1.".".substr($ty2,0,1);
  48. }
  49. }
  50. if(!is_dir("$inpath/$file"))
  51. {
  52. $line = "\n<tr bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">
  53. <td align='center'>$file</td>
  54. <td align='center'>$filesize KB</td>
  55. <td align='center'>$filetime</td>
  56. <td align='center'>
  57. <a href='mail_file_manage.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath."/data/mail")."'>[删除]</a>
  58. </td>
  59. </tr>";
  60. $files[] = $line;
  61. }
  62. }
  63. $dh->close();
  64. foreach ($files as $file)
  65. {
  66. echo $file;
  67. }
  68. ?>
  69. <tr>
  70. <td height="8" colspan="4" bgcolor="#F9FCEF">&nbsp;</td>
  71. </tr>
  72. </table>
  73. </body>
  74. </html>