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

361 lines
16KB

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