国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

416 lines
19KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>更改文章</title>
  6. <style type="text/css">
  7. <!--
  8. body {
  9. background-image: url(images/allbg.gif);
  10. }
  11. -->
  12. </style>
  13. <link href="css/base.css" rel="stylesheet" type="text/css">
  14. <link href='css/tb-box.css' rel='stylesheet' type='text/css' />
  15. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  16. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  17. <script language="javascript" src="js/main.js"></script>
  18. <script type="text/javascript"src="js/handlers.js"></script>
  19. <script language="javascript" src="../static/js/jquery/jquery.js"></script>
  20. <script language="javascript" src="../static/js/jquery/ui.core.js"></script>
  21. <script language="javascript" src="../static/js/jquery/ui.draggable.js"></script>
  22. <script language='javascript' src='js/tb-box.js'></script>
  23. <script language="javascript">
  24. <!--
  25. var swfu = null;
  26. var arctype = 'article';
  27. function checkSubmit()
  28. {
  29. if(document.form1.title.value=='')
  30. {
  31. alert('文章标题不能为空!');
  32. document.form1.title.focus();
  33. return false;
  34. }
  35. }
  36. function addVote()
  37. {
  38. tb_show('添加投票', 'vote_add.php?isarc=1&TB_iframe=true&height=460&width=600', false);
  39. }
  40. function selectVote()
  41. {
  42. tb_show('选取投票','vote_main.php?issel=1&TB_iframe=true&height=460&width=600',false);
  43. }
  44. function viewVote()
  45. {
  46. if($("#voteid").val() != 0)
  47. {
  48. window.open('<?php echo $cfg_cmsurl;?>/plus/vote.php?dopost=view&aid=' + $("#voteid").val());
  49. } else {
  50. alert('请选择一个投票');
  51. return false;
  52. }
  53. }
  54. window.onload = function ()
  55. {
  56. };
  57. -->
  58. </script>
  59. </head>
  60. <body topmargin="8">
  61. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  62. <tr>
  63. <td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a> &gt;&gt; 更改文章</td>
  64. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a></td>
  65. <td width="1%">&nbsp;</td>
  66. </tr>
  67. </table>
  68. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  69. <tr>
  70. <td colspan="2"><table border="0" cellpadding="0" cellspacing="0">
  71. <tr>
  72. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  73. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>高级参数</u></a></td>
  74. </tr>
  75. </table></td>
  76. </tr>
  77. </table>
  78. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  79. <tr>
  80. <td colspan="2"><table height="24" border="0" cellpadding="0" cellspacing="0">
  81. <tr>
  82. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规信息</u></a>&nbsp;</td>
  83. <td width="84" align="center" background="images/itemnote1.gif">高级参数</td>
  84. </tr>
  85. </table></td>
  86. </tr>
  87. </table>
  88. <form name="form1" action="article_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  89. <input type="hidden" name="dopost" value="save" />
  90. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  91. <input type="hidden" name="id" value="<?php echo $aid?>" />
  92. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  93. <tr>
  94. <td height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  95. <tr>
  96. <td width="90">&nbsp;文章标题:</td>
  97. <td width='408'><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:388px"></td>
  98. <td width="90">&nbsp;简略标题:</td>
  99. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" value="<?php echo $arcRow['shorttitle']; ?>"></td>
  100. </tr>
  101. </table></td>
  102. </tr>
  103. <tr>
  104. <td width="400%" height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  105. <tr>
  106. <td width="90">&nbsp;自定义属性:</td>
  107. <td><?php
  108. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  109. $dsql->Execute();
  110. while($trow = $dsql->GetObject())
  111. {
  112. if($trow->att=='j')
  113. {
  114. $jumpclick = " onclick='ShowUrlTr()'";
  115. }
  116. else
  117. {
  118. $jumpclick = '';
  119. }
  120. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  121. {
  122. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]";
  123. }
  124. else
  125. {
  126. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]";
  127. }
  128. }
  129. ?></td>
  130. </tr>
  131. </table></td>
  132. </tr>
  133. <tr>
  134. <td height="24" colspan="2" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>"><table width="800" border="0" cellspacing="0" cellpadding="0">
  135. <tr>
  136. <td width="90">&nbsp;跳转网址:</td>
  137. <td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow["redirecturl"]?>" /></td>
  138. </tr>
  139. </table></td>
  140. </tr>
  141. <tr>
  142. <td width="400%" height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  143. <tr>
  144. <td width="90">&nbsp;TAG标签:</td>
  145. <td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px" />
  146. (','号分开,单个标签小于12字节)</td>
  147. <td width="40">权重:</td>
  148. <td width="141"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $arcRow['weight'];?>" />
  149. (越小越靠前)</td>
  150. </tr>
  151. </table></td>
  152. </tr>
  153. <tr id="pictable">
  154. <td height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  155. <tr>
  156. <td width="90" height="81">&nbsp;缩 略 图:<br/></td>
  157. <td><input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow["litpic"]?>">
  158. <input type="button" name="Submit" value="浏览..." style="width:70px" onClick="SelectImage('form1.picname','');">
  159. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  160. <input type='checkbox' class='np' name='ddisremote' value='1' />
  161. 远程 </td>
  162. <td align="center"><img src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "images/pview.gif";?>" width="150" height="100" id="picview" name="picview"></td>
  163. </tr>
  164. </table></td>
  165. </tr>
  166. <tr>
  167. <td height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  168. <tr>
  169. <td width="90">&nbsp;文章来源:</td>
  170. <td width="250"><input name="source" type="text" id="source" style="width:160px" value="<?php echo $arcRow["source"]?>" size="16">
  171. <input name="selsource" type="button" id="selsource" value="选择" /></td>
  172. <td width="90">作 者:</td>
  173. <td><input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>">
  174. <input name="selwriter" type="button" id="selwriter" value="选择" /></td>
  175. </tr>
  176. </table></td>
  177. </tr>
  178. <tr>
  179. <td height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  180. <tr>
  181. <td width="90">&nbsp;文章主栏目:</td>
  182. <td><?php
  183. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  184. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  185. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
  186. echo $typeOptions;
  187. echo "</select>";
  188. ?>
  189. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  190. <?php
  191. if($cfg_remote_site=='Y')
  192. {
  193. ?>
  194. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>
  195. 是否同步远程发布
  196. <?php GetFtp();?>
  197. <?php
  198. }
  199. ?></td>
  200. </tr>
  201. </table></td>
  202. </tr>
  203. <?php
  204. if($cfg_need_typeid2=='Y') {
  205. ?>
  206. <tr>
  207. <td height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  208. <tr>
  209. <td width="90">&nbsp;文章副栏目:</td>
  210. <td><span id='typeid2ct'></span>
  211. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  212. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /></td>
  213. </tr>
  214. </table></td>
  215. </tr>
  216. <?php } ?>
  217. <tr>
  218. <td colspan="2"><?php
  219. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
  220. ?></td>
  221. </tr>
  222. <tr>
  223. <td height="24" colspan="2" bgcolor="#F9FCEF" class="bline2">&nbsp;文章内容:</td>
  224. </tr>
  225. <tr>
  226. <td width="400%" height="24" colspan="2" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  227. <tr>
  228. <td width="90">&nbsp;附加选项:</td>
  229. <td><input name="remote" type="checkbox" class="np" id="remote" value="1" checked>
  230. 下载远程图片和资源
  231. <input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked>
  232. 提取第一个图片为缩略图 </td>
  233. </tr>
  234. </table></td>
  235. </tr>
  236. <tr>
  237. <td width="100%"><?php GetEditor("body",stripcslashes($addRow['body']),450); ?></td>
  238. <td width="255" align="center" valign="top" bgcolor="#FFFFCC" id="mPic" style="display:none"></td>
  239. </tr>
  240. </table>
  241. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="votehead" style="margin-top:10px;">
  242. <tr>
  243. <td><table border="0" cellpadding="0" cellspacing="0">
  244. <tr>
  245. <td width="84" height="24" align="center" background="images/itemnote1.gif"><a href='javascript:ShowHideT("voteset")'><u>插入投票</u></a></td>
  246. </tr>
  247. </table></td>
  248. </tr>
  249. </table>
  250. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="voteset" style="border:1px solid #cfcfcf;background:#ffffff;">
  251. <tr>
  252. <td height="30"><table width="800" border="0" cellspacing="0" cellpadding="0">
  253. <tr>
  254. <td width="90" height="22">&nbsp;投票:</td>
  255. <td><input type="text" name="voteid" id="voteid" value="<?php echo $arcRow['voteid']; ?>" />
  256. <input name="selvote" type="button" id="selvote" value="选择投票" onClick="selectVote()" />
  257. <input name="addvote" type="button" id="addvote" value="新增投票" onclick="addVote()" />
  258. <input type="button" name="viewvote" id="viewvote" value="查看投票" onclick="viewVote()" /></td>
  259. </tr>
  260. </table></td>
  261. </tr>
  262. </table>
  263. <!-- //高级参数 -->
  264. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  265. <tr>
  266. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  267. <tr>
  268. <td width="110" height="22">&nbsp;评论选项:</td>
  269. <td width="250"><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/>
  270. 允许评论
  271. &nbsp;
  272. <input type='radio' name='notpost' class='np' value='1'<?php if($arcRow['notpost']==1) echo " checked='1' "; ?>/>
  273. 禁止评论 </td>
  274. <td width="90">浏览次数:</td>
  275. <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td>
  276. </tr>
  277. </table></td>
  278. </tr>
  279. <tr>
  280. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  281. <tr>
  282. <td width="110">&nbsp;文章排序:</td>
  283. <td width="250"><select name="sortup" id="sortup" style="width:150">
  284. <?php
  285. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  286. echo "<option value='0'>正常排序</option>\r\n";
  287. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  288. ?>
  289. <option value="7">置顶一周</option>
  290. <option value="30">置顶一个月</option>
  291. <option value="90">置顶三个月</option>
  292. <option value="180">置顶半年</option>
  293. <option value="360">置顶一年</option>
  294. </select></td>
  295. <td width="90">标题颜色:</td>
  296. <td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>">
  297. <input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"></td>
  298. </tr>
  299. </table></td>
  300. </tr>
  301. <tr>
  302. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  303. <tr>
  304. <td width="110">&nbsp;阅读权限:</td>
  305. <td width="250"><select name="arcrank" id="arcrank" style="width:150">
  306. <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option>
  307. <?php
  308. $urank = $cuserLogin->getUserRank();
  309. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  310. $dsql->Execute();
  311. while($row = $dsql->GetObject()){
  312. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  313. }
  314. ?>
  315. </select></td>
  316. <td width="90">发布选项:</td>
  317. <td><input name="ishtml" type="radio" class="np" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  318. 生成HTML
  319. <input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>>
  320. 仅动态浏览 </td>
  321. </tr>
  322. </table></td>
  323. </tr>
  324. <tr>
  325. <td height="75" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  326. <tr>
  327. <td width="110">&nbsp;更新时间:</td>
  328. <td width="250"><?php
  329. $nowtime = GetDateTimeMk(time());
  330. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:120px;\">";
  331. ?>
  332. <script language="javascript" type="text/javascript">
  333. Calendar.setup({
  334. inputField : "pubdate",
  335. ifFormat : "%Y-%m-%d %H:%M:%S",
  336. showsTime : true,
  337. timeFormat : "24"
  338. });
  339. </script></td>
  340. <td width="92">消费金币:</td>
  341. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>" size="10"></td>
  342. </tr>
  343. </table></td>
  344. </tr>
  345. <tr>
  346. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  347. <tr>
  348. <td width="110" height="51">&nbsp;关键字:</td>
  349. <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td>
  350. </tr>
  351. </table></td>
  352. </tr>
  353. <tr>
  354. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  355. <tr>
  356. <td width="110" height="51">&nbsp;文章摘要:</td>
  357. <td><textarea name="description" rows="5" id="description" style="width:80%"><?php echo $arcRow["description"]?></textarea></td>
  358. </tr>
  359. </table></td>
  360. </tr>
  361. <tr>
  362. <td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0">
  363. <tr>
  364. <td width="110">&nbsp;自定义文件名:</td>
  365. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />
  366. (不包括后缀名如.html等)</td>
  367. <td><?php
  368. if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  369. {
  370. ?>
  371. 模板选择:
  372. <select name='templet' id='templet' style='width:200px' size='1'>
  373. <?php
  374. foreach($cfg_tamplate_arr as $k=>$v)
  375. {
  376. $v = trim($v);
  377. echo ($v==$addRow['templet'] ? "<option value='$v' selected>$v</option>\r\n" : "<option value='$v'>$v</option>\r\n");
  378. }
  379. ?>
  380. </select>
  381. <?php
  382. }
  383. else{
  384. echo "<input type='hidden' name='templet' value='{$addRow['templet']}' />";
  385. }
  386. ?></td>
  387. </tr>
  388. </table></td>
  389. </tr>
  390. </table>
  391. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  392. <tr>
  393. <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
  394. <tr>
  395. <td width="17%">&nbsp;</td>
  396. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  397. <tr>
  398. <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
  399. <td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer"></td>
  400. </tr>
  401. </table></td>
  402. </tr>
  403. </table></td>
  404. </tr>
  405. </table>
  406. <script language='javascript'>InitPage();</script>
  407. </form>
  408. <div id="__tmpbody" style="display:none"></div>
  409. </body>
  410. </html>