editcj7.php 5.5 KB

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