editorflash.php 2.2 KB

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