国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

436 rindas
19KB

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