13.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><table width='100%' align=center cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'><tr><td width='16%' height=25 bgcolor='ffffff'>图片名称</td><td bgcolor='ffffff'><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  7. <tr>
  8. <td height="25" bgcolor="#FFFFFF">
  9. <?=$tts?"<select name='ttid'><option value='0'>标题分类</option>$tts</select>":""?>
  10. <input type=text name=title value="<?=ehtmlspecialchars(stripSlashes($r[title]))?>" size="60">
  11. <input type="button" name="button" value="图文" onclick="document.add.title.value=document.add.title.value+'(图文)';">
  12. </td>
  13. </tr>
  14. <tr>
  15. <td height="25" bgcolor="#FFFFFF">属性:
  16. <input name="titlefont[b]" type="checkbox" value="b"<?=$titlefontb?>>粗体
  17. <input name="titlefont[i]" type="checkbox" value="i"<?=$titlefonti?>>斜体
  18. <input name="titlefont[s]" type="checkbox" value="s"<?=$titlefonts?>>删除线
  19. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;颜色: <input name="titlecolor" type="text" value="<?=stripSlashes($r[titlecolor])?>" size="10" class="color">
  20. </td>
  21. </tr>
  22. </table>
  23. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>特殊属性</td><td bgcolor='ffffff'>
  24. <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
  25. <tr>
  26. <td height="25" bgcolor="#FFFFFF">信息属性:
  27. <input name="checked" type="checkbox" value="1"<?=$r[checked]?' checked':''?>>
  28. 审核 &nbsp;&nbsp; 推荐
  29. <select name="isgood" id="isgood">
  30. <option value="0">不推荐</option>
  31. <?=$ftnr['igname']?>
  32. </select>
  33. &nbsp;&nbsp; 头条
  34. <select name="firsttitle" id="firsttitle">
  35. <option value="0">非头条</option>
  36. <?=$ftnr['ftname']?>
  37. </select></td>
  38. </tr>
  39. <tr>
  40. <td height="25" bgcolor="#FFFFFF">关键字&nbsp;&nbsp;&nbsp;:
  41. <input name="keyboard" type="text" size="52" value="<?=stripSlashes($r[keyboard])?>">
  42. <font color="#666666">(多个请用&quot;,&quot;隔开)</font></td>
  43. </tr>
  44. <tr>
  45. <td height="25" bgcolor="#FFFFFF">外部链接:
  46. <input name="titleurl" type="text" value="<?=stripSlashes($r[titleurl])?>" size="52">
  47. <font color="#666666">(填写后信息连接地址将为此链接)</font></td>
  48. </tr>
  49. </table>
  50. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>发布时间</td><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?>'">
  51. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>标题图片</td><td bgcolor='ffffff'><input name="titlepic" type="text" id="titlepic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[titlepic]))?>" size="45">
  52. <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>
  53. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>图片集</td><td bgcolor='ffffff'><script>
  54. function dopicadd()
  55. {var i;
  56. var str="";
  57. var oldi=0;
  58. var j=0;
  59. oldi=parseInt(document.add.morepicnum.value);
  60. for(i=1;i<=document.add.downmorepicnum.value;i++)
  61. {
  62. j=i+oldi;
  63. 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>";
  64. }
  65. document.getElementById("addpicdown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  66. }
  67. </script>
  68. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  69. <tr>
  70. <td height="25">
  71. 图片地址前缀:
  72. <input name="mpicurl_qz" type="text" id="mpicurl_qz">&nbsp;&nbsp;
  73. <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';}">生成缩图
  74. <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>
  75. <?php
  76. if(TranmoreIsOpen())
  77. {
  78. ?>
  79. <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');">
  80. <?php
  81. }
  82. ?>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td><table width="100%" border=0 align=center cellpadding=3 cellspacing=1>
  87. <tr bgcolor="#DBEAF5">
  88. <td width="7%"><div align=center>编号</div></td>
  89. <td width="33%"><div align=center>缩图 <font color="#666666">(双击选择)</font></div></td>
  90. <td width="30%"><div align=center>大图 <font color="#666666">(双击选择)</font></div></td>
  91. <td width="30%"><div align=center>图片说明</div></td>
  92. </tr>
  93. </table></td>
  94. </tr>
  95. <tr>
  96. <td id=defmorepicid>
  97. <?php
  98. if($ecmsfirstpost==1)
  99. {
  100. ?>
  101. <table width='100%' border=0 align=center cellpadding=3 cellspacing=1>
  102. <?php
  103. $morepicnum=3;
  104. for($mppathi=1;$mppathi<=$morepicnum;$mppathi++)
  105. {
  106. ?>
  107. <tr>
  108. <td width='7%'><div align=center><?=$mppathi?></div></td>
  109. <td width='33%'><div align=center>
  110. <input name=msmallpic[] type=text id='msmallpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'msmallpic<?=$mppathi?>');">
  111. <br><input type=file name=msmallpfile[] size=15>
  112. </div></td>
  113. <td width='30%'><div align=center>
  114. <input name=mbigpic[] type=text id='mbigpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'mbigpic<?=$mppathi?>');">
  115. <br><input type=file name=mbigpfile[] size=15>
  116. </div></td>
  117. <td width='30%'><div align=center>
  118. <input name=mpicname[] type=text id='mpicname<?=$mppathi?>'>
  119. </div></td>
  120. </tr>
  121. <?php
  122. }
  123. ?>
  124. </table>
  125. <?php
  126. }
  127. else
  128. {
  129. $morepicpath="";
  130. $morepicnum=0;
  131. if($r[morepic])
  132. {
  133. $r[morepic]=stripSlashes($r[morepic]);
  134. //地址
  135. $j=0;
  136. $pd_record=explode("\r\n",$r[morepic]);
  137. for($i=0;$i<count($pd_record);$i++)
  138. {
  139. $j=$i+1;
  140. $pd_field=explode("::::::",$pd_record[$i]);
  141. $morepicpath.="<tr>
  142. <td width='7%'><div align=center>".$j."</div></td>
  143. <td width='33%'><div align=center>
  144. <input name=msmallpic[] type=text value='".$pd_field[0]."' size=28 id=msmallpic".$j." ondblclick=\"SpOpenChFile(1,'msmallpic".$j."');\">
  145. <br><input type=file name=msmallpfile[] size=15>
  146. </div></td>
  147. <td width='30%'><div align=center>
  148. <input name=mbigpic[] type=text value='".$pd_field[1]."' size=28 id=mbigpic".$j." ondblclick=\"SpOpenChFile(1,'mbigpic".$j."');\">
  149. <br><input type=file name=mbigpfile[] size=15>
  150. </div></td>
  151. <td width='30%'><div align=center>
  152. <input name=mpicname[] type=text value='".$pd_field[2]."'><input type=hidden name=mpicid[] value=".$j."><input type=checkbox name=mdelpicid[] value=".$j.">删
  153. </div></td>
  154. </tr>";
  155. }
  156. $morepicnum=$j;
  157. $morepicpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$morepicpath."</table>";
  158. }
  159. echo $morepicpath;
  160. }
  161. ?>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td height="25">地址扩展数量: <input name="morepicnum" type="hidden" id="morepicnum" value="<?=$morepicnum?>">
  166. <input name="downmorepicnum" type="text" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dopicadd();"></td>
  167. </tr>
  168. <tr>
  169. <td id=addpicdown></td>
  170. </tr>
  171. </table>
  172. </td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>图片简介</td><td bgcolor='ffffff'>
  173. <textarea name="smalltext" cols="80" rows="10" id="smalltext"><?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[smalltext]))?></textarea>
  174. </td></tr></table>