国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

554 satır
24KB

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