3.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><table width=100% align=center cellpadding=3 cellspacing=1 class=tableborder>
  7. <tr>
  8. <td width=16% height=25 bgcolor=ffffff>图片名称(*)</td>
  9. <td bgcolor=ffffff><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  10. <tr>
  11. <td height="25" bgcolor="#FFFFFF">
  12. <?=$tts?"<select name='ttid'><option value='0'>标题分类</option>$tts</select>":""?>
  13. <input type=text name=title value="<?=ehtmlspecialchars(stripSlashes($r[title]))?>" size="60">
  14. <input type="button" name="button" value="图文" onclick="document.add.title.value=document.add.title.value+'(图文)';">
  15. </td>
  16. </tr>
  17. <tr>
  18. <td height="25" bgcolor="#FFFFFF">属性:
  19. <input name="titlefont[b]" type="checkbox" value="b"<?=$titlefontb?>>粗体
  20. <input name="titlefont[i]" type="checkbox" value="i"<?=$titlefonti?>>斜体
  21. <input name="titlefont[s]" type="checkbox" value="s"<?=$titlefonts?>>删除线
  22. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;颜色: <input name="titlecolor" type="text" value="<?=stripSlashes($r[titlecolor])?>" size="10" class="color">
  23. </td>
  24. </tr>
  25. </table>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td width='16%' height=25 bgcolor='ffffff'>特殊属性</td>
  30. <td bgcolor='ffffff'>
  31. <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  32. <tr>
  33. <td height="25" bgcolor="#FFFFFF">信息属性:
  34. <input name="checked" type="checkbox" value="1"<?=$r[checked]?' checked':''?>>
  35. 审核 &nbsp;&nbsp; 推荐
  36. <select name="isgood" id="isgood">
  37. <option value="0">不推荐</option>
  38. <?=$ftnr['igname']?>
  39. </select>
  40. &nbsp;&nbsp; 头条
  41. <select name="firsttitle" id="firsttitle">
  42. <option value="0">非头条</option>
  43. <?=$ftnr['ftname']?>
  44. </select></td>
  45. </tr>
  46. <tr>
  47. <td height="25" bgcolor="#FFFFFF">关键字&nbsp;&nbsp;&nbsp;:
  48. <input name="keyboard" type="text" size="52" value="<?=stripSlashes($r[keyboard])?>">
  49. <font color="#666666">(多个请用&quot;,&quot;隔开)</font></td>
  50. </tr>
  51. <tr>
  52. <td height="25" bgcolor="#FFFFFF">外部链接:
  53. <input name="titleurl" type="text" value="<?=stripSlashes($r[titleurl])?>" size="52">
  54. <font color="#666666">(填写后信息连接地址将为此链接)</font></td>
  55. </tr>
  56. </table>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td width=16% height=25 bgcolor=ffffff>发布时间</td>
  61. <td bgcolor=ffffff><input name="newstime" type="text" value="<?=$r[newstime]?>" size="28" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><input type=button name=button value="设为当前时间" onclick="document.add.newstime.value='<?=$todaytime?>'">
  62. </td>
  63. </tr>
  64. <tr>
  65. <td width=16% height=25 bgcolor=ffffff>文件大小</td>
  66. <td bgcolor=ffffff><input name="filesize" type="text" id="filesize" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[filesize]))?>" size="60">
  67. <select name="select" onchange="document.add.filesize.value+=this.value">
  68. <option value="">单位</option>
  69. <option value=" MB">MB</option>
  70. <option value=" KB">KB</option>
  71. <option value=" GB">GB</option>
  72. <option value=" BYTES">BYTES</option>
  73. </select></td>
  74. </tr>
  75. <tr>
  76. <td width=16% height=25 bgcolor=ffffff>单图属性</td>
  77. <td bgcolor=ffffff>图片尺寸:<input name="picsize" type="text" id="picsize" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[picsize]))?>" size="">
  78. ,图片分辨率:<input name="picfbl" type="text" id="picfbl" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[picfbl]))?>" size="">
  79. </td>
  80. </tr>
  81. <tr>
  82. <td width=16% height=25 bgcolor=ffffff>来源</td>
  83. <td bgcolor=ffffff><input name="picfrom" type="text" id="picfrom" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[picfrom]))?>" size="60">
  84. </td>
  85. </tr>
  86. <tr>
  87. <td width=16% height=25 bgcolor=ffffff>图片小图</td>
  88. <td bgcolor=ffffff><input name="titlepic" type="text" id="titlepic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[titlepic]))?>" size="45">
  89. <a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=titlepic<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td width=16% height=25 bgcolor=ffffff>图片大图</td>
  94. <td bgcolor=ffffff><input name="picurl" type="text" id="picurl" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[picurl]))?>" size="45">
  95. <a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=picurl<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td width=16% height=25 bgcolor=ffffff>图片集</td>
  100. <td bgcolor=ffffff><script>
  101. function dopicadd()
  102. {var i;
  103. var str="";
  104. var oldi=0;
  105. var j=0;
  106. oldi=parseInt(document.add.morepicnum.value);
  107. for(i=1;i<=document.add.downmorepicnum.value;i++)
  108. {
  109. j=i+oldi;
  110. 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>";
  111. }
  112. document.getElementById("addpicdown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  113. }
  114. </script>
  115. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  116. <tr>
  117. <td height="25">
  118. 图片地址前缀:
  119. <input name="mpicurl_qz" type="text" id="mpicurl_qz">&nbsp;&nbsp;
  120. <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';}">生成缩图
  121. <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>
  122. <?php
  123. if(TranmoreIsOpen())
  124. {
  125. ?>
  126. <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');">
  127. <?php
  128. }
  129. ?>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td><table width="100%" border=0 align=center cellpadding=3 cellspacing=1>
  134. <tr bgcolor="#DBEAF5">
  135. <td width="7%"><div align=center>编号</div></td>
  136. <td width="33%"><div align=center>缩图 <font color="#666666">(双击选择)</font></div></td>
  137. <td width="30%"><div align=center>大图 <font color="#666666">(双击选择)</font></div></td>
  138. <td width="30%"><div align=center>图片说明</div></td>
  139. </tr>
  140. </table></td>
  141. </tr>
  142. <tr>
  143. <td id=defmorepicid>
  144. <?php
  145. if($ecmsfirstpost==1)
  146. {
  147. ?>
  148. <table width='100%' border=0 align=center cellpadding=3 cellspacing=1>
  149. <?php
  150. $morepicnum=3;
  151. for($mppathi=1;$mppathi<=$morepicnum;$mppathi++)
  152. {
  153. ?>
  154. <tr>
  155. <td width='7%'><div align=center><?=$mppathi?></div></td>
  156. <td width='33%'><div align=center>
  157. <input name=msmallpic[] type=text id='msmallpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'msmallpic<?=$mppathi?>');">
  158. <br><input type=file name=msmallpfile[] size=15>
  159. </div></td>
  160. <td width='30%'><div align=center>
  161. <input name=mbigpic[] type=text id='mbigpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'mbigpic<?=$mppathi?>');">
  162. <br><input type=file name=mbigpfile[] size=15>
  163. </div></td>
  164. <td width='30%'><div align=center>
  165. <input name=mpicname[] type=text id='mpicname<?=$mppathi?>'>
  166. </div></td>
  167. </tr>
  168. <?php
  169. }
  170. ?>
  171. </table>
  172. <?php
  173. }
  174. else
  175. {
  176. $morepicpath="";
  177. $morepicnum=0;
  178. if($r[morepic])
  179. {
  180. $r[morepic]=stripSlashes($r[morepic]);
  181. //地址
  182. $j=0;
  183. $pd_record=explode("\r\n",$r[morepic]);
  184. for($i=0;$i<count($pd_record);$i++)
  185. {
  186. $j=$i+1;
  187. $pd_field=explode("::::::",$pd_record[$i]);
  188. $morepicpath.="<tr>
  189. <td width='7%'><div align=center>".$j."</div></td>
  190. <td width='33%'><div align=center>
  191. <input name=msmallpic[] type=text value='".$pd_field[0]."' size=28 id=msmallpic".$j." ondblclick=\"SpOpenChFile(1,'msmallpic".$j."');\">
  192. <br><input type=file name=msmallpfile[] size=15>
  193. </div></td>
  194. <td width='30%'><div align=center>
  195. <input name=mbigpic[] type=text value='".$pd_field[1]."' size=28 id=mbigpic".$j." ondblclick=\"SpOpenChFile(1,'mbigpic".$j."');\">
  196. <br><input type=file name=mbigpfile[] size=15>
  197. </div></td>
  198. <td width='30%'><div align=center>
  199. <input name=mpicname[] type=text value='".$pd_field[2]."'><input type=hidden name=mpicid[] value=".$j."><input type=checkbox name=mdelpicid[] value=".$j.">删
  200. </div></td>
  201. </tr>";
  202. }
  203. $morepicnum=$j;
  204. $morepicpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$morepicpath."</table>";
  205. }
  206. echo $morepicpath;
  207. }
  208. ?>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td height="25">地址扩展数量: <input name="morepicnum" type="hidden" id="morepicnum" value="<?=$morepicnum?>">
  213. <input name="downmorepicnum" type="text" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dopicadd();"></td>
  214. </tr>
  215. <tr>
  216. <td id=addpicdown></td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <tr>
  222. <td width=16% height=25 bgcolor=ffffff>图集属性</td>
  223. <td bgcolor=ffffff>每行显示条数:<input name="num" type="text" id="num" value="<?=$ecmsfirstpost==1?"3":ehtmlspecialchars(stripSlashes($r[num]))?>" size="">
  224. ,缩图大小:<input name="width" type="text" id="width" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[width]))?>" size="6">
  225. *<input name="height" type="text" id="height" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[height]))?>" size="6">
  226. <font color="#666666">(宽*高)</font></td>
  227. </tr>
  228. <tr>
  229. <td width=16% height=25 bgcolor=ffffff>图片简介(*)</td>
  230. <td bgcolor=ffffff><textarea name="picsay" cols="80" rows="10" id="picsay"><?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[picsay]))?></textarea>
  231. </td>
  232. </tr>
  233. </table>