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

article_add.htm 19KB

3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
3 年之前
2 年之前
2 年之前
2 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
2 年之前
3 年之前
3 年之前
2 年之前
2 年之前
2 年之前
3 年之前
3 年之前
2 年之前
2 年之前
2 年之前
2 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
2 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
2 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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 arctype = 'article';
  24. function checkSubmit() {
  25. if (document.form1.title.value == '') {
  26. ShowMsg('文章标题不能为空');
  27. return false;
  28. }
  29. if (document.form1.typeid.value == 0) {
  30. ShowMsg('请选择档案的主类别');
  31. return false;
  32. }
  33. }
  34. </script>
  35. <style>
  36. img{vertical-align:baseline}
  37. table{border-collapse:separate}
  38. .albCt img{cursor:pointer}
  39. .multipic{border:1px dashed #FC6}
  40. .albCt{border-bottom:1px dashed #FC0;margin-bottom:10px;padding-bottom:10px}
  41. </style>
  42. </head>
  43. <body>
  44. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  45. <tr>
  46. <td width="60%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> &gt; 发布文章</td>
  47. <td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td>
  48. </tr>
  49. </table>
  50. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1">
  51. <tr>
  52. <td colspan="2">
  53. <table width="900" cellpadding="0" cellspacing="0">
  54. <tr>
  55. <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td>
  56. <td><a href="javascript:;" class="btn btn-success btn-sm" onClick="ShowHide('getone')">单页采集</a></td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. </table>
  62. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="getone" class="table table-borderless" style="<?php if(empty($geturl)) echo 'display:none'; ?>;margin:0">
  63. <form name="getonepage" action="article_add.php" method="get">
  64. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>">
  65. <input type="hidden" name="cid" value="<?php echo $cid; ?>">
  66. <tr>
  67. <td colspan="2">
  68. <table width="100%" cellpadding="0" cellspacing="0">
  69. <tr>
  70. <td width="120">采集单个网页:</td>
  71. <td width="270" align="center"><input type="text" name="geturl" id="geturl" value="<?php echo $geturl; ?>" style="width:260px"></td>
  72. <td>
  73. <button type="submit" class="btn btn-success btn-sm" name="Submit3">抓取</button>
  74. <button type="button" class="btn btn-success btn-sm" name="setrule" onClick="OpenMyWinCoOne('article_coonepage_rule.php')">规则管理</button>
  75. </td>
  76. </tr>
  77. </table>
  78. </td>
  79. </tr>
  80. </form>
  81. </table>
  82. <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()">
  83. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  84. <input type="hidden" name="dopost" value="save">
  85. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6">
  86. <tr>
  87. <td colspan="5" class="bline">
  88. <table width="900" cellspacing="0" cellpadding="0">
  89. <tr>
  90. <td width="90"> 文章标题:</td>
  91. <td width="400"><input type="text" name="title" id="title" value="<?php echo $title; ?>" style="width:390px"></td>
  92. <td width="90"> 简略标题:</td>
  93. <td><input type="text" name="shorttitle" id="shorttitle" style="width:160px"></td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td colspan="5" class="bline">
  100. <table width="900" cellspacing="0" cellpadding="0">
  101. <tr>
  102. <td width="90"> 自定义属性:</td>
  103. <td align="left">
  104. <?php
  105. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  106. $dsql->Execute();
  107. while($trow = $dsql->GetObject())
  108. {
  109. if($trow->att=='j')
  110. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>";
  111. else
  112. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>";
  113. }
  114. ?>
  115. </td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td colspan="5" class="bline" id="redirecturltr" style="display:none">
  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="" 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="" onChange="$Obj('keywords').value=this.value;" style="width:300px">(','号分开,单个标签小于12字节)</td>
  136. <td width="60">权重:</td>
  137. <td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc']; ?>" style="width:60px">(越小越靠前)</td>
  138. </tr>
  139. </table>
  140. </td>
  141. </tr>
  142. <tr id="pictable">
  143. <td colspan="5" 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" 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="Submit2" onClick="SelectImage('form1.picname','small');" 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 width="260" align="center"><img id="litPic" src="../static/web/img/defaultpic.jpg" style="max-width:100px;max-height:80px"></td>
  155. </tr>
  156. </table>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td colspan="5" class="bline">
  161. <table width="900" cellspacing="0" cellpadding="0">
  162. <tr>
  163. <td width="90"> 来源:</td>
  164. <td width="260">
  165. <input type="text" name="source" id="source" value="<?php echo $source; ?>" style="width:160px">
  166. <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
  167. </td>
  168. <td width="60"> 作者:</td>
  169. <td>
  170. <input type="text" name="writer" id="writer" value="<?php echo $writer; ?>" style="width:160px">
  171. <button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
  172. </td>
  173. </tr>
  174. </table>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td colspan="5" class="bline">
  179. <table width="900" cellspacing="0" cellpadding="0">
  180. <tr>
  181. <td width="90"> 发布栏目:</td>
  182. <td width="360">
  183. <span id="typeidct">
  184. <?php
  185. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  186. echo "<select name='typeid' id='typeid' style='width:160px'>";
  187. echo "<option value='0'>请选择栏目</option>";
  188. echo $typeOptions;
  189. echo "</select>";
  190. ?>
  191. </span>
  192. <i class='btn btn-sm fa fa-search' style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid')" title="快捷选择"></i>
  193. <?php
  194. if($cfg_need_typeid2=='Y')
  195. {
  196. echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>";
  197. }
  198. ?>
  199. </td>
  200. <td width="90">消费金币:</td>
  201. <td><input type="text" name="money" id="money" value="0" style="width:160px"></td>
  202. </tr>
  203. </table>
  204. </td>
  205. </tr>
  206. <tr id="typeid2tr" style="display:none">
  207. <td colspan="5" class="bline">
  208. <table width="900" cellspacing="0" cellpadding="0">
  209. <tr>
  210. <td width="90"> 副栏目:</td>
  211. <td>
  212. <span id="typeid2ct"></span>
  213. <input type="text" name="typeid2" id="typeid2" value="" style="width:260px">
  214. <i class="btn btn-sm fa fa-search" style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2')" title="选择副栏目"></i>
  215. </td>
  216. </tr>
  217. </table>
  218. </td>
  219. </tr>
  220. <tr>
  221. <td colspan="5" class="bline">
  222. <table width="900" cellspacing="0" cellpadding="0">
  223. <tr>
  224. <td width="90"> 关键词:</td>
  225. <td>
  226. <input type="text" name="keywords" id="keywords" value="<?php echo $keywords; ?>" style="width:360px">
  227. <button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览</button>
  228. </td>
  229. <td>
  230. <label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo 'checked="1"'; ?>> 自动获取,手动填写用","分开</label>
  231. </td>
  232. </tr>
  233. </table>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td colspan="5" class="bline">
  238. <table width="900" cellspacing="0" cellpadding="0">
  239. <tr>
  240. <td width="90"> 描述:</td>
  241. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $description; ?></textarea></td>
  242. </tr>
  243. </table>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td width="100%" colspan="2" class="bline">
  248. <table width="900" cellspacing="0" cellpadding="0">
  249. <tr>
  250. <td width="90"> 附加选项:</td>
  251. <td>
  252. <label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo 'checked="1"'; ?>> 下载远程图片和资源</label>
  253. <label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if($cfg_arc_dellink=='Y') echo 'checked="1"'; ?>> 删除非站内链接</label>
  254. <a href="javascript:OpenMyWin('article_allowurl_edit.php')" class="btn btn-success btn-sm">设置</a>
  255. <label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo 'checked="1"'; ?>> 提取第一个图片为缩略图</label>
  256. <label><input type="checkbox" name="needwatermark" value="1" <?php if($photo_markup=='1') echo "checked"; ?>> 图片是否加水印</label>
  257. </td>
  258. </tr>
  259. </table>
  260. </td>
  261. </tr>
  262. <tr>
  263. <td width="100%" colspan="2" class="bline">
  264. <table width="900" cellspacing="0" cellpadding="0">
  265. <tr>
  266. <td width="90"> 分页方式:</td>
  267. <td>
  268. <label><input type="radio" name="sptype" value="hand" <?php if($cfg_arcautosp=='N') echo "checked='1'"?>> 手动</label>
  269. <label><input type="radio" name="sptype" value="auto" <?php if($cfg_arcautosp=='Y') echo "checked='1'"?>> 自动</label>
  270. 大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" style="width:60px"> K(分页符为:#p#分页标题#e#)
  271. </td>
  272. </tr>
  273. </table>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td colspan="2"><?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); ?></td>
  278. </tr>
  279. <tr>
  280. <td width="100%" id="arcBody"><?php GetEditor("body",$body,450); ?></td>
  281. <td width="260" align="center" id="mPic" style="display:none"></td>
  282. </tr>
  283. </table>
  284. <!--高级参数-->
  285. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1" style="margin-top:10px">
  286. <tr>
  287. <td>
  288. <table cellpadding="0" cellspacing="0">
  289. <tr>
  290. <td width="84" height="28" align="center" bgcolor="#FBFCE2"><a href='javascript:ShowHideT("adset")'>高级参数</a></td>
  291. </tr>
  292. </table>
  293. </td>
  294. </tr>
  295. </table>
  296. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6">
  297. <tr>
  298. <td colspan="4" class="bline">
  299. <table width="900" cellspacing="0" cellpadding="0">
  300. <tr>
  301. <td width="90"> 评论选项:</td>
  302. <td width="260">
  303. <label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'"; ?>> 允许评论</label>
  304. <label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'"; ?>> 禁止评论</label>
  305. </td>
  306. <td width="90">发布选项:</td>
  307. <td>
  308. <label><input type="radio" name="ishtml" value="1" checked="1"> 生成网页</label>
  309. <label><input type="radio" name="ishtml" value="0"> 仅动态浏览</label>
  310. </td>
  311. </tr>
  312. </table>
  313. </td>
  314. </tr>
  315. <tr>
  316. <td colspan="4" class="bline">
  317. <table width="900" cellspacing="0" cellpadding="0">
  318. <tr>
  319. <td width="90"> 文章排序:</td>
  320. <td width="260">
  321. <select name="sortup" id="sortup" style="width:160px">
  322. <option value="0" selected>默认排序</option>
  323. <option value="7">置顶一周</option>
  324. <option value="30">置顶一个月</option>
  325. <option value="90">置顶三个月</option>
  326. <option value="180">置顶半年</option>
  327. <option value="360">置顶一年</option>
  328. </select> </td>
  329. <td width="90">标题颜色:</td>
  330. <td>
  331. <input type="text" name="color" id="color" style="width:160px">
  332. <button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event, this)">选取</button>
  333. </td>
  334. </tr>
  335. </table>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td colspan="4" class="bline">
  340. <table width="900" cellspacing="0" cellpadding="0">
  341. <tr>
  342. <td width="90"> 阅读权限:</td>
  343. <td width="260">
  344. <select name="arcrank" id="arcrank" style="width:160px">
  345. <?php
  346. $urank = $cuserLogin->getUserRank();
  347. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  348. $dsql->Execute();
  349. while($row = $dsql->GetObject())
  350. {
  351. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  352. }
  353. ?>
  354. </select>
  355. </td>
  356. <td width="90">文件名称:</td>
  357. <td><input type="text" name="filename" id="filename" style="width:160px">(不包括后缀名如.html等)</td>
  358. <td>
  359. <?php
  360. if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  361. {
  362. ?>
  363. 随机选择模板:
  364. <select name="templet" id="templet" style="width:120px">
  365. <?php
  366. $rndsel = mt_rand(1, count($cfg_tamplate_arr)) - 1;
  367. foreach($cfg_tamplate_arr as $k=>$v)
  368. {
  369. $v = trim($v);
  370. echo ($k==$rndsel ? "<option value='$v' selected>$v</option>" : "<option value='$v'>$v</option>");
  371. }
  372. ?>
  373. </select>
  374. <?php
  375. } else {
  376. echo "<input type='hidden' name='templet' value=''>";
  377. }
  378. ?>
  379. </td>
  380. </tr>
  381. </table>
  382. </td>
  383. </tr>
  384. <tr>
  385. <td colspan="4" class="bline">
  386. <table width="900" cellspacing="0" cellpadding="0">
  387. <tr>
  388. <td width="90"> 发布时间:</td>
  389. <td width="260">
  390. <?php
  391. $nowtime = GetDateTimeMk(time());
  392. echo "<input type='text' name='pubdate' value='$nowtime'id='pubdate' class='datepicker' style='width:160px'>";
  393. ?>
  394. </td>
  395. <td width="90">浏览次数:</td>
  396. <td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>" style="width:160px"></td>
  397. </tr>
  398. </table>
  399. </td>
  400. </tr>
  401. </table>
  402. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  403. <tr>
  404. <td align="center" class="py-2">
  405. <button type="submit" class="btn btn-success">保存</button>
  406. <button type="button" onClick="location.reload();" class="btn btn-success">重置</button>
  407. </td>
  408. </tr>
  409. </table>
  410. </form>
  411. <div id="__tmpbody" style="display:none"></div>
  412. <script>InitPage();</script>
  413. </body>
  414. </html>