国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

article_edit.htm 17KB

2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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%" ><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="28" 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 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" height="28" 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 colspan="2" class="bline">
  80. <table width="900" cellspacing="0" cellpadding="0">
  81. <tr>
  82. <td width="90"> 文章标题:</td>
  83. <td width="400"><input type="text" name="title" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td>
  84. <td width="90">简略标题:</td>
  85. <td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td>
  86. </tr>
  87. </table>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td width="100%" colspan="2" class="bline">
  92. <table width="900" cellspacing="0" cellpadding="0">
  93. <tr>
  94. <td width="90"> 自定义属性:</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 class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>";
  110. } else {
  111. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label>";
  112. }
  113. }
  114. ?>
  115. </td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td 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"> 跳转网址:</td>
  125. <td><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td width="100%" colspan="2" class="bline">
  132. <table width="900" cellspacing="0" cellpadding="0">
  133. <tr>
  134. <td width="90"> Tag标签:</td>
  135. <td><input type="text" name="tags" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td>
  136. <td width="60">权重:</td>
  137. <td><input type="text" name="weight" 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 colspan="2" class="bline">
  144. <table width="900" cellspacing="0" cellpadding="0">
  145. <tr>
  146. <td width="90"> 缩略图:</td>
  147. <td>
  148. <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px">
  149. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</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 type="button" id="btnClearAll" 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 colspan="2" class="bline">
  163. <table width="900" cellspacing="0" cellpadding="0">
  164. <tr>
  165. <td width="90"> 来源:</td>
  166. <td width="260">
  167. <input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" style="width:160px">
  168. <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
  169. </td>
  170. <td width="60">作者:</td>
  171. <td>
  172. <input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px">
  173. <button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
  174. </td>
  175. </tr>
  176. </table>
  177. </td>
  178. </tr>
  179. <tr>
  180. <td colspan="2" class="bline">
  181. <table width="900" cellspacing="0" cellpadding="0">
  182. <tr>
  183. <td width="90"> 发布栏目:</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 type="text" name="money" 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 colspan="2" class="bline">
  205. <table width="900" cellspacing="0" cellpadding="0">
  206. <tr>
  207. <td width="90"> 副栏目:</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 class="bline">
  222. <table width="900" cellspacing="0" cellpadding="0">
  223. <tr>
  224. <td width="90"> 关键词:</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 class="bline">
  232. <table width="900" cellspacing="0" cellpadding="0">
  233. <tr>
  234. <td width="90"> 描述:</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 width="100%" colspan="2" class="bline">
  242. <table width="900" cellspacing="0" cellpadding="0">
  243. <tr>
  244. <td width="90"> 附加选项:</td>
  245. <td>
  246. <label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo 'checked="1"'; ?>> 下载远程图片和资源</label>
  247. <label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo 'checked="1"'; ?>> 提取第一个图片为缩略图</label>
  248. </td>
  249. </tr>
  250. </table>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td colspan="2"><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield'); ?></td>
  255. </tr>
  256. <tr>
  257. <td width="100%"><?php GetEditor("body",stripcslashes($addRow['body']),450); ?></td>
  258. <td width="260" align="center" id="mPic" style="display:none"></td>
  259. </tr>
  260. </table>
  261. <!--高级参数-->
  262. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none">
  263. <tr>
  264. <td colspan="4" class="bline">
  265. <table width="900" cellspacing="0" cellpadding="0">
  266. <tr>
  267. <td width="90"> 评论选项:</td>
  268. <td width="260">
  269. <label><input type="radio" name="notpost" value="0" <?php if($arcRow['notpost']==0) echo "checked='1'"; ?>> 允许评论</label>
  270. <label><input type="radio" name="notpost" value="1" <?php if($arcRow['notpost']==1) echo "checked='1'"; ?>> 禁止评论</label>
  271. </td>
  272. <td width="90">发布选项:</td>
  273. <td>
  274. <label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked"; ?>> 生成网页</label>
  275. <label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked"; ?>> 仅动态浏览</label>
  276. </td>
  277. </tr>
  278. </table>
  279. </td>
  280. </tr>
  281. <tr>
  282. <td class="bline">
  283. <table width="900" cellspacing="0" cellpadding="0">
  284. <tr>
  285. <td width="90"> 文章排序:</td>
  286. <td width="260">
  287. <select name="sortup" id="sortup" style="width:160px">
  288. <?php
  289. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  290. echo "<option value='0'>正常排序</option>";
  291. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  292. ?>
  293. <option value="7">置顶一周</option>
  294. <option value="30">置顶一个月</option>
  295. <option value="90">置顶三个月</option>
  296. <option value="180">置顶半年</option>
  297. <option value="360">置顶一年</option>
  298. </select>
  299. </td>
  300. <td width="90">标题颜色:</td>
  301. <td>
  302. <input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  303. <button type="button" name="modcolor" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button>
  304. </td>
  305. </tr>
  306. </table>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td class="bline">
  311. <table width="900" cellspacing="0" cellpadding="0">
  312. <tr>
  313. <td width="90"> 阅读权限:</td>
  314. <td width="260">
  315. <select name="arcrank" id="arcrank" style="width:160px">
  316. <option value="<?php echo $arcRow['arcrank']?>"><?php echo $arcRow["rankname"]?></option>
  317. <?php
  318. $urank = $cuserLogin->getUserRank();
  319. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  320. $dsql->Execute();
  321. while($row = $dsql->GetObject()){
  322. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  323. }
  324. ?>
  325. </select>
  326. </td>
  327. <td width="90">文件名称:</td>
  328. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  329. <td>
  330. <?php
  331. if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  332. {
  333. ?>
  334. 模板选择:
  335. <select name="templet" id="templet" style="width:160px">
  336. <?php
  337. foreach($cfg_tamplate_arr as $k=>$v)
  338. {
  339. $v = trim($v);
  340. echo ($v==$addRow['templet'] ? "<option value='$v' selected>$v</option>":"<option value='$v'>$v</option>");
  341. }
  342. ?>
  343. </select>
  344. <?php
  345. } else {
  346. echo "<input type='hidden' name='templet' value='{$addRow['templet']}'>";
  347. }
  348. ?>
  349. </td>
  350. </tr>
  351. </table>
  352. </td>
  353. </tr>
  354. <tr>
  355. <td height="70" class="bline">
  356. <table width="900" cellspacing="0" cellpadding="0">
  357. <tr>
  358. <td width="90"> 更新时间:</td>
  359. <td width="260"><?php
  360. $nowtime = GetDateTimeMk(time());
  361. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>";
  362. ?>
  363. </td>
  364. <td width="90">浏览次数:</td>
  365. <td><input type="text" name="click" value="<?php echo $arcRow['click']; ?>" style="width:160px"></td>
  366. </tr>
  367. </table>
  368. </td>
  369. </tr>
  370. </table>
  371. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  372. <tr>
  373. <td align="center" class="py-3">
  374. <button type="submit" class="btn btn-success btn-sm">保存</button>
  375. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  376. </td>
  377. </tr>
  378. </table>
  379. <script>InitPage();</script>
  380. </form>
  381. <div id="__tmpbody" style="display:none"></div>
  382. </body>
  383. </html>