tran.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title><?=$word?></title>
  12. <link href="../data/images/qcss.css" rel="stylesheet" type="text/css">
  13. <script>
  14. function DoInsertUrl(str)
  15. {
  16. if(str=="http://")
  17. {
  18. alert('请输入要插入的连接');
  19. return false;
  20. }
  21. pos=str.lastIndexOf(".")+1;
  22. len=str.length;
  23. ext=str.substring(pos,len);
  24. if((ext == "gif")||(ext == "jpg")||(ext == "jepg")||(ext == "png")||(ext == "bmp"))
  25. {
  26. opener.InsertFile("<img src='"+str+"' border=0>");
  27. }
  28. else if(ext=="swf")
  29. {
  30. opener.InsertFile("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" name=\"movie\" width=\"400\" height=\"350\" id=\"movie\"><param name=\"movie\" value=\""+str+"\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><embed src=\""+str+"\" width=\"400\" height=\"350\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" id=\"movie\" name=\"movie\" menu=\"false\"></embed></object>");
  31. }
  32. else if((ext == "wmv")||(ext == "asf")||(ext == "wma"))
  33. {
  34. opener.InsertFile("<object align=middle classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=OBJECT id=MediaPlayer width=480 height=360><PARAM NAME=AUTOSTART VALUE=true><param name=ShowStatusBar value=-1><param name=Filename value=\""+str+"\"><embed type=\"application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=mp src=\""+str+"\" width=480 height=360></embed></object>");
  35. }
  36. else if((ext == "rm")||(ext == "ra")||(ext == "rmvb")||(ext == "mp3")||(ext == "mp4")||(ext == "mov")||(ext == "avi")||(ext == "wav")||(ext == "ram")||(ext == "mpg")||(ext == "mpeg"))
  37. {
  38. opener.InsertFile("<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" HEIGHT=360 ID=Player WIDTH=480 VIEWASTEXT><param NAME=_ExtentX VALUE=12726><param NAME=_ExtentY VALUE=8520><param NAME=AUTOSTART VALUE=1><param NAME=SHUFFLE VALUE=0><param NAME=PREFETCH VALUE=0><param NAME=NOLABELS VALUE=0><param NAME=CONTROLS VALUE=ImageWindow><param NAME=CONSOLE VALUE=_master><param NAME=LOOP VALUE=0><param NAME=NUMLOOP VALUE=0><param NAME=CENTER VALUE=0><param NAME=MAINTAINASPECT VALUE=\""+str+"\"><param NAME=BACKGROUNDCOLOR VALUE=\"#000000\"></object><br><object CLASSID=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA HEIGHT=32 ID=Player WIDTH=480 VIEWASTEXT><param NAME=_ExtentX VALUE=18256><param NAME=_ExtentY VALUE=794><param NAME=AUTOSTART VALUE=1><param NAME=SHUFFLE VALUE=0><param NAME=PREFETCH VALUE=0><param NAME=NOLABELS VALUE=0><param NAME=CONTROLS VALUE=controlpanel><param NAME=CONSOLE VALUE=_master><param NAME=LOOP VALUE=0><param NAME=NUMLOOP VALUE=0><param NAME=CENTER VALUE=0><param NAME=MAINTAINASPECT VALUE=0><param NAME=BACKGROUNDCOLOR VALUE=\"#000000\"><param NAME=SRC VALUE=\""+str+"\"></object>");
  39. }
  40. else
  41. {
  42. opener.InsertFile("<a href='"+str+"'>"+str+"</a>");
  43. }
  44. window.close();
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <table width="430" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  50. <form action="ecms.php" method="post" enctype="multipart/form-data" name="form1">
  51. <input type=hidden name=classid value="<?=$classid?>">
  52. <input type=hidden name=infoid value="<?=$infoid?>">
  53. <input type=hidden name=enews value="<?=$enews?>">
  54. <input type=hidden name=type value="<?=$type?>">
  55. <input type=hidden name=ecms value="<?=$ecms?>">
  56. <input type=hidden name=filepass value="<?=$filepass?>">
  57. <input type=hidden name=userid value="<?=$userid?>">
  58. <input type=hidden name=username value="<?=$username?>">
  59. <input type=hidden name=rnd value="<?=$rnd?>">
  60. <tr class="header">
  61. <td height="23"><strong><font color="#FFFFFF"><?=$word?></font></strong></td>
  62. </tr>
  63. <tr bgcolor="#FFFFFF">
  64. <td height="32">本地上传:
  65. <input type="file" name="file"> <input type="submit" name="Submit" value="上传">
  66. </td>
  67. </tr>
  68. <tr bgcolor="#FFFFFF">
  69. <td>文件大小&lt; <b><?=$filesize?></b> KB,上传扩展名:<?=$filetype?></td>
  70. </tr>
  71. </form>
  72. </table>
  73. </body>
  74. </html>