qfhtml.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. [!--text--]
  2. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',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--]":DoReqValue($mid,'[!--enews.var--]',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--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]]))?></textarea>
  19. [!--textarea--]
  20. [!--img--]
  21. <input type="file" name="[!--enews.var--]file" size="[!--fsize.w--]">
  22. [!--img--]
  23. [!--flash--]
  24. <input type="file" name="[!--enews.var--]file" size="[!--fsize.w--]">
  25. [!--flash--]
  26. [!--file--]
  27. <input type="file" name="[!--enews.var--]file" size="[!--fsize.w--]">
  28. [!--file--]
  29. [!--newstext--]
  30. <?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'newstext',stripSlashes($r[newstext])),"[!--editor.type--]","[!--editor.basepath--]","[!--fsize.h--]","[!--fsize.w--]")?>
  31. [!--newstext--]
  32. [!--writer--]
  33. <input type=text name=writer value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  34. [!--writer--]
  35. [!--befrom--]
  36. <input type="text" name="befrom" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  37. [!--befrom--]
  38. [!--downpath--]
  39. <input type="file" name="[!--enews.var--]file" size="[!--fsize.w--]">
  40. [!--downpath--]
  41. [!--onlinepath--]
  42. <input type="file" name="[!--enews.var--]file" size="[!--fsize.w--]">
  43. <input type="hidden" name="[!--enews.var--]mtfile" value=1>
  44. [!--onlinepath--]
  45. [!--morepic--]
  46. <script>
  47. function dopicadd()
  48. {var i;
  49. var str="";
  50. var oldi=0;
  51. var j=0;
  52. oldi=parseInt(document.add.morepicnum.value);
  53. for(i=1;i<=document.add.downmorepicnum.value;i++)
  54. {
  55. j=i+oldi;
  56. 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+"></div></td><td width=30%><div align=center><input name=mbigpic[] type=text size=28 id=mbigpic"+j+"></div></td><td width=30%><div align=center><input name=mpicname[] type=text></div></td></tr>";
  57. }
  58. document.getElementById("addpicdown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  59. }
  60. </script>
  61. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  62. <tr>
  63. <td height="25">
  64. 图片地址前缀:
  65. <input name="mpicurl_qz" type="text" id="mpicurl_qz" size="32">
  66. &nbsp;</td>
  67. </tr>
  68. <tr>
  69. <td><table width=100% border=0 align=center cellpadding=3 cellspacing=1>
  70. <tr bgcolor='#DBEAF5'>
  71. <td width=7%><div align=center>编号</div></td>
  72. <td width=33%><div align=center>缩图</div></td>
  73. <td width=30%><div align=center>大图</div></td>
  74. <td width=30%><div align=center>图片说明</div></td>
  75. </tr>
  76. </table></td>
  77. </tr>
  78. <tr>
  79. <td id=defmorepicid>
  80. <?php
  81. if($ecmsfirstpost==1)
  82. {
  83. ?>
  84. <table width='100%' border=0 align=center cellpadding=3 cellspacing=1>
  85. <?php
  86. $morepicnum=3;
  87. for($mppathi=1;$mppathi<=$morepicnum;$mppathi++)
  88. {
  89. ?>
  90. <tr>
  91. <td width='7%'><div align=center><?=$mppathi?></div></td>
  92. <td width='33%'><div align=center>
  93. <input name=msmallpic[] type=text id=msmallpic[] size=28>
  94. </div></td>
  95. <td width='30%'><div align=center>
  96. <input name=mbigpic[] type=text id=mbigpic[] size=28>
  97. </div></td>
  98. <td width='30%'><div align=center>
  99. <input name=mpicname[] type=text id=mpicname[]>
  100. </div></td>
  101. </tr>
  102. <?php
  103. }
  104. ?>
  105. </table>
  106. <?php
  107. }
  108. else
  109. {
  110. $morepicpath="";
  111. $morepicnum=0;
  112. if($r[morepic])
  113. {
  114. $r[morepic]=stripSlashes($r[morepic]);
  115. //地址
  116. $j=0;
  117. $pd_record=explode("\r\n",$r[morepic]);
  118. for($i=0;$i<count($pd_record);$i++)
  119. {
  120. $j=$i+1;
  121. $pd_field=explode("::::::",$pd_record[$i]);
  122. $morepicpath.="<tr>
  123. <td width='7%'><div align=center>".$j."</div></td>
  124. <td width='33%'><div align=center>
  125. <input name=msmallpic[] type=text value='".$pd_field[0]."' size=28>
  126. </div></td>
  127. <td width='30%'><div align=center>
  128. <input name=mbigpic[] type=text value='".$pd_field[1]."' size=28>
  129. </div></td>
  130. <td width='30%'><div align=center>
  131. <input name=mpicname[] type=text value='".$pd_field[2]."'><input type=hidden name=mpicid[] value=".$j."><input type=checkbox name=mdelpicid[] value=".$j.">删
  132. </div></td></tr>";
  133. }
  134. $morepicnum=$j;
  135. $morepicpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$morepicpath."</table>";
  136. }
  137. echo $morepicpath;
  138. }
  139. ?>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td height="25">地址扩展数量: <input name="morepicnum" type="hidden" id="morepicnum" value="<?=$morepicnum?>">
  144. <input name="downmorepicnum" type="text" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dopicadd();"></td>
  145. </tr>
  146. <tr>
  147. <td id=addpicdown></td>
  148. </tr>
  149. </table>
  150. [!--morepic--]
  151. [!--date--]
  152. <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'})">
  153. [!--date--]
  154. [!--datetime--]
  155. <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'})">
  156. [!--datetime--]
  157. [!--color--]
  158. <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">
  159. [!--color--]
  160. [!--linkfield--]
  161. <input name="[!--enews.var--]" type="text" id="[!--enews.var--]" value="<?=$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]]))?>" size="[!--fsize.w--]">
  162. [!--linkfield--]
  163. [!--playerid--]
  164. <?php
  165. $player_sql=$empire->query("select id,player from {$dbtbpre}enewsplayer");
  166. while($player_r=$empire->fetch($player_sql))
  167. {
  168. $select_player='';
  169. if($r[playerid]==$player_r[id])
  170. {
  171. $select_player=' selected';
  172. }
  173. $player_class.="<option value='".$player_r[id]."'".$select_player.">".$player_r[player]."</option>";
  174. }
  175. ?>
  176. <select name="playerid">
  177. <option value=0>自动识别</option>
  178. <?=$player_class?>
  179. </select>
  180. [!--playerid--]
  181. [!--editor--]
  182. <?=ECMS_ShowEditorVar("[!--enews.var--]",$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]])),"[!--editor.type--]","[!--editor.basepath--]","[!--fsize.h--]","[!--fsize.w--]")?>
  183. [!--editor--]
  184. [!--ubbeditor--]
  185. <textarea name="[!--enews.var--]" cols="[!--fsize.w--]" rows="[!--fsize.h--]" id="[!--enews.var--]"><?=$ecmsfirstpost==1?"[!--enews.def.val--]":DoReqValue($mid,'[!--enews.var--]',stripSlashes($r[[!--enews.var--]]))?></textarea>
  186. [!--ubbeditor--]
  187. [!--linkfieldselect--]
  188. <select name="[!--enews.var--]" id="[!--enews.var--]">
  189. <?php
  190. $[!--enews.var--]defval=$ecmsfirstpost==1?"[!--enews.def.val--]":$r[[!--enews.var--]];
  191. $[!--enews.var--]sql=$empire->query("select [!--enews.selectf--] from {$dbtbpre}ecms_[!--enews.ctbname--] order by newstime desc");
  192. while($[!--enews.var--]r=$empire->fetch($[!--enews.var--]sql))
  193. {
  194. $slselect='';
  195. if($[!--enews.var--]defval==$[!--enews.var--]r[[!--enews.cfield.var--]])
  196. {
  197. $slselect=' selected';
  198. }
  199. echo"<option value=\"".$[!--enews.var--]r[[!--enews.cfield.var--]]."\"".$slselect.">".$[!--enews.var--]r[[!--enews.vfield.var--]]."</option>";
  200. }
  201. ?>
  202. </select>
  203. [!--linkfieldselect--]
  204. [!--morevaluefield--]
  205. <script>
  206. function domvadd_[!--enews.var--]()
  207. {
  208. var i;
  209. var str='';
  210. var oldi=0;
  211. var j=0;
  212. var addnum=0;
  213. addnum=parseInt(document.add.mvaddnum_[!--enews.var--].value);
  214. oldi=parseInt(document.add.mveditnum_[!--enews.var--].value);
  215. for(i=1;i<=addnum;i++)
  216. {
  217. j=i+oldi;
  218. str=str+'[!--enews.jstr--]';
  219. }
  220. document.getElementById("mvadd_[!--enews.var--]").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  221. }
  222. </script>
  223. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  224. <tr>
  225. <td>
  226. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  227. [!--enews.saytr--]
  228. </table>
  229. </td>
  230. </tr>
  231. <tr>
  232. <td>
  233. <?php
  234. if($ecmsfirstpost==1)
  235. {
  236. ?>
  237. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  238. <?php
  239. $editnum=[!--enews.mvline--];
  240. for($i=1;$i<=$editnum;$i++)
  241. {
  242. ?>
  243. [!--enews.deftr--]
  244. <?php
  245. }
  246. ?>
  247. </table>
  248. <?php
  249. }
  250. else
  251. {
  252. $editnum=0;
  253. if($r['[!--enews.var--]'])
  254. {
  255. $r['[!--enews.var--]']=stripSlashes($r['[!--enews.var--]']);
  256. ?>
  257. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  258. <?php
  259. //录入项
  260. $j=0;
  261. $mvf_record=explode('||||||',$r['[!--enews.var--]']);
  262. $mvf_count=count($mvf_record);
  263. for($i=0;$i<$mvf_count;$i++)
  264. {
  265. $j=$i+1;
  266. $mvf_field=explode("::::::",$mvf_record[$i]);
  267. ?>
  268. [!--enews.edittr--]
  269. <?php
  270. }
  271. ?>
  272. </table>
  273. <?php
  274. $editnum=$j;
  275. }
  276. }
  277. ?>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td height="25">扩展数量: <input name="mveditnum_[!--enews.var--]" type="hidden" id="mveditnum_[!--enews.var--]" value="<?=$editnum?>">
  282. <input name="mvnum_[!--enews.var--]" type="hidden" id="mvnum_[!--enews.var--]" value="[!--enews.mvnum--]">
  283. <input name="mvmust_[!--enews.var--]" type="hidden" id="mvmust_[!--enews.var--]" value="[!--enews.mvmust--]">
  284. <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>
  285. </tr>
  286. <tr>
  287. <td id="mvadd_[!--enews.var--]"></td>
  288. </tr>
  289. </table>
  290. [!--morevaluefield--]