国内流行的内容管理系统(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.

450 lines
19KB

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