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

386 lines
18KB

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