editcj1.php 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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><?php
  26. $writer_sql=$empire->query("select writer from {$dbtbpre}enewswriter");
  27. while($w_r=$empire->fetch($writer_sql))
  28. {
  29. $w_class.="<option value='".$w_r[writer]."'>".$w_r[writer]."</option>";
  30. }
  31. ?>
  32. <input type=text name=writer value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[writer]))?>" size="">
  33. <select name="w_id" id="select7" onchange="document.add.writer.value=document.add.w_id.value">
  34. <option>选择作者</option>
  35. <?=$w_class?>
  36. </select>
  37. <input type="button" name="wbutton" value="增加作者" onclick="window.open('NewsSys/writer.php?<?=$ecms_hashur[ehref]?>&addwritername='+document.add.writer.value);">
  38. </td></tr><tr><td bgcolor=ffffff>信息来源</td><td bgcolor=ffffff><?php
  39. $befrom_sql=$empire->query("select sitename from {$dbtbpre}enewsbefrom");
  40. while($b_r=$empire->fetch($befrom_sql))
  41. {
  42. $b_class.="<option value='".$b_r[sitename]."'>".$b_r[sitename]."</option>";
  43. }
  44. ?>
  45. <input type="text" name="befrom" value="<?=$ecmsfirstpost==1?"":ehtmlspecialchars(stripSlashes($r[befrom]))?>" size="">
  46. <select name="befrom_id" id="befromid" onchange="document.add.befrom.value=document.add.befrom_id.value">
  47. <option>选择信息来源</option>
  48. <?=$b_class?>
  49. </select>
  50. <input type="button" name="wbutton" value="增加来源" onclick="window.open('NewsSys/BeFrom.php?<?=$ecms_hashur[ehref]?>&addsitename='+document.add.befrom.value);">
  51. </td></tr><tr><td bgcolor=ffffff>新闻正文</td><td bgcolor=ffffff><?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","300","100%")?>
  52. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
  53. <tr>
  54. <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
  55. 关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">
  56. 远程保存图片(
  57. <input name="mark" type="checkbox" id="mark" value="1">
  58. <a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)&nbsp;&nbsp;
  59. <input name="copyflash" type="checkbox" id="copyflash" value="1">
  60. 远程保存FLASH(地址前缀:
  61. <input name="qz_url" type="text" id="qz_url" size="">
  62. )</td>
  63. </tr>
  64. <tr>
  65. <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1">自动分页
  66. ,每
  67. <input name="autosize" type="text" id="autosize" value="5000" size="5">
  68. 个字节为一页&nbsp;&nbsp; 取第
  69. <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
  70. 张上传图为标题图片(
  71. <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
  72. 缩略图: 宽
  73. <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
  74. *高
  75. <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
  76. )</td>
  77. </tr>
  78. </table>
  79. </td></tr>