国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

525 рядки
23KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>增加文章</title>
  7. <style type="text/css">
  8. body {
  9. background-image: url(images/allbg.gif);
  10. }
  11. .multipic {
  12. border: 1px dashed #FC6;
  13. }
  14. .albCt {
  15. border-bottom: 1px dashed #FC0;
  16. margin-bottom: 10px;
  17. padding-bottom: 10px;
  18. }
  19. </style>
  20. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  21. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  22. <link href="css/base.css" rel="stylesheet" type="text/css">
  23. <script language="javascript" src="../static/js/jquery.js"></script>
  24. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  25. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  26. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  27. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  28. <script language='javascript' src="js/main.js"></script>
  29. <script type="text/javascript" src="js/handlers.js"></script>
  30. <script src="../static/js/bootstrap.bundle.js"></script>
  31. <link rel="stylesheet" href="../static/css/jquery.fileupload.css">
  32. <link href="../static/css/cropper.min.css" rel="stylesheet">
  33. <script src="../static/js/cropper.min.js"></script>
  34. <script language="javascript">
  35. var arctype = 'article';
  36. function checkSubmit() {
  37. if (document.form1.title.value == '') {
  38. ShowMsg('文章标题不能为空!');
  39. return false;
  40. }
  41. if (document.form1.typeid.value == 0) {
  42. ShowMsg('请选择档案的主类别!');
  43. return false;
  44. }
  45. }
  46. </script>
  47. <style>
  48. .albCt img {
  49. cursor: pointer;
  50. }
  51. img {
  52. vertical-align: baseline;
  53. }
  54. input,
  55. select {
  56. height: auto !important;
  57. }
  58. </style>
  59. </head>
  60. <body topmargin="8">
  61. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  62. <tr>
  63. <td width="60%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a
  64. href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a>
  65. &gt;&gt; 发布文章</td>
  66. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a class="btn btn-secondary btn-sm"
  67. href="catalog_main.php">栏目管理</a> </td>
  68. </tr>
  69. </table>
  70. <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  71. <tr>
  72. <td colspan="2">
  73. <table width="800" border="0" cellpadding="0" cellspacing="0">
  74. <tr>
  75. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  76. <td><a href="#" class="btn btn-secondary btn-sm" onClick="ShowHide('getone')">单页采集...</a></td>
  77. </tr>
  78. </table>
  79. </td>
  80. </tr>
  81. </table>
  82. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBFCE2" id="getone"
  83. class="table table-borderless" style="<?php if(empty($geturl)) echo 'display:none'; ?>;margin:0;">
  84. <form name="getonepage" action="article_add.php" method="get">
  85. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  86. <input type="hidden" name="cid" value="<?php echo $cid; ?>" />
  87. <tr>
  88. <td colspan="2">
  89. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  90. <tr>
  91. <td width="220" height="31"><strong><a name="downurl"></a>&nbsp;采集单个网页-URL:</strong></td>
  92. <td width="360" align="center"><input name="geturl" type="text" id="geturl" style="width:290px"
  93. value="<?php echo $geturl; ?>" /></td>
  94. <td>
  95. <button type="submit" class='btn btn-secondary btn-sm' name="Submit3">抓取</button>
  96. &nbsp;
  97. <button type="button" class='btn btn-secondary btn-sm' name="setrule"
  98. onClick="OpenMyWinCoOne('article_coonepage_rule.php')">规则管理</button></td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. </form>
  104. </table>
  105. <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post"
  106. onSubmit="return checkSubmit()">
  107. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  108. <input type="hidden" name="dopost" value="save" />
  109. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  110. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset"
  111. style="border:1px solid #cfcfcf;background:#ffffff;">
  112. <tr>
  113. <td height="24" colspan="5" class="bline">
  114. <table width="800" border="0" cellspacing="0" cellpadding="0">
  115. <tr>
  116. <td width="90">&nbsp;文章标题:</td>
  117. <td width='408'><input name="title" type="text" id="title" value="<?php echo $title; ?>"
  118. style="width:388px" /></td>
  119. <td width="90">&nbsp;简略标题:</td>
  120. <td>
  121. <input name="shorttitle" type="text" id="shorttitle" style="width:150px" />
  122. </td>
  123. </tr>
  124. </table>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td height="24" colspan="5" class="bline">
  129. <table width="800" border="0" cellspacing="0" cellpadding="0">
  130. <tr>
  131. <td width="100">&nbsp;自定义属性:</td>
  132. <td align="left">
  133. <?php
  134. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  135. $dsql->Execute();
  136. while($trow = $dsql->GetObject())
  137. {
  138. if($trow->att=='j')
  139. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> ";
  140. else
  141. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
  142. }
  143. ?>
  144. </td>
  145. </tr>
  146. </table>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td height="24" colspan="5" class="bline" id="redirecturltr" style="display:none">
  151. <table width="800" border="0" cellspacing="0" cellpadding="0">
  152. <tr>
  153. <td width="90">&nbsp;跳转网址:</td>
  154. <td>
  155. <input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" />
  156. </td>
  157. </tr>
  158. </table>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td width="400%" height="24" colspan="2" class="bline">
  163. <table width="800" border="0" cellspacing="0" cellpadding="0">
  164. <tr>
  165. <td width="90">&nbsp;TAG标签:</td>
  166. <td><input name="tags" type="text" id="tags" value="" style="width:300px"
  167. onChange="$Obj('keywords').value=this.value;" />(','号分开,单个标签小于12字节)</td>
  168. <td width="47">权重:</td>
  169. <td><input name="weight" type="text" id="weight" style="width:50px"
  170. value="<?php echo $maxWright['cc'];?>" />(越小越靠前)</td>
  171. </tr>
  172. </table>
  173. </td>
  174. </tr>
  175. <tr id="pictable">
  176. <td height="24" colspan="5" class="bline">
  177. <table width="800" border="0" cellspacing="0" cellpadding="0">
  178. <tr>
  179. <td width="90"> &nbsp;缩 略 图:</td>
  180. <td width="560">
  181. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  182. <tr>
  183. <td height="30">
  184. <input name="picname" type="text" id="picname" style="width:240px" />
  185. <button type="button" name="Submit2" style="margin-left:8px;"
  186. onClick="SelectImage('form1.picname','small');" class='btn btn-secondary btn-sm'>站内选择</button>
  187. <label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label>
  188. <span class="btn btn-secondary btn-sm fileinput-button">
  189. <i class="glyphicon glyphicon-plus"></i>
  190. 选择图片
  191. <input type="file" name="files[]" id="iptAddImages">
  192. </span>
  193. <button id="btnClearAll" type="button" class="btn btn-secondary btn-sm delete">
  194. <i class="fa fa-trash-o"></i>
  195. <span>清空</span>
  196. </button>
  197. </td>
  198. </tr>
  199. </table>
  200. </td>
  201. <td width="150" align="center">
  202. <img id="litPic" src="../static/defaultpic.gif" style="height: 80px">
  203. </td>
  204. </tr>
  205. </table>
  206. </td>
  207. </tr>
  208. <tr>
  209. <td height="24" colspan="5" class="bline">
  210. <table width="800" border="0" cellspacing="0" cellpadding="0">
  211. <tr>
  212. <td width="90">&nbsp;文章来源:</td>
  213. <td width="240">
  214. <input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>"
  215. size="16" />
  216. <button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button></td>
  217. <td width="90">作 者:</td>
  218. <td>
  219. <input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $writer; ?>" />
  220. <button name="selwriter" type="button" id="selwriter" class="btn btn-secondary btn-sm">选择</button>
  221. </td>
  222. </tr>
  223. </table>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td height="24" colspan="5" class="bline">
  228. <table width="800" border="0" cellspacing="0" cellpadding="0">
  229. <tr>
  230. <td width="100">&nbsp;文章主栏目:</td>
  231. <td>
  232. <span id='typeidct'>
  233. <?php
  234. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  235. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  236. echo "<option value='0'>请选择栏目...</option>\r\n";
  237. echo $typeOptions;
  238. echo "</select>";
  239. ?></span>
  240. <img src='images//menusearch.gif' style='cursor:pointer;'
  241. onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  242. &nbsp;
  243. <?php
  244. if($cfg_need_typeid2=='Y')
  245. {
  246. echo "<a href='javascript:AddTypeid2();' class='btn btn-secondary btn-sm'>选择副栏目</a>";
  247. }
  248. ?>
  249. </td>
  250. </tr>
  251. </table>
  252. </td>
  253. </tr>
  254. <tr id='typeid2tr' style='display:none'>
  255. <td height="24" colspan="5" class="bline">
  256. <table width="800" border="0" cellspacing="0" cellpadding="0">
  257. <tr>
  258. <td width="90">&nbsp;文章副栏目:</td>
  259. <td>
  260. <span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value=''
  261. style='width:200px;' />
  262. <img src='images/menusearch2.gif' style='cursor:pointer;'
  263. onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' />
  264. </td>
  265. </tr>
  266. </table>
  267. </td>
  268. </tr>
  269. <tr>
  270. <td height="24" colspan="5" class="bline">
  271. <table width="800" border="0" cellspacing="0" cellpadding="0">
  272. <tr>
  273. <td width="90">&nbsp;关键字:</td>
  274. <td width="448"><input type='text' name="keywords" id="keywords" style="width:80%"
  275. value="<?php echo $keywords; ?>" /> <button type="button" name="Submit" style="width:56;height:20"
  276. onClick="SelectKeywords('form1.keywords');" class='btn btn-secondary btn-sm'>浏览...</button></td>
  277. <td><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey"
  278. value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?> />
  279. 自动获取,手动填写用","分开</label><br />
  280. </td>
  281. </tr>
  282. </table>
  283. </td>
  284. </tr>
  285. <tr>
  286. <td height="24" colspan="5" class="bline">
  287. <table width="800" border="0" cellspacing="0" cellpadding="0">
  288. <tr>
  289. <td width="90">&nbsp;内容摘要:</td>
  290. <td width="449"><textarea name="description" rows="5" id="description"
  291. style="width:80%;height:50px"><?php echo $description; ?></textarea></td>
  292. <td width="261">&nbsp;</td>
  293. </tr>
  294. </table>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td colspan="2"><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td>
  299. </tr>
  300. <tr>
  301. <td height="28" colspan="2" bgcolor="#F9FCEF" class="bline2">
  302. <div style='float:left;line-height:28px;'>&nbsp;<strong>文章内容:</strong></div>
  303. <div style='float:right;;padding-right:8px'>
  304. <button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button>
  305. </div>
  306. <div style='float:right;padding-right:8px'>
  307. <button type="submit" class="btn btn-secondary">保存</button>
  308. </div>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td width="100%" height="24" colspan="2" class="bline">
  313. <table width="800" border="0" cellspacing="0" cellpadding="0">
  314. <tr>
  315. <td width="90">&nbsp;附加选项:</td>
  316. <td>
  317. <label><input name="remote" type="checkbox" class="np" id="remote" value="1"
  318. <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> />
  319. 下载远程图片和资源</label>
  320. <label><input name="dellink" type="checkbox" class="np" id="dellink" value="1"
  321. <?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> />
  322. 删除非站内链接 </label><a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a>
  323. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1"
  324. <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> />
  325. 提取第一个图片为缩略图</label>
  326. <label><input type='checkbox' name='needwatermark' value='1' class='np'
  327. <?php if($photo_markup=='1') echo "checked"; ?> />
  328. 图片是否加水印</label>
  329. </td>
  330. </tr>
  331. </table>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td width="100%" height="24" colspan="2" class="bline">
  336. <table width="800" border="0" cellspacing="0" cellpadding="0">
  337. <tr>
  338. <td width="90">&nbsp;分页方式:</td>
  339. <td>
  340. <label><input name="sptype" type="radio" class="np" value="hand"
  341. <?php if($cfg_arcautosp=='N') echo " checked='1' "?> />
  342. 手动</label>
  343. <label><input type="radio" name="sptype" value="auto" class="np"
  344. <?php if($cfg_arcautosp=='Y') echo " checked='1' "?> />
  345. 自动</label> 大小:
  346. <input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" size="6" /> K
  347. (分页符为: <font color="#FF0000">#p#分页标题#e# </font>)
  348. </td>
  349. </tr>
  350. </table>
  351. </td>
  352. </tr>
  353. <tr>
  354. <td width="100%" id="arcBody">
  355. <?php
  356. GetEditor("body",$body,450);
  357. ?>
  358. </td>
  359. <td width="255" align="center" valign="top" bgcolor="#FFFFCC" id="mPic" style="display:none"></td>
  360. </tr>
  361. </table>
  362. <!-- //高级参数 -->
  363. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" style="margin-top:10px;">
  364. <tr>
  365. <td>
  366. <table border="0" cellpadding="0" cellspacing="0">
  367. <tr>
  368. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;<a
  369. href='javascript:ShowHideT("adset")'><u>高级参数↑</u></a></td>
  370. </tr>
  371. </table>
  372. </td>
  373. </tr>
  374. </table>
  375. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset"
  376. style="border:1px solid #cfcfcf;background:#ffffff;">
  377. <tr>
  378. <td height="24" colspan="4" class="bline">
  379. <table width="800" border="0" cellspacing="0" cellpadding="0">
  380. <tr>
  381. <td width="90" height="22">&nbsp;评论选项:</td>
  382. <td width="240">
  383. <label><input type='radio' name='notpost' class='np' value='0'
  384. <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论 </label>
  385. &nbsp;
  386. <label><input type='radio' name='notpost' class='np' value='1'
  387. <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论 </label>
  388. </td>
  389. <td width="90">浏览次数:</td>
  390. <td>
  391. <input type='text' name='click'
  392. value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>'
  393. style='width:100px;' />
  394. </td>
  395. </tr>
  396. </table>
  397. </td>
  398. </tr>
  399. <tr>
  400. <td height="24" colspan="4" class="bline">
  401. <table width="800" border="0" cellspacing="0" cellpadding="0">
  402. <tr>
  403. <td width="90" height="22">&nbsp;文章排序:</td>
  404. <td width="240">
  405. <select name="sortup" id="sortup" style="width:150px">
  406. <option value="0" selected>默认排序</option>
  407. <option value="7">置顶一周</option>
  408. <option value="30">置顶一个月</option>
  409. <option value="90">置顶三个月</option>
  410. <option value="180">置顶半年</option>
  411. <option value="360">置顶一年</option>
  412. </select> </td>
  413. <td width="90">标题颜色:</td>
  414. <td>
  415. <input name="color" type="text" id="color" style="width:120px" />
  416. <button class="btn btn-secondary btn-sm" name="modcolor" type="button" id="modcolor"
  417. onClick="ShowColor(event, this)">选取</button>
  418. </td>
  419. </tr>
  420. </table>
  421. </td>
  422. </tr>
  423. <tr>
  424. <td height="24" colspan="4" class="bline">
  425. <table width="800" border="0" cellspacing="0" cellpadding="0">
  426. <tr>
  427. <td width="90">&nbsp;阅读权限:</td>
  428. <td width="240"> <select name="arcrank" id="arcrank" style="width:150px">
  429. <?php
  430. $urank = $cuserLogin->getUserRank();
  431. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  432. $dsql->Execute();
  433. while($row = $dsql->GetObject())
  434. {
  435. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  436. }
  437. ?>
  438. </select> </td>
  439. <td width="90">消费金币:</td>
  440. <td>
  441. <input name="money" type="text" id="money" value="0" size="10" /> </td>
  442. </tr>
  443. </table>
  444. </td>
  445. </tr>
  446. <tr>
  447. <td height="24" colspan="4" class="bline">
  448. <table width="800" border="0" cellspacing="0" cellpadding="0">
  449. <tr>
  450. <td width="90">&nbsp;发布时间:</td>
  451. <td width="241">
  452. <?php
  453. $nowtime = GetDateTimeMk(time());
  454. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
  455. ?>
  456. </td>
  457. <td width="90">发布选项:</td>
  458. <td width="379">
  459. <label><input name="ishtml" type="radio" class="np" value="1" checked="1" />
  460. 生成HTML</label>
  461. <label><input type="radio" name="ishtml" class="np" value="0" />
  462. 仅动态浏览</label> </td>
  463. </tr>
  464. </table>
  465. </td>
  466. </tr>
  467. <tr>
  468. <td height="24" colspan="4">
  469. <table width="800" border="0" cellspacing="0" cellpadding="0">
  470. <tr>
  471. <td width="109">&nbsp;自定义文件名:</td>
  472. <td width="351"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td>
  473. <td width="340">
  474. <?php
  475. if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  476. {
  477. ?>
  478. 随机选择模板:
  479. <select name='templet' id='templet' style='width:200px' size='1'>
  480. <?php
  481. $rndsel = mt_rand(1, count($cfg_tamplate_arr)) - 1;
  482. foreach($cfg_tamplate_arr as $k=>$v)
  483. {
  484. $v = trim($v);
  485. echo ($k==$rndsel ? "<option value='$v' selected>$v</option>\r\n" : "<option value='$v'>$v</option>\r\n");
  486. }
  487. ?>
  488. </select>
  489. <?php
  490. }
  491. else{
  492. echo "<input type='hidden' name='templet' value='' />";
  493. }
  494. ?>
  495. </td>
  496. </tr>
  497. </table>
  498. </td>
  499. </tr>
  500. </table>
  501. <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F9FCEF"
  502. style="border:1px solid #cfcfcf;border-top:none;" class="mb-3">
  503. <tr height="35">
  504. <td width="17%">&nbsp;</td>
  505. <td width="83%" class="py-3">
  506. <button type="submit" class="btn btn-secondary">保存</button>
  507. <button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button>
  508. </td>
  509. </tr>
  510. </table>
  511. </form>
  512. <div id="__tmpbody" style="display:none"></div>
  513. <script language='javascript'>InitPage();</script>
  514. </body>
  515. </html>