国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

archives_edit.htm 18KB

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