TranMore.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. $phpmyself=urlencode(eReturnSelfPage(1));
  7. ?>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12. <title>上传多图</title>
  13. <link type="text/css" href="images/editorpage.css" rel=stylesheet>
  14. <script type="text/javascript" src="../js/jscolor/jscolor.js"></script>
  15. <script>
  16. function EcmsEditorReturnDoActionTM(str){
  17. window.parent.EHEcmsEditorDoTranMore(str);
  18. self.location.href=self.location.href;
  19. }
  20. //上传多附件时,编辑器
  21. function eTranMoreForEditor(htmlstr){
  22. window.parent.EHEcmsEditorDoTranMoreTool(str);
  23. self.location.href=self.location.href;
  24. }
  25. </script>
  26. <script type="text/javascript">
  27. function addpic(){
  28. var i;
  29. var str="";
  30. for(i=1;i<=document.TranMImgForm.trannum.value;i++)
  31. {
  32. str=str+"<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'><td width='8%'><div align=center>"+i+"</div></td><td width='92%'> <div align=center><input name=file[] type=file style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()></div></td></tr>";
  33. }
  34. document.getElementById("morepic").innerHTML="<table width='100%' align=center border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  35. }
  36. function EcmsEditorChangeSet(cset){
  37. if(cset==2)
  38. {
  39. document.getElementById('etranmore_tab_1').style.display="none";
  40. document.getElementById('etranmore_tab_2').style.display="";
  41. document.getElementById('etranmore_tab_3').style.display="none";
  42. document.getElementById('etranmore_tab_4').style.display="none";
  43. document.getElementById('etranmore_tab_bg1').style.backgroundColor="#ffffff";
  44. document.getElementById('etranmore_tab_bg2').style.backgroundColor="#DBEAF5";
  45. document.getElementById('etranmore_tab_bg3').style.backgroundColor="#ffffff";
  46. document.getElementById('etranmore_tab_bg4').style.backgroundColor="#ffffff";
  47. }
  48. else if(cset==3)
  49. {
  50. document.getElementById('etranmore_tab_1').style.display="none";
  51. document.getElementById('etranmore_tab_2').style.display="none";
  52. document.getElementById('etranmore_tab_3').style.display="";
  53. document.getElementById('etranmore_tab_4').style.display="none";
  54. document.getElementById('etranmore_tab_bg1').style.backgroundColor="#ffffff";
  55. document.getElementById('etranmore_tab_bg2').style.backgroundColor="#ffffff";
  56. document.getElementById('etranmore_tab_bg3').style.backgroundColor="#DBEAF5";
  57. document.getElementById('etranmore_tab_bg4').style.backgroundColor="#ffffff";
  58. }
  59. else if(cset==4)
  60. {
  61. document.getElementById('etranmore_tab_1').style.display="none";
  62. document.getElementById('etranmore_tab_2').style.display="none";
  63. document.getElementById('etranmore_tab_3').style.display="none";
  64. document.getElementById('etranmore_tab_4').style.display="";
  65. document.getElementById('etranmore_tab_bg1').style.backgroundColor="#ffffff";
  66. document.getElementById('etranmore_tab_bg2').style.backgroundColor="#ffffff";
  67. document.getElementById('etranmore_tab_bg3').style.backgroundColor="#ffffff";
  68. document.getElementById('etranmore_tab_bg4').style.backgroundColor="#DBEAF5";
  69. }
  70. else
  71. {
  72. document.getElementById('etranmore_tab_1').style.display="";
  73. document.getElementById('etranmore_tab_2').style.display="none";
  74. document.getElementById('etranmore_tab_3').style.display="none";
  75. document.getElementById('etranmore_tab_4').style.display="none";
  76. document.getElementById('etranmore_tab_bg1').style.backgroundColor="#DBEAF5";
  77. document.getElementById('etranmore_tab_bg2').style.backgroundColor="#ffffff";
  78. document.getElementById('etranmore_tab_bg3').style.backgroundColor="#ffffff";
  79. document.getElementById('etranmore_tab_bg4').style.backgroundColor="#ffffff";
  80. }
  81. }
  82. </script>
  83. </head>
  84. <body>
  85. <form action="../ecmseditor.php" method="post" enctype="multipart/form-data" target="eeditoruploadmore<?=$ecms_topager['InstanceId']?>" name="TranMImgForm" id="TranMImgForm">
  86. <?php
  87. if(TranmoreIsOpen('editor'))
  88. {
  89. ?>
  90. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#99C4E3">
  91. <tr>
  92. <td width="50%"><div align="center"><strong>直接上传</strong></div></td>
  93. <td height="25" bgcolor="#FFFFFF"><div align="center"><strong><a href="../tranmore/tranmore.php?showmod=<?=$ecms_topager['showmod']?>&type=<?=$ecms_topager['type']?>&classid=<?=$ecms_topager['classid']?>&filepass=<?=$ecms_topager['filepass']?>&infoid=<?=$ecms_topager['infoid']?>&modtype=<?=$ecms_topager['modtype']?>&sinfo=<?=$ecms_topager['sinfo']?>&ecmsdo=ecmstmeditor&tranfrom=1<?=$ecms_hashur['ehref']?>&efromurl=<?=$phpmyself?>">多选上传</a></strong></div></td>
  94. </tr>
  95. </table>
  96. <?php
  97. }
  98. ?>
  99. <table style="width:100%;margin-left:0;margin-right:auto;" class="tableborder" border="0" cellpadding="3" cellspacing="1" bgcolor="#99C4E3">
  100. <tr>
  101. <td width="25%" id="etranmore_tab_bg1" onmouseover="EcmsEditorChangeSet(1);" style="text-align:center;background-color:#DBEAF5;"><strong>本地上传</strong></td>
  102. <td width="25%" id="etranmore_tab_bg2" onmouseover="EcmsEditorChangeSet(2);" style="text-align:center;background-color:#FFFFFF;"><strong>远程保存</strong></td>
  103. <td width="25%" id="etranmore_tab_bg3" onmouseover="EcmsEditorChangeSet(3);" style="text-align:center;background-color:#FFFFFF;"><strong>参数设置</strong></td>
  104. <td width="25%" id="etranmore_tab_bg4" onmouseover="EcmsEditorChangeSet(4);" style="text-align:center;background-color:#FFFFFF;"><strong>表格设置</strong></td>
  105. </tr>
  106. </table>
  107. <div id="etranmore_tab_1">
  108. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  109. <?=$ecms_hashur['form']?>
  110. <tr>
  111. <td height="25">
  112. <table width="98%" border="0" align="center" cellspacing="1" cellpadding="3">
  113. <tr>
  114. <td width="60%">
  115. <div align="center">上传图片数目:
  116. <input name="trannum" type="text" id="trannum" value="8" size="6">
  117. <input type="button" name="Submit" value="设定" onclick="addpic()">
  118. </div>
  119. </td>
  120. <td>
  121. <div align="right">
  122. </div>
  123. </td>
  124. </tr>
  125. </table>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td bgcolor="#FFFFFF" id=morepic> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  130. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  131. <td width="8%"><div align="center">1</div></td>
  132. <td width="92%"> <div align="center">
  133. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  134. </div></td>
  135. </tr>
  136. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  137. <td><div align="center">2</div></td>
  138. <td> <div align="center">
  139. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  140. </div></td>
  141. </tr>
  142. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  143. <td><div align="center">3</div></td>
  144. <td> <div align="center">
  145. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  146. </div></td>
  147. </tr>
  148. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  149. <td><div align="center">4</div></td>
  150. <td> <div align="center">
  151. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  152. </div></td>
  153. </tr>
  154. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  155. <td><div align="center">5</div></td>
  156. <td> <div align="center">
  157. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  158. </div></td>
  159. </tr>
  160. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  161. <td><div align="center">6</div></td>
  162. <td> <div align="center">
  163. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  164. </div></td>
  165. </tr>
  166. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  167. <td><div align="center">7</div></td>
  168. <td> <div align="center">
  169. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  170. </div></td>
  171. </tr>
  172. <tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
  173. <td><div align="center">8</div></td>
  174. <td> <div align="center">
  175. <input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
  176. </div></td>
  177. </tr>
  178. </table></td>
  179. </tr>
  180. </table>
  181. </div>
  182. <div id="etranmore_tab_2" style="display: none">
  183. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  184. <tr>
  185. <td height="25"> <div align="center">远程保存图片列表(一张图片为一行,比本地上传优先)</div></td>
  186. </tr>
  187. <tr>
  188. <td><div align="center">
  189. <textarea name="saveurl" style="width: 100%" rows="12" id="saveurl"></textarea>
  190. </div></td>
  191. </tr>
  192. </table>
  193. </div>
  194. <div id="etranmore_tab_3" style="display: none">
  195. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  196. <tr bgcolor="#FFFFFF">
  197. <td width="112" height="25">每行/页显示</td>
  198. <td width="351"> <input name="line" type="text" id="line" value="1" size="6">
  199. 个图片</td>
  200. </tr>
  201. <tr bgcolor="#FFFFFF">
  202. <td height="25">对齐方式</td>
  203. <td> <input name="align" type="radio" value="left">
  204. 居左
  205. <input name="align" type="radio" value="center" checked>
  206. 居中
  207. <input name="align" type="radio" value="right">
  208. 居右</td>
  209. </tr>
  210. <tr bgcolor="#FFFFFF">
  211. <td height="25">图片大小</td>
  212. <td> <input name="width" type="text" id="width2" size="6">
  213. ×
  214. <input name="height" type="text" id="height2" size="6">
  215. (宽×高)</td>
  216. </tr>
  217. <tr bgcolor="#FFFFFF">
  218. <td height="25">图片边框</td>
  219. <td> <input name="imgborder" type="text" id="imgborder" value="0" size="6"></td>
  220. </tr>
  221. <tr bgcolor="#FFFFFF">
  222. <td height="25">分割形式</td>
  223. <td> <select name="exptype" id="exptype">
  224. <option value="0">表格</option>
  225. <option value="1" selected>分页码</option>
  226. </select></td>
  227. </tr>
  228. <tr bgcolor="#FFFFFF">
  229. <td height="25">生成缩略图</td>
  230. <td><input name="getsmall" type="checkbox" id="getsmall2" value="1">
  231. 同时生成缩略图. 缩图宽度:
  232. <input name="swidth" type="text" id="width3" value="<?=$public_r['spicwidth']?>" size="6">
  233. * 高度:
  234. <input name="sheight" type="text" id="sheight" value="<?=$public_r['spicheight']?>" size="6"></td>
  235. </tr>
  236. <tr bgcolor="#FFFFFF">
  237. <td height="25">水印</td>
  238. <td><input name="getmark" type="checkbox" id="getmark2" value="1"> <a href="../../SetEnews.php<?=$ecms_hashur['whehref']?>" target="_blank">加水印</a></td>
  239. </tr>
  240. </table>
  241. </div>
  242. <div id="etranmore_tab_4" style="display: none">
  243. <table width="100%" border="0" cellspacing="1" cellpadding="3" class=tableborder>
  244. <tr bgcolor="#FFFFFF">
  245. <td width="25%" height="25">对齐方式</td>
  246. <td width="75%"> <input name="tbalign" type="radio" value="left">
  247. 居左
  248. <input name="tbalign" type="radio" value="center" checked>
  249. 居中
  250. <input name="tbalign" type="radio" value="right">
  251. 居右</td>
  252. </tr>
  253. <tr bgcolor="#FFFFFF">
  254. <td height="25">背景颜色</td>
  255. <td><input name="tbcolor" type="text" id="tbcolor" size="15" class="color">
  256. </td>
  257. </tr>
  258. <tr bgcolor="#FFFFFF">
  259. <td height="25">表格宽度</td>
  260. <td><input name="tbwidth" type="text" id="tbwidth" value="100" size="6">
  261. <select name="tbwidthdw" id="tbwidthdw">
  262. <option value="%" selected>百分比</option>
  263. <option value="">像素</option>
  264. </select></td>
  265. </tr>
  266. <tr bgcolor="#FFFFFF">
  267. <td height="25">单元格</td>
  268. <td>单元间距:
  269. <input name="tbsp" type="text" id="tbsp" value="1" size="6">
  270. ,单元边距:
  271. <input name="tbpa" type="text" id="tbpa" value="3" size="6"></td>
  272. </tr>
  273. <tr bgcolor="#FFFFFF">
  274. <td height="25">边框</td>
  275. <td>边框粗细:
  276. <input name="tbborder" type="text" id="tbsp3" value="0" size="6">
  277. ,边框颜色:
  278. <input name="tbbordercolor" type="text" id="tbbordercolor" size="15" class="color">
  279. </td>
  280. </tr>
  281. </table>
  282. </div>
  283. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  284. <tr>
  285. <td height="38"><div align="center">
  286. <input type="submit" name="Submit2" value=" 上 传 ">&nbsp;&nbsp;&nbsp;&nbsp;
  287. <input type="reset" name="Submit3" value="重置">
  288. <input type=hidden name=classid value="<?=$ecms_topager['classid']?>">
  289. <input type=hidden name=filepass value="<?=$ecms_topager['filepass']?>">
  290. <input type=hidden name=infoid value="<?=$ecms_topager['infoid']?>">
  291. <input type=hidden name=modtype value="<?=$ecms_topager['modtype']?>">
  292. <input type=hidden name=sinfo value="<?=$ecms_topager['sinfo']?>">
  293. <input type=hidden name=enews value="SaveMoreImg">
  294. <input type=hidden name=type value="1">
  295. <input type=hidden name=doing value="<?=$ecms_topager['doing']?>">
  296. <input type=hidden name=tranfrom value="1">
  297. <input type=hidden name=InstanceName value="<?=$ecms_topager['InstanceName']?>">
  298. <input type=hidden name=InstanceId value="<?=$ecms_topager['InstanceId']?>">
  299. <input type=hidden name=doecmspage id=doecmspage value="<?=$doecmspage?>">
  300. </div></td>
  301. </tr>
  302. </table>
  303. </form>
  304. <iframe name="eeditoruploadmore<?=$ecms_topager['InstanceId']?>" id="eeditoruploadmore<?=$ecms_topager['InstanceId']?>" style="display:none" src="images/blank.html"></iframe>
  305. </body>
  306. </html>