editorfile.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  8. <tr>
  9. <td height="25">附件</td>
  10. </tr>
  11. </table>
  12. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  13. <tr class="header">
  14. <td width="4%">&nbsp;</td>
  15. <td width="8%">
  16. <div align="center">ID</div></td>
  17. <td width="42%">
  18. <div align="center">文件名</div></td>
  19. <td width="15%">
  20. <div align="center">大小</div></td>
  21. <td width="21%">
  22. <div align="center">上传时间</div></td>
  23. <td width="10%"><div align="center">选择</div></td>
  24. </tr>
  25. <?
  26. while($r=$empire->fetch($sql))
  27. {
  28. $filesize=ChTheFilesize($r[filesize]);
  29. //取得文件类型
  30. $truefiletype=GetFiletype($r[filename]);
  31. $filetype=substr($truefiletype,1);
  32. //文件
  33. $fspath=ReturnFileSavePath($r[classid],$r[fpath]);
  34. $filepath=$r[path]?$r[path].'/':$r[path];
  35. $file=$fspath['fileurl'].$filepath.$r[filename];
  36. $buttonr=ToReturnDoFileButton($doing,$tranfrom,$field,$file,$r[filename],$r[fileid],$filesize,$truefiletype,$r[no],$type);
  37. $button=$buttonr['button'];
  38. $buttonurl=$buttonr['bturl'];
  39. ?>
  40. <tr>
  41. <td bgcolor="#FFFFFF"><div align="center">
  42. <input type=checkbox name=fileid[] value="<?=$r[fileid]?>">
  43. </div></td>
  44. <td bgcolor="#FFFFFF"> <div align="center">
  45. <?=$r[fileid]?>
  46. </div></td>
  47. <td bgcolor="#FFFFFF" style='line-height:20px'>
  48. <?=$r[no]?>
  49. <a href='<?=$file?>' target=_blank><?=$r[filename]?></a></td>
  50. <td bgcolor="#FFFFFF"> <div align="right">
  51. <?=$filesize?>
  52. </div></td>
  53. <td bgcolor="#FFFFFF"> <div align="center">
  54. <?=date('Y-m-d H:i:s',$r[filetime])?>
  55. </div></td>
  56. <td bgcolor="#FFFFFF"> <div align="center">
  57. <?=$button?>
  58. </div></td>
  59. </tr>
  60. <?
  61. }
  62. ?>
  63. <tr>
  64. <td bgcolor="#FFFFFF"><div align="center">
  65. <input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)">
  66. </div></td>
  67. <td colspan="5" bgcolor="#FFFFFF">&nbsp;&nbsp;
  68. <?=$returnpage?>
  69. &nbsp;&nbsp; <input type="submit" name="Submit34" value="删除选中" onclick="document.dofile.enews.value='TDelFile_all';">
  70. </td>
  71. </tr>
  72. </table>