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

387 lines
18KB

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