国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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