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

444 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 language="javascript" src="js/main.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 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. function checkSubmit() {
  34. if (document.form1.title.value == "") {
  35. alert("<?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">[<u>栏目管理</u>]</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="90">&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 "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' />{$trow->attname}[{$trow->att}]";
  114. else
  115. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} />{$trow->attname}[{$trow->att}]";
  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="560">
  162. <input name="picname" type="text" id="picname" style="width:300px"
  163. value="<?php echo $arcRow["litpic"]?>"><input type="button" name="Submit" value="浏览..."
  164. style="width:70px" onClick="SelectImage('form1.picname','');">
  165. <input type='checkbox' class='np' name='ddisremote' value='1'>
  166. 远程
  167. <span class="btn btn-success 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-danger 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="90">&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. <?php
  210. if($cfg_remote_site=='Y')
  211. {
  212. ?>  
  213. <input name="isremote" type="checkbox" id="isremote" value="1"
  214. <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  215. }
  216. ?> </td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <?php
  222. if($cfg_need_typeid2=='Y') {
  223. ?>
  224. <tr>
  225. <td height="24" class="bline">
  226. <table width="800" border="0" cellspacing="0" cellpadding="0">
  227. <tr>
  228. <td width="90">&nbsp;文档副栏目:</td>
  229. <td>
  230. <span id='typeid2ct'></span>
  231. <input type='text' name='typeid2' id='typeid2'
  232. value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  233. <img src='images/menusearch2.gif' style='cursor:pointer;'
  234. onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')"
  235. alt='选择副栏目' title='选择副栏目' />
  236. </td>
  237. </tr>
  238. </table>
  239. </td>
  240. </tr>
  241. <?php }} ?>
  242. <tr>
  243. <td>
  244. <?php
  245. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow);
  246. ?>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td width="400%" height="24">
  251. <table width="800" border="0" cellspacing="0" cellpadding="0">
  252. <tr>
  253. <td width="90">&nbsp;附加选项:</td>
  254. <td>
  255. <input name="remote" type="checkbox" class="np" id="remote" value="1" checked>
  256. 下载远程图片和资源
  257. <input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" checked>
  258. 提取第一个图片为缩略图 </td>
  259. </tr>
  260. </table>
  261. </td>
  262. </tr>
  263. </table>
  264. <!-- //高级参数 -->
  265. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset"
  266. style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  267. <tr>
  268. <td height="24" colspan="4" class="bline">
  269. <table width="800" border="0" cellspacing="0" cellpadding="0">
  270. <tr>
  271. <td width="90" height="22" width="240">&nbsp;评论选项:</td>
  272. <td width="250">
  273. <input type='radio' name='notpost' class='np' value='0'
  274. <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> />允许评论
  275. &nbsp;
  276. <input type='radio' name='notpost' class='np' value='1'
  277. <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> />禁止评论
  278. </td>
  279. <td width="90">浏览次数:</td>
  280. <td>
  281. <input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' />
  282. </td>
  283. </tr>
  284. </table>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td height="24" class="bline">
  289. <table width="800" border="0" cellspacing="0" cellpadding="0">
  290. <tr>
  291. <td width="90">&nbsp;文档来源:</td>
  292. <td width="250">
  293. <input name="source" type="text" id="source" style="width:160" value="<?php echo $arcRow["source"]?>"
  294. size="16"><input name="selsource" type="button" id="selsource" value="选择"> </td>
  295. <td width="90">作 者:</td>
  296. <td>
  297. <input name="writer" type="text" id="writer" style="width:120px"
  298. value="<?php echo $arcRow["writer"]?>"><input name="selwriter" type="button" id="selwriter"
  299. value="选择"> </td>
  300. </tr>
  301. </table>
  302. <script language='javascript'>InitPage();</script>
  303. </td>
  304. </tr>
  305. <tr>
  306. <td height="24" class="bline">
  307. <table width="800" border="0" cellspacing="0" cellpadding="0">
  308. <tr>
  309. <td width="90">&nbsp;文档排序:</td>
  310. <td width="250"> <select name="sortup" id="sortup" style="width:150">
  311. <?php
  312. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  313. echo "<option value='0'>正常排序</option>\r\n";
  314. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  315. ?>
  316. <option value="7">置顶一周</option>
  317. <option value="30">置顶一个月</option>
  318. <option value="90">置顶三个月</option>
  319. <option value="180">置顶半年</option>
  320. <option value="360">置顶一年</option>
  321. </select> </td>
  322. <td width="90">标题颜色:</td>
  323. <td><input name="color" type="text" id="color" style="width:120"
  324. value="<?php echo $arcRow["color"]?>"><input name="modcolor" type="button" id="modcolor" value="选取"
  325. onClick="ShowColor(event,this)"></td>
  326. </tr>
  327. </table>
  328. </td>
  329. </tr>
  330. <tr>
  331. <td height="24" class="bline">
  332. <table width="800" border="0" cellspacing="0" cellpadding="0">
  333. <tr>
  334. <td width="90">&nbsp;阅读权限:</td>
  335. <td width="250"> <select name="arcrank" id="arcrank" style="width:150">
  336. <option value='<?php echo $arcRow["arcrank"]?>'>
  337. <?php echo $arcRow["rankname"]?> </option>
  338. <?php
  339. $urank = $cuserLogin->getUserRank();
  340. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  341. $dsql->Execute();
  342. while($row = $dsql->GetObject()){
  343. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  344. }
  345. ?>
  346. </select> </td>
  347. <td width="90">发布选项:</td>
  348. <td> <input name="ishtml" type="radio" class="np" value="1"
  349. <?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  350. 生成HTML
  351. <input type="radio" name="ishtml" class="np" value="0"
  352. <?php if($arcRow["ismake"]==-1) echo " checked";?>>
  353. 仅动态浏览 </td>
  354. </tr>
  355. </table>
  356. </td>
  357. </tr>
  358. <tr>
  359. <td height="75" class="bline">
  360. <table width="800" border="0" cellspacing="0" cellpadding="0">
  361. <tr>
  362. <td width="90">&nbsp;更新时间:</td>
  363. <td width="250"><?php
  364. $nowtime = GetDateTimeMk(time());
  365. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200\">";
  366. ?>
  367. </td>
  368. <td width="92">消费金币:</td>
  369. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>"
  370. size="10"></td>
  371. </tr>
  372. </table>
  373. </td>
  374. </tr>
  375. <tr>
  376. <td height="24" class="bline">
  377. <table width="800" border="0" cellspacing="0" cellpadding="0">
  378. <tr>
  379. <td width="90" height="51">&nbsp;关键字:</td>
  380. <td><input type="text" name="keywords" id="keywords" style="width:60%"
  381. value="<?php echo $arcRow["keywords"]?>" /></td>
  382. </tr>
  383. </table>
  384. </td>
  385. </tr>
  386. <tr>
  387. <td height="24" class="bline">
  388. <table width="800" border="0" cellspacing="0" cellpadding="0">
  389. <tr>
  390. <td width="90" height="51">&nbsp;文档摘要:</td>
  391. <td><textarea name="description" rows="3" id="description"
  392. style="width:60%"><?php echo $arcRow["description"]?></textarea></td>
  393. </tr>
  394. </table>
  395. </td>
  396. </tr>
  397. <tr>
  398. <td height="24" colspan="4">
  399. <table width="800" border="0" cellspacing="0" cellpadding="0">
  400. <tr>
  401. <td width="90">&nbsp;自定义文件名:</td>
  402. <td width="449"><input type="text" name="filename" id="filename"
  403. value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td>
  404. <td width="261">&nbsp;</td>
  405. </tr>
  406. </table>
  407. </td>
  408. </tr>
  409. </table>
  410. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF"
  411. style="border:1px solid #cfcfcf;border-top:none;">
  412. <tr>
  413. <td height="35">
  414. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  415. <tr>
  416. <td width="17%">&nbsp;</td>
  417. <td width="83%">
  418. <table width="214" border="0" cellspacing="0" cellpadding="0">
  419. <tr>
  420. <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60"
  421. height="22" class="np" border="0" style="cursor:pointer"></td>
  422. <td width="99">
  423. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();"
  424. style="cursor:pointer">
  425. </td>
  426. </tr>
  427. </table>
  428. </td>
  429. </tr>
  430. </table>
  431. </td>
  432. </tr>
  433. </table>
  434. </form>
  435. </body>
  436. </html>