editcj12.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?><tr><td 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></td></tr><tr><td bgcolor=ffffff>副标题</td><td bgcolor=ffffff><input name="ftitle" type="text" size=60 id="ftitle" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[ftitle]))?>">
  23. </td></tr><tr><td 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?>'"></td></tr><tr><td bgcolor=ffffff>标题图片</td><td bgcolor=ffffff><input name="titlepic" type="text" id="titlepic" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[titlepic]))?>" size="45">
  24. <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></td></tr><tr><td bgcolor=ffffff>内容简介</td><td bgcolor=ffffff><textarea name="smalltext" cols="80" rows="10" id="smalltext"><?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[smalltext]))?></textarea>
  25. </td></tr><tr><td bgcolor=ffffff>新闻正文</td><td bgcolor=ffffff><?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","300","100%")?>
  26. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  27. <tr>
  28. <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
  29. 关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">
  30. 远程保存图片(
  31. <input name="mark" type="checkbox" id="mark" value="1">
  32. <a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)&nbsp;&nbsp;
  33. <input name="copyflash" type="checkbox" id="copyflash" value="1">
  34. 远程保存FLASH(地址前缀:
  35. <input name="qz_url" type="text" id="qz_url" size="">
  36. )</td>
  37. </tr>
  38. <tr>
  39. <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1">自动分页
  40. ,每
  41. <input name="autosize" type="text" id="autosize" value="5000" size="5">
  42. 个字节为一页&nbsp;&nbsp; 取第
  43. <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
  44. 张上传图为标题图片(
  45. <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
  46. 缩略图: 宽
  47. <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
  48. *高
  49. <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
  50. )</td>
  51. </tr>
  52. </table>
  53. </td></tr><tr><td bgcolor=ffffff>类别</td><td bgcolor=ffffff><input name="typename" type="text" id="typename" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[typename]))?>" size="">
  54. </td></tr><tr><td bgcolor=ffffff>视频地址</td><td bgcolor=ffffff>
  55. <script>
  56. function domvadd_jijin()
  57. {
  58. var i;
  59. var str='';
  60. var oldi=0;
  61. var j=0;
  62. var addnum=0;
  63. addnum=parseInt(document.add.mvaddnum_jijin.value);
  64. oldi=parseInt(document.add.mveditnum_jijin.value);
  65. for(i=1;i<=addnum;i++)
  66. {
  67. j=i+oldi;
  68. str=str+'<tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_'+j+'" value=""></td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_'+j+'" value=""></td></tr>';
  69. }
  70. document.getElementById("mvadd_jijin").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
  71. }
  72. </script>
  73. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td>
  76. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  77. <tr><td align="center">设置1</td><td align="center">设置2</td></tr>
  78. </table>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td>
  83. <?php
  84. if($ecmsfirstpost==1)
  85. {
  86. ?>
  87. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  88. <?php
  89. $editnum=3;
  90. for($i=1;$i<=$editnum;$i++)
  91. {
  92. ?>
  93. <tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_<?=$i?>" value=""></td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_<?=$i?>" value=""></td></tr>
  94. <?php
  95. }
  96. ?>
  97. </table>
  98. <?php
  99. }
  100. else
  101. {
  102. $editnum=0;
  103. if($r['jijin'])
  104. {
  105. $r['jijin']=stripSlashes($r['jijin']);
  106. ?>
  107. <table width='100%' border=0 cellspacing=1 cellpadding=3>
  108. <?php
  109. //录入项
  110. $j=0;
  111. $mvf_record=explode('||||||',$r['jijin']);
  112. $mvf_count=count($mvf_record);
  113. for($i=0;$i<$mvf_count;$i++)
  114. {
  115. $j=$i+1;
  116. $mvf_field=explode("::::::",$mvf_record[$i]);
  117. ?>
  118. <tr><td align="center"><input type="text" name="jijin_1[]" id="jijin_1_<?=$j?>" value="<?=$mvf_field[0]?>"> <input type="hidden" name="jijin_mvid[]" id="jijin_mvid_<?=$j?>" value="<?=$j?>"><input type="checkbox" name="jijin_mvdelid[]" id="jijin_mvdelid_<?=$j?>" value="<?=$j?>">删</td><td align="center"><input type="text" name="jijin_2[]" id="jijin_2_<?=$j?>" value="<?=$mvf_field[1]?>"></td></tr>
  119. <?php
  120. }
  121. ?>
  122. </table>
  123. <?php
  124. $editnum=$j;
  125. }
  126. }
  127. ?>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td height="25">扩展数量: <input name="mveditnum_jijin" type="hidden" id="mveditnum_jijin" value="<?=$editnum?>">
  132. <input name="mvnum_jijin" type="hidden" id="mvnum_jijin" value="2">
  133. <input name="mvmust_jijin" type="hidden" id="mvmust_jijin" value="1">
  134. <input name="mvaddnum_jijin" type="text" id="mvaddnum_jijin" value="1" size="6"> <input type="button" name="Submit5" value="输出" onclick="javascript:domvadd_jijin();"></td>
  135. </tr>
  136. <tr>
  137. <td id="mvadd_jijin"></td>
  138. </tr>
  139. </table>
  140. </td></tr><tr><td bgcolor=ffffff>采集地址</td><td bgcolor=ffffff>
  141. <input name="cjurl" type="text" id="cjurl" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[cjurl]))?>" size="">
  142. </td></tr>