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

437 lines
19KB

  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. img {
  12. vertical-align: baseline;
  13. }
  14. input,
  15. select {
  16. height: auto !important;
  17. }
  18. </style>
  19. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  20. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  21. <link href="css/base.css" rel="stylesheet" type="text/css">
  22. <script src="../static/js/jquery.js"></script>
  23. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  24. <script src="../static/js/bootstrap.bundle.js"></script>
  25. <script language="javascript" src="js/main.js"></script>
  26. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  27. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  28. <script type="text/javascript" src="../static/js/daterangepicker.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. function checkSubmit() {
  34. if (document.form1.title.value == "") {
  35. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空!");
  36. document.form1.title.focus();
  37. return false;
  38. }
  39. }
  40. </script>
  41. </head>
  42. <body topmargin="8">
  43. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  44. <tr>
  45. <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a
  46. href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a>
  47. &gt;&gt; 更改文档</td>
  48. <td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-secondary btn-sm">栏目管理</a>&nbsp;</td>
  49. </tr>
  50. </table>
  51. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  52. <tr>
  53. <td colspan="2">
  54. <table border="0" cellpadding="0" cellspacing="0">
  55. <tr>
  56. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  57. <td width="84" align="center" background="images/itemnote2.gif"><a href="#"
  58. onClick="ShowItem2()"><u>高级参数</u></a></td>
  59. </tr>
  60. </table>
  61. </td>
  62. </tr>
  63. </table>
  64. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  65. <tr>
  66. <td colspan="2">
  67. <table height="24" border="0" cellpadding="0" cellspacing="0">
  68. <tr>
  69. <td width="84" align="center" background="images/itemnote2.gif"><a href="#"
  70. onClick="ShowItem1()"><u>常规信息</u></a>&nbsp;</td>
  71. <td width="84" align="center" background="images/itemnote1.gif">高级参数</td>
  72. </tr>
  73. </table>
  74. </td>
  75. </tr>
  76. </table>
  77. <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post"
  78. onSubmit="return checkSubmit();">
  79. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  80. <input type="hidden" name="id" value="<?php echo $aid?>" />
  81. <input type="hidden" name="dopost" value="save" />
  82. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  83. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset"
  84. style="border:1px solid #cfcfcf;background:#ffffff;">
  85. <tr>
  86. <td height="24" class="bline">
  87. <table width="800" border="0" cellspacing="0" cellpadding="0">
  88. <tr>
  89. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  90. <td width='408'><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>"
  91. style="width:388px"> </td>
  92. <td width="90">&nbsp;简略标题:</td>
  93. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px"
  94. value="<?php echo $arcRow['shorttitle']; ?>"> </td>
  95. </tr>
  96. </table>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td width="400%" height="24" class="bline">
  101. <table width="800" border="0" cellspacing="0" cellpadding="0">
  102. <tr>
  103. <td width="100">&nbsp;自定义属性:</td>
  104. <td>
  105. <?php
  106. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  107. $dsql->Execute();
  108. while($trow = $dsql->GetObject())
  109. {
  110. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  111. else $jumpclick = '';
  112. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  113. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' /> {$trow->attname}[{$trow->att}]</label> ";
  114. else
  115. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> ";
  116. }
  117. ?>
  118. </td>
  119. </tr>
  120. </table>
  121. </td>
  122. </tr>
  123. <tr>
  124. <td height="24" class="bline" id="redirecturltr"
  125. style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  126. <table width="800" border="0" cellspacing="0" cellpadding="0">
  127. <tr>
  128. <td width="90">&nbsp;跳转网址:</td>
  129. <td>
  130. <input name="redirecturl" type="text" id="redirecturl" style="width:300px"
  131. value="<?php echo $addRow['redirecturl']; ?>" />
  132. </td>
  133. </tr>
  134. </table>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td width="400%" height="24" class="bline">
  139. <table width="800" border="0" cellspacing="0" cellpadding="0">
  140. <tr>
  141. <td width="90">&nbsp;Tag标签:</td>
  142. <td>
  143. <input name="tags" type="text" id="tags" value="<?php echo $tags; ?>"
  144. style="width:300px" />(','号分开,单个标签小于12字节)
  145. </td>
  146. <td width="40">权重:</td>
  147. <td width="141"><input name="weight" type="text" id="weight" style="width:50px"
  148. value="<?php echo $arcRow['weight'];?>" />
  149. (越小越靠前)</td>
  150. </tr>
  151. </table>
  152. </td>
  153. </tr>
  154. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  155. <td height="24" class="bline">
  156. <table width="800" border="0" cellspacing="0" cellpadding="0">
  157. <tr>
  158. <td width="90" height="81">
  159. &nbsp;缩 略 图:<br />
  160. &nbsp; </td>
  161. <td width="600">
  162. <input name="picname" type="text" id="picname" style="width:300px"
  163. value="<?php echo $arcRow["litpic"]?>"> <button class="btn btn-secondary" type="button" name="Submit"
  164. style="width:70px" onClick="SelectImage('form1.picname','');">浏览...</button>
  165. <label><input type='checkbox' class='np' name='ddisremote' value='1'>
  166. 远程</label>
  167. <span class="btn btn-secondary fileinput-button">
  168. <i class="glyphicon glyphicon-plus"></i>
  169. 选择图片
  170. <input type="file" name="files[]" id="iptAddImages">
  171. </span>
  172. <button id="btnClearAll" type="button" class="btn btn-secondary delete">
  173. <i class="fa fa-trash-o"></i>
  174. <span>清空</span>
  175. </button>
  176. </td>
  177. <td align="center">
  178. <img id="litPic"
  179. src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "../static/defaultpic.gif";?>"
  180. style="height: 80px">
  181. </td>
  182. </tr>
  183. </table>
  184. </td>
  185. </tr>
  186. <?php if($cInfos['dfcid']>0)
  187. {
  188. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  189. echo "<input type='hidden' name='typeid2' value='' />\r\n";
  190. }
  191. else
  192. {
  193. ?>
  194. <tr>
  195. <td height="24" class="bline">
  196. <table width="800" border="0" cellspacing="0" cellpadding="0">
  197. <tr>
  198. <td width="100">&nbsp;文档主栏目:</td>
  199. <td>
  200. <?php
  201. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  202. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  203. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
  204. echo $typeOptions;
  205. echo "</select>";
  206. ?>
  207. <img src='images/menusearch.gif' style='cursor:pointer'
  208. onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  209. </td>
  210. </tr>
  211. </table>
  212. </td>
  213. </tr>
  214. <?php
  215. if($cfg_need_typeid2=='Y') {
  216. ?>
  217. <tr>
  218. <td height="24" class="bline">
  219. <table width="800" border="0" cellspacing="0" cellpadding="0">
  220. <tr>
  221. <td width="100">&nbsp;文档副栏目:</td>
  222. <td>
  223. <span id='typeid2ct'></span>
  224. <input type='text' name='typeid2' id='typeid2'
  225. value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  226. <img src='images/menusearch2.gif' style='cursor:pointer;'
  227. onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')"
  228. alt='选择副栏目' title='选择副栏目' />
  229. </td>
  230. </tr>
  231. </table>
  232. </td>
  233. </tr>
  234. <?php }} ?>
  235. <tr>
  236. <td>
  237. <?php
  238. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow);
  239. ?>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td width="400%" height="24">
  244. <table width="800" border="0" cellspacing="0" cellpadding="0">
  245. <tr>
  246. <td width="90">&nbsp;附加选项:</td>
  247. <td>
  248. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>>
  249. 下载远程图片和资源</label>
  250. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>>
  251. 提取第一个图片为缩略图</label> </td>
  252. </tr>
  253. </table>
  254. </td>
  255. </tr>
  256. </table>
  257. <!-- //高级参数 -->
  258. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset"
  259. style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  260. <tr>
  261. <td height="24" colspan="4" class="bline">
  262. <table width="800" border="0" cellspacing="0" cellpadding="0">
  263. <tr>
  264. <td width="90" height="22" width="240">&nbsp;评论选项:</td>
  265. <td width="250">
  266. <label><input type='radio' name='notpost' class='np' value='0'
  267. <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论</label>
  268. &nbsp;
  269. <label><input type='radio' name='notpost' class='np' value='1'
  270. <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label>
  271. </td>
  272. <td width="90">浏览次数:</td>
  273. <td>
  274. <input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' />
  275. </td>
  276. </tr>
  277. </table>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td height="24" class="bline">
  282. <table width="800" border="0" cellspacing="0" cellpadding="0">
  283. <tr>
  284. <td width="90">&nbsp;文档来源:</td>
  285. <td width="250">
  286. <input name="source" type="text" id="source" style="width:160" value="<?php echo $arcRow["source"]?>"
  287. size="16"> <button name="selsource" type="button" id="selsource" class="btn btn-secondary btn-sm">选择</button> </td>
  288. <td width="90">作 者:</td>
  289. <td>
  290. <input name="writer" type="text" id="writer" style="width:120px"
  291. value="<?php echo $arcRow["writer"]?>"> <button class="btn btn-secondary btn-sm" name="selwriter" type="button" id="selwriter"
  292. >选择</button> </td>
  293. </tr>
  294. </table>
  295. <script language='javascript'>InitPage();</script>
  296. </td>
  297. </tr>
  298. <tr>
  299. <td height="24" class="bline">
  300. <table width="800" border="0" cellspacing="0" cellpadding="0">
  301. <tr>
  302. <td width="90">&nbsp;文档排序:</td>
  303. <td width="250"> <select name="sortup" id="sortup" style="width:150">
  304. <?php
  305. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  306. echo "<option value='0'>正常排序</option>\r\n";
  307. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  308. ?>
  309. <option value="7">置顶一周</option>
  310. <option value="30">置顶一个月</option>
  311. <option value="90">置顶三个月</option>
  312. <option value="180">置顶半年</option>
  313. <option value="360">置顶一年</option>
  314. </select> </td>
  315. <td width="90">标题颜色:</td>
  316. <td><input name="color" type="text" id="color" style="width:120"
  317. value="<?php echo $arcRow["color"]?>">
  318. <button name="modcolor" type="button" id="modcolor" class="btn btn-secondary btn-sm"
  319. onClick="ShowColor(event,this)">选取</button></td>
  320. </tr>
  321. </table>
  322. </td>
  323. </tr>
  324. <tr>
  325. <td height="24" class="bline">
  326. <table width="800" border="0" cellspacing="0" cellpadding="0">
  327. <tr>
  328. <td width="90">&nbsp;阅读权限:</td>
  329. <td width="250"> <select name="arcrank" id="arcrank" style="width:150">
  330. <option value='<?php echo $arcRow["arcrank"]?>'>
  331. <?php echo $arcRow["rankname"]?> </option>
  332. <?php
  333. $urank = $cuserLogin->getUserRank();
  334. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  335. $dsql->Execute();
  336. while($row = $dsql->GetObject()){
  337. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  338. }
  339. ?>
  340. </select> </td>
  341. <td width="90">发布选项:</td>
  342. <td> <label><input name="ishtml" type="radio" class="np" value="1"
  343. <?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  344. 生成HTML</label>
  345. <label><input type="radio" name="ishtml" class="np" value="0"
  346. <?php if($arcRow["ismake"]==-1) echo " checked";?>>
  347. 仅动态浏览</label> </td>
  348. </tr>
  349. </table>
  350. </td>
  351. </tr>
  352. <tr>
  353. <td height="75" class="bline">
  354. <table width="800" border="0" cellspacing="0" cellpadding="0">
  355. <tr>
  356. <td width="90">&nbsp;更新时间:</td>
  357. <td width="250"><?php
  358. $nowtime = GetDateTimeMk(time());
  359. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
  360. ?>
  361. </td>
  362. <td width="92">消费金币:</td>
  363. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>"
  364. size="10"></td>
  365. </tr>
  366. </table>
  367. </td>
  368. </tr>
  369. <tr>
  370. <td height="24" class="bline">
  371. <table width="800" border="0" cellspacing="0" cellpadding="0">
  372. <tr>
  373. <td width="90" height="51">&nbsp;关键字:</td>
  374. <td><input type="text" name="keywords" id="keywords" style="width:60%"
  375. value="<?php echo $arcRow["keywords"]?>" /></td>
  376. </tr>
  377. </table>
  378. </td>
  379. </tr>
  380. <tr>
  381. <td height="24" class="bline">
  382. <table width="800" border="0" cellspacing="0" cellpadding="0">
  383. <tr>
  384. <td width="90" height="51">&nbsp;文档摘要:</td>
  385. <td><textarea name="description" rows="3" id="description"
  386. style="width:60%"><?php echo $arcRow["description"]?></textarea></td>
  387. </tr>
  388. </table>
  389. </td>
  390. </tr>
  391. <tr>
  392. <td height="24" colspan="4">
  393. <table width="800" border="0" cellspacing="0" cellpadding="0">
  394. <tr>
  395. <td width="120">&nbsp;自定义文件名:</td>
  396. <td width="449"><input type="text" name="filename" id="filename"
  397. value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td>
  398. <td width="261">&nbsp;</td>
  399. </tr>
  400. </table>
  401. </td>
  402. </tr>
  403. </table>
  404. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF"
  405. style="border:1px solid #cfcfcf;border-top:none;" class="mb-3">
  406. <tr>
  407. <td height="35">
  408. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  409. <tr>
  410. <td width="17%">&nbsp;</td>
  411. <td width="83%">
  412. <table width="214" border="0" cellspacing="0" cellpadding="0">
  413. <tr>
  414. <td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td>
  415. <td width="99" class="py-3">
  416. <button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button>
  417. </td>
  418. </tr>
  419. </table>
  420. </td>
  421. </tr>
  422. </table>
  423. </td>
  424. </tr>
  425. </table>
  426. </form>
  427. </body>
  428. </html>