fhtml.txt 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. [!--text--]
  2. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  3. [!--text--]
  4. [!--password--]
  5. <input name="[!--enews.var--]" type="password" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  6. [!--password--]
  7. [!--select--]
  8. <select name="[!--enews.var--]" id="[!--enews.var--]">
  9. [!--enews.select.var--]
  10. </select>
  11. [!--select--]
  12. [!--radio--]
  13. <select name="[!--enews.var--]" id="[!--enews.var--]">
  14. [!--enews.radio.var--]
  15. </select>
  16. [!--radio--]
  17. [!--textarea--]
  18. <textarea name="[!--enews.var--]" cols="[!--fsize.w--]" rows="[!--fsize.h--]" id="[!--enews.var--]"><?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?></textarea>
  19. [!--textarea--]
  20. [!--img--]
  21. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  22. <a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=[!--enews.var--]<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a>
  23. [!--img--]
  24. [!--flash--]
  25. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  26. <a onclick="window.open('ecmseditor/FileMain.php?type=2&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=[!--enews.var--]<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的FLASH"><img src="../data/images/changeflash.gif" border="0" align="absbottom"></a>
  27. [!--flash--]
  28. [!--file--]
  29. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  30. <a onclick="window.open('ecmseditor/FileMain.php?type=0&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=[!--enews.var--]<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的文件"><img src="../data/images/changefile.gif" border="0" align="absbottom"></a>
  31. [!--file--]
  32. [!--newstext--]
  33. <?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"[!--enews.def.val--]":stripSlashes($r[newstext]),"[!--editor.type--]","[!--editor.basepath--]","[!--fsize.h--]","[!--fsize.w--]")?>
  34. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  35. <tr>
  36. <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
  37. 关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">
  38. 远程保存图片(
  39. <input name="mark" type="checkbox" id="mark" value="1">
  40. <a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)&nbsp;&nbsp;
  41. <input name="copyflash" type="checkbox" id="copyflash" value="1">
  42. 远程保存FLASH(地址前缀:
  43. <input name="qz_url" type="text" id="qz_url" size="">
  44. )</td>
  45. </tr>
  46. <tr>
  47. <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页
  48. ,每
  49. <input name="autosize" type="text" id="autosize" value="5000" size="5">
  50. 个字节为一页&nbsp;&nbsp; 取第
  51. <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
  52. 张上传图为标题图片(
  53. <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
  54. 缩略图: 宽
  55. <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
  56. *高
  57. <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
  58. )</td>
  59. </tr>
  60. </table>
  61. [!--newstext--]
  62. [!--writer--]
  63. <?php
  64. $writer_sql=$empire->query("select writer from {$dbtbpre}enewswriter");
  65. while($w_r=$empire->fetch($writer_sql))
  66. {
  67. $w_class.="<option value='".$w_r[writer]."'>".$w_r[writer]."</option>";
  68. }
  69. ?>
  70. <input type=text name=writer value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[writer]))?>" size="[!--fsize.w--]">
  71. <select name="w_id" id="select7" onchange="document.add.writer.value=document.add.w_id.value">
  72. <option>选择作者</option>
  73. <?=$w_class?>
  74. </select>
  75. <input type="button" name="wbutton" value="增加作者" onclick="window.open('NewsSys/writer.php?<?=$ecms_hashur[ehref]?>&addwritername='+document.add.writer.value);">
  76. [!--writer--]
  77. [!--befrom--]
  78. <?php
  79. $befrom_sql=$empire->query("select sitename from {$dbtbpre}enewsbefrom");
  80. while($b_r=$empire->fetch($befrom_sql))
  81. {
  82. $b_class.="<option value='".$b_r[sitename]."'>".$b_r[sitename]."</option>";
  83. }
  84. ?>
  85. <input type="text" name="befrom" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[befrom]))?>" size="[!--fsize.w--]">
  86. <select name="befrom_id" id="befromid" onchange="document.add.befrom.value=document.add.befrom_id.value">
  87. <option>选择信息来源</option>
  88. <?=$b_class?>
  89. </select>
  90. <input type="button" name="wbutton" value="增加来源" onclick="window.open('NewsSys/BeFrom.php?<?=$ecms_hashur[ehref]?>&addsitename='+document.add.befrom.value);">
  91. [!--befrom--]
  92. [!--downpath--]
  93. <script>
  94. function doadd()
  95. {var i;
  96. var str="";
  97. var oldi=0;
  98. var j=0;
  99. oldi=parseInt(document.add.editnum.value);
  100. for(i=1;i<=document.add.downnum.value;i++)
  101. {
  102. j=i+oldi;
  103. str=str+"<tr><td width=7%> <div align=center>"+j+"</div></td><td width=19%><div align=left><input name=downname[] type=text id=downname[] value=下载地址"+j+" size=17></div></td><td width=40%><input name=downpath[] type=text size=36 id=downpath"+j+" ondblclick=SpOpenChFile(0,'downpath"+j+"')><select name=thedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select></td><td width=21%><div align=center><select name=downuser[] id=select><option value=0>游客</option><?=$ygroup?></select></div></td><td width=13%><div align=center><input name=fen[] type=text id=fen[] value=0 size=6></div></td></tr>";
  104. }
  105. document.getElementById("adddown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  106. }
  107. </script>
  108. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  109. <tr>
  110. <td height="25">下载地址前缀&nbsp;:
  111. <input name="downurl_qz" type="text" size="32">
  112. <select name="changeurl_qz" onchange="document.add.downurl_qz.value=document.add.changeurl_qz.value">
  113. <option value="" selected>选择前缀</option>
  114. <?=$downurlqz?>
  115. </select>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td height="25">选择/上传附件:
  120. <input name="changedown_url" id="changedown_url" type="text" size="32">
  121. <input type="button" name="Submit" value="选择" onclick="window.open('ecmseditor/FileMain.php?type=0&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=changedown_url<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');">&nbsp;
  122. <input type="button" name="Submit" value="复制" onclick="document.getElementById('changedown_url').focus();document.getElementById('changedown_url').select();clipboardData.setData('text',document.getElementById('changedown_url').value);"></td>
  123. </tr>
  124. <tr>
  125. <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  126. <tr>
  127. <td width="7%"> <div align="center">编号</div></td>
  128. <td width="19%"><div align="left">下载名称</div></td>
  129. <td width="40%">下载地址 <font color="#666666">(双击选择)</font></td>
  130. <td width="21%"> <div align="center">权限</div></td>
  131. <td width="13%"> <div align="center">点数</div></td>
  132. </tr>
  133. </table></td>
  134. </tr>
  135. <tr>
  136. <td>
  137. <?php
  138. if($ecmsfirstpost==1)
  139. {
  140. ?>
  141. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  142. <?php
  143. $editnum=3;
  144. for($pathi=1;$pathi<=$editnum;$pathi++)
  145. {
  146. ?>
  147. <tr>
  148. <td width='7%'> <div align=center><?=$pathi?></div></td>
  149. <td width='19%'> <div align=left>
  150. <input name=downname[] type=text value='下载地址<?=$pathi?>' size=17>
  151. </div></td>
  152. <td width='40%'>
  153. <input name=downpath[] type=text size=36 id='downpath<?=$pathi?>' ondblclick="SpOpenChFile(0,'downpath<?=$pathi?>');">
  154. <select name=thedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select>
  155. </td>
  156. <td width='21%'><div align=center>
  157. <select name=downuser[]>
  158. <option value=0>游客</option>
  159. <?=$ygroup?>
  160. </select>
  161. </div></td>
  162. <td width='13%'> <div align=center>
  163. <input name=fen[] type=text value=0 size=6>
  164. </div></td>
  165. </tr>
  166. <?php
  167. }
  168. ?>
  169. </table>
  170. <?php
  171. }
  172. else
  173. {
  174. $editnum=0;
  175. $downloadpath="";
  176. if($r[downpath])
  177. {
  178. $r[downpath]=stripSlashes($r[downpath]);
  179. //下载地址
  180. $j=0;
  181. $d_record=explode("\r\n",$r[downpath]);
  182. for($i=0;$i<count($d_record);$i++)
  183. {
  184. $j=$i+1;
  185. $d_field=explode("::::::",$d_record[$i]);
  186. //权限
  187. $tgroup=str_replace(" value=".$d_field[2].">"," value=".$d_field[2]." selected>",$ygroup);
  188. //地址前缀
  189. $tnewdownqz=str_replace(" value='".$d_field[4]."'>"," value='".$d_field[4]."' selected>",$newdownqz);
  190. $downloadpath.="<tr><td width='7%'><div align=center>".$j."</div></td><td width='19%'><div align=left><input name=downname[] type=text id=downname[] value='".$d_field[0]."' size=17></div></td><td width='40%'><input name=downpath[] type=text id=downpath".$j." value='".$d_field[1]."' size=36 ondblclick=\"SpOpenChFile(0,'downpath".$j."');\"><select name=thedownqz[]><option value=''>--地址前缀--</option>".$tnewdownqz."</select><input type=hidden name=pathid[] value=".$j."><input type=checkbox name=delpathid[] value=".$j.">删</td><td width='21%'><div align=center><select name=downuser[] id=select><option value=0>游客</option>".$tgroup."</select></div></td><td width='13%'><div align=center><input name=fen[] type=text id=fen[] value='".$d_field[3]."' size=6></div></td></tr>";
  191. }
  192. $editnum=$j;
  193. $downloadpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$downloadpath."</table>";
  194. }
  195. echo $downloadpath;
  196. }
  197. ?>
  198. </td>
  199. </tr>
  200. <tr>
  201. <td height="25">下载地址扩展数量: <input name="editnum" type="hidden" id="editnum" value="<?=$editnum?>">
  202. <input name="downnum" type="text" id="downnum" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:doadd();"></td>
  203. </tr>
  204. <tr>
  205. <td id=adddown></td>
  206. </tr>
  207. </table>
  208. [!--downpath--]
  209. [!--onlinepath--]
  210. <script>
  211. function dooadd()
  212. {var i;
  213. var str="";
  214. var oldi=0;
  215. var j=0;
  216. oldi=parseInt(document.add.oeditnum.value);
  217. for(i=1;i<=document.add.odownnum.value;i++)
  218. {
  219. j=i+oldi;
  220. str=str+"<tr><td width=7%> <div align=center>"+j+"</div></td><td width=19%><div align=left><input name=odownname[] type=text value="+j+" size=17></div></td><td width=40%><input name=odownpath[] type=text size=36 id=odownpath"+j+" ondblclick=SpOpenChFile(0,'odownpath"+j+"')><select name=othedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select></td><td width=21%><div align=center><select name=odownuser[] id=select><option value=0>游客</option><?=$ygroup?></select></div></td><td width=13%><div align=center><input name=ofen[] type=text value=0 size=6></div></td></tr>";
  221. }
  222. document.getElementById("addonline").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  223. }
  224. </script>
  225. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  226. <tr>
  227. <td height="25">观看地址前缀&nbsp;:
  228. <input name="onlineurl_qz" type="text" size="32"> <select name="changeonlineurl_qz" onchange="document.add.onlineurl_qz.value=document.add.changeonlineurl_qz.value">
  229. <option value="" selected>选择前缀</option>
  230. <?=$downurlqz?>
  231. </select>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td height="25">选择/上传附件:
  236. <input name="changeonline_url" id="changeonline_url" type="text" size="32"> <input type="button" name="Submit" value="选择" onclick="window.open('ecmseditor/FileMain.php?type=0&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=changeonline_url<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');">&nbsp;
  237. <input type="button" name="Submit" value="复制" onclick="document.getElementById('changeonline_url').focus();document.getElementById('changeonline_url').select();clipboardData.setData('text',document.getElementById('changeonline_url').value);"></td>
  238. </tr>
  239. <tr>
  240. <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  241. <tr>
  242. <td width="7%"> <div align="center">编号</div></td>
  243. <td width="19%"><div align="left">观看名称</div></td>
  244. <td width="40%">观看地址 <font color="#666666">(双击选择)</font></td>
  245. <td width="21%"> <div align="center">权限</div></td>
  246. <td width="13%"> <div align="center">点数</div></td>
  247. </tr>
  248. </table></td>
  249. </tr>
  250. <tr>
  251. <td>
  252. <?php
  253. if($ecmsfirstpost==1)
  254. {
  255. ?>
  256. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  257. <?php
  258. $oeditnum=3;
  259. for($opathi=1;$opathi<=$oeditnum;$opathi++)
  260. {
  261. ?>
  262. <tr>
  263. <td width='7%'> <div align=center><?=$opathi?></div></td>
  264. <td width='19%'> <div align=left>
  265. <input name=odownname[] type=text value='<?=$opathi?>' size=17>
  266. </div></td>
  267. <td width='40%'>
  268. <input name=odownpath[] type=text id='odownpath<?=$opathi?>' size=36 ondblclick="SpOpenChFile(0,'odownpath<?=$opathi?>');">
  269. <select name=othedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select>
  270. </td>
  271. <td width='21%'><div align=center>
  272. <select name=odownuser[] id=select>
  273. <option value=0>游客</option>
  274. <?=$ygroup?>
  275. </select>
  276. </div></td>
  277. <td width='13%'> <div align=center>
  278. <input name=ofen[] type=text id=ofen[] value=0 size=6>
  279. </div></td>
  280. </tr>
  281. <?php
  282. }
  283. ?>
  284. </table>
  285. <?php
  286. }
  287. else
  288. {
  289. $oeditnum=0;
  290. $onlinemoviepath="";
  291. if($r[onlinepath])
  292. {
  293. $j=0;
  294. $od_record=explode("\r\n",$r[onlinepath]);
  295. for($i=0;$i<count($od_record);$i++)
  296. {
  297. $j=$i+1;
  298. $od_field=explode("::::::",$od_record[$i]);
  299. //权限
  300. $tgroup=str_replace(" value=".$od_field[2].">"," value=".$od_field[2]." selected>",$ygroup);
  301. //地址前缀
  302. $tnewdownqz=str_replace(" value='".$od_field[4]."'>"," value='".$od_field[4]."' selected>",$newdownqz);
  303. $onlinemoviepath.="<tr><td width='7%'><div align=center>".$j."</div></td><td width='19%'><div align=left><input name=odownname[] type=text value='".$od_field[0]."' size=17></div></td><td width='40%'><input name=odownpath[] type=text value='".$od_field[1]."' size=36 id=odownpath".$j." ondblclick=\"SpOpenChFile(0,'odownpath".$j."');\"><select name=othedownqz[]><option value=''>--地址前缀--</option>".$tnewdownqz."</select><input type=hidden name=opathid[] value=".$j."><input type=checkbox name=odelpathid[] value=".$j.">删</td><td width='21%'><div align=center><select name=odownuser[] id=select><option value=0>游客</option>".$tgroup."</select></div></td><td width='13%'><div align=center><input name=ofen[] type=text value='".$od_field[3]."' size=6></div></td></tr>";
  304. }
  305. $oeditnum=$j;
  306. $onlinemoviepath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$onlinemoviepath."</table>";
  307. }
  308. echo $onlinemoviepath;
  309. }
  310. ?>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td height="25">在线地址扩展数量: <input name="oeditnum" type="hidden" id="oeditnum" value="<?=$oeditnum?>">
  315. <input name="odownnum" type="text" id="odownnum" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dooadd();"></td>
  316. </tr>
  317. <tr>
  318. <td id=addonline></td>
  319. </tr>
  320. </table>
  321. [!--onlinepath--]
  322. [!--morepic--]
  323. <script>
  324. function dopicadd()
  325. {var i;
  326. var str="";
  327. var oldi=0;
  328. var j=0;
  329. oldi=parseInt(document.add.morepicnum.value);
  330. for(i=1;i<=document.add.downmorepicnum.value;i++)
  331. {
  332. j=i+oldi;
  333. str=str+"<tr><td width=7%><div align=center>"+j+"</div></td><td width=33%><div align=center><input name=msmallpic[] type=text size=28 id=msmallpic"+j+" ondblclick=SpOpenChFile(1,'msmallpic"+j+"')><br><input type=file name=msmallpfile[] size=15></div></td><td width=30%><div align=center><input name=mbigpic[] type=text size=28 id=mbigpic"+j+" ondblclick=SpOpenChFile(1,'mbigpic"+j+"')><br><input type=file name=mbigpfile[] size=15></div></td><td width=30%><div align=center><input name=mpicname[] type=text></div></td></tr>";
  334. }
  335. document.getElementById("addpicdown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  336. }
  337. </script>
  338. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  339. <tr>
  340. <td height="25">
  341. 图片地址前缀:
  342. <input name="mpicurl_qz" type="text" id="mpicurl_qz">&nbsp;&nbsp;
  343. <input type="checkbox" name="msavepic" value="1">远程保存&nbsp;<input type="checkbox" name="mcreatespic" value="1" onclick="if(this.checked){setmcreatespic.style.display='';}else{setmcreatespic.style.display='none';}">生成缩图
  344. <span id="setmcreatespic" style="display:none">:<input type=text name="mcreatespicwidth" size=4 value="<?=$public_r[spicwidth]?>">*<input type=text name="mcreatespicheight" size=4 value="<?=$public_r[spicheight]?>">(宽*高)</span>
  345. <?php
  346. if(TranmoreIsOpen())
  347. {
  348. ?>
  349. <input type="button" name="Submit" value="多选上传" onclick="window.open('ecmseditor/tranmore/tranmore.php?type=1&classid=<?=$classid?>&filepass=<?=$filepass?>&infoid=<?=$id?>&modtype=0&sinfo=1&ecmsdo=ecmstmmorepic&tranfrom=2<?=$ecms_hashur['ehref']?>&oldmorepicnum='+document.add.morepicnum.value,'ecmstmpage','width=700,height=550,scrollbars=yes');">
  350. <?php
  351. }
  352. ?>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td><table width="100%" border=0 align=center cellpadding=3 cellspacing=1>
  357. <tr bgcolor="#DBEAF5">
  358. <td width="7%"><div align=center>编号</div></td>
  359. <td width="33%"><div align=center>缩图 <font color="#666666">(双击选择)</font></div></td>
  360. <td width="30%"><div align=center>大图 <font color="#666666">(双击选择)</font></div></td>
  361. <td width="30%"><div align=center>图片说明</div></td>
  362. </tr>
  363. </table></td>
  364. </tr>
  365. <tr>
  366. <td id=defmorepicid>
  367. <?php
  368. if($ecmsfirstpost==1)
  369. {
  370. ?>
  371. <table width='100%' border=0 align=center cellpadding=3 cellspacing=1>
  372. <?php
  373. $morepicnum=3;
  374. for($mppathi=1;$mppathi<=$morepicnum;$mppathi++)
  375. {
  376. ?>
  377. <tr>
  378. <td width='7%'><div align=center><?=$mppathi?></div></td>
  379. <td width='33%'><div align=center>
  380. <input name=msmallpic[] type=text id='msmallpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'msmallpic<?=$mppathi?>');">
  381. <br><input type=file name=msmallpfile[] size=15>
  382. </div></td>
  383. <td width='30%'><div align=center>
  384. <input name=mbigpic[] type=text id='mbigpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'mbigpic<?=$mppathi?>');">
  385. <br><input type=file name=mbigpfile[] size=15>
  386. </div></td>
  387. <td width='30%'><div align=center>
  388. <input name=mpicname[] type=text id='mpicname<?=$mppathi?>'>
  389. </div></td>
  390. </tr>
  391. <?php
  392. }
  393. ?>
  394. </table>
  395. <?php
  396. }
  397. else
  398. {
  399. $morepicpath="";
  400. $morepicnum=0;
  401. if($r[morepic])
  402. {
  403. $r[morepic]=stripSlashes($r[morepic]);
  404. //地址
  405. $j=0;
  406. $pd_record=explode("\r\n",$r[morepic]);
  407. for($i=0;$i<count($pd_record);$i++)
  408. {
  409. $j=$i+1;
  410. $pd_field=explode("::::::",$pd_record[$i]);
  411. $morepicpath.="<tr>
  412. <td width='7%'><div align=center>".$j."</div></td>
  413. <td width='33%'><div align=center>
  414. <input name=msmallpic[] type=text value='".$pd_field[0]."' size=28 id=msmallpic".$j." ondblclick=\"SpOpenChFile(1,'msmallpic".$j."');\">
  415. <br><input type=file name=msmallpfile[] size=15>
  416. </div></td>
  417. <td width='30%'><div align=center>
  418. <input name=mbigpic[] type=text value='".$pd_field[1]."' size=28 id=mbigpic".$j." ondblclick=\"SpOpenChFile(1,'mbigpic".$j."');\">
  419. <br><input type=file name=mbigpfile[] size=15>
  420. </div></td>
  421. <td width='30%'><div align=center>
  422. <input name=mpicname[] type=text value='".$pd_field[2]."'><input type=hidden name=mpicid[] value=".$j."><input type=checkbox name=mdelpicid[] value=".$j.">删
  423. </div></td>
  424. </tr>";
  425. }
  426. $morepicnum=$j;
  427. $morepicpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$morepicpath."</table>";
  428. }
  429. echo $morepicpath;
  430. }
  431. ?>
  432. </td>
  433. </tr>
  434. <tr>
  435. <td height="25">地址扩展数量: <input name="morepicnum" type="hidden" id="morepicnum" value="<?=$morepicnum?>">
  436. <input name="downmorepicnum" type="text" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dopicadd();"></td>
  437. </tr>
  438. <tr>
  439. <td id=addpicdown></td>
  440. </tr>
  441. </table>
  442. [!--morepic--]
  443. [!--date--]
  444. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  445. [!--date--]
  446. [!--datetime--]
  447. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
  448. [!--datetime--]
  449. [!--color--]
  450. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]" class="color">
  451. [!--color--]
  452. [!--linkfield--]
  453. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  454. <input type="button" name="changebutton" value="选择" onclick="window.open('db/ChangeField.php?viewf=[!--enews.vfield.var--]&changef=[!--enews.cfield.var--]&tbname=[!--enews.ctbname--]&form=add&field=[!--enews.var--]<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');">
  455. [!--linkfield--]
  456. [!--playerid--]
  457. <?php
  458. $player_sql=$empire->query("select id,player from {$dbtbpre}enewsplayer");
  459. while($player_r=$empire->fetch($player_sql))
  460. {
  461. $select_player='';
  462. if($r[playerid]==$player_r[id])
  463. {
  464. $select_player=' selected';
  465. }
  466. $player_class.="<option value='".$player_r[id]."'".$select_player.">".$player_r[player]."</option>";
  467. }
  468. ?>
  469. <select name="playerid">
  470. <option value=0>自动识别</option>
  471. <?=$player_class?>
  472. </select>
  473. [!--playerid--]
  474. [!--editor--]
  475. <?=ECMS_ShowEditorVar("[!--enews.var--]",$ecmsfirstpost==1?"[!--enews.def.val--]":stripSlashes($r[[!--enews.var--]]),"[!--editor.type--]","[!--editor.basepath--]","[!--fsize.h--]","[!--fsize.w--]")?>
  476. [!--editor--]
  477. [!--ubbeditor--]
  478. <textarea name="[!--enews.var--]" cols="[!--fsize.w--]" rows="[!--fsize.h--]" id="[!--enews.var--]"><?=$ecmsfirstpost==1?"[!--enews.def.val--]":ehtmlspecialchars(stripSlashes($r[[!--enews.var--]]))?></textarea>
  479. [!--ubbeditor--]
  480. [!--linkfieldselect--]
  481. <select name="[!--enews.var--]" id="[!--enews.var--]">
  482. <?php
  483. $[!--enews.var--]defval=$ecmsfirstpost==1?"[!--enews.def.val--]":$r[[!--enews.var--]];
  484. $[!--enews.var--]sql=$empire->query("select [!--enews.selectf--] from {$dbtbpre}ecms_[!--enews.ctbname--] order by newstime desc");
  485. while($[!--enews.var--]r=$empire->fetch($[!--enews.var--]sql))
  486. {
  487. $slselect='';
  488. if($[!--enews.var--]defval==$[!--enews.var--]r[[!--enews.cfield.var--]])
  489. {
  490. $slselect=' selected';
  491. }
  492. echo"<option value=\"".$[!--enews.var--]r[[!--enews.cfield.var--]]."\"".$slselect.">".$[!--enews.var--]r[[!--enews.vfield.var--]]."</option>";
  493. }
  494. ?>
  495. </select>
  496. [!--linkfieldselect--]
  497. [!--morevaluefield--]
  498. <script>
  499. function domvadd_[!--enews.var--]()
  500. {
  501. var i;
  502. var str='';
  503. var oldi=0;
  504. var j=0;
  505. var addnum=0;
  506. addnum=parseInt(document.add.mvaddnum_[!--enews.var--].value);
  507. oldi=parseInt(document.add.mveditnum_[!--enews.var--].value);
  508. for(i=1;i<=addnum;i++)
  509. {
  510. j=i+oldi;
  511. str=str+'[!--enews.jstr--]';
  512. }
  513. document.getElementById("mvadd_[!--enews.var--]").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  514. }
  515. </script>
  516. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  517. <tr>
  518. <td>
  519. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  520. [!--enews.saytr--]
  521. </table>
  522. </td>
  523. </tr>
  524. <tr>
  525. <td>
  526. <?php
  527. if($ecmsfirstpost==1)
  528. {
  529. ?>
  530. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  531. <?php
  532. $editnum=[!--enews.mvline--];
  533. for($i=1;$i<=$editnum;$i++)
  534. {
  535. ?>
  536. [!--enews.deftr--]
  537. <?php
  538. }
  539. ?>
  540. </table>
  541. <?php
  542. }
  543. else
  544. {
  545. $editnum=0;
  546. if($r['[!--enews.var--]'])
  547. {
  548. $r['[!--enews.var--]']=stripSlashes($r['[!--enews.var--]']);
  549. ?>
  550. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  551. <?php
  552. //录入项
  553. $j=0;
  554. $mvf_record=explode('||||||',$r['[!--enews.var--]']);
  555. $mvf_count=count($mvf_record);
  556. for($i=0;$i<$mvf_count;$i++)
  557. {
  558. $j=$i+1;
  559. $mvf_field=explode("::::::",$mvf_record[$i]);
  560. ?>
  561. [!--enews.edittr--]
  562. <?php
  563. }
  564. ?>
  565. </table>
  566. <?php
  567. $editnum=$j;
  568. }
  569. }
  570. ?>
  571. </td>
  572. </tr>
  573. <tr>
  574. <td height="25">扩展数量: <input name="mveditnum_[!--enews.var--]" type="hidden" id="mveditnum_[!--enews.var--]" value="<?=$editnum?>">
  575. <input name="mvnum_[!--enews.var--]" type="hidden" id="mvnum_[!--enews.var--]" value="[!--enews.mvnum--]">
  576. <input name="mvmust_[!--enews.var--]" type="hidden" id="mvmust_[!--enews.var--]" value="[!--enews.mvmust--]">
  577. <input name="mvaddnum_[!--enews.var--]" type="text" id="mvaddnum_[!--enews.var--]" value="1" size="6"> <input type="button" name="Submit5" value="输出" onclick="javascript:domvadd_[!--enews.var--]();"></td>
  578. </tr>
  579. <tr>
  580. <td id="mvadd_[!--enews.var--]"></td>
  581. </tr>
  582. </table>
  583. [!--morevaluefield--]