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

354 řádky
16KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改文档</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  11. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  12. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  13. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script>
  14. <script src="../static/web/js/jquery.min.js"></script>
  15. <script src="../static/web/js/webajax.js"></script>
  16. <script src="../static/web/js/moment.min.js"></script>
  17. <script src="../static/web/js/daterangepicker.js"></script>
  18. <script src="js/main.js"></script>
  19. <script src="js/handlers.js"></script>
  20. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  21. <script src="../static/web/js/cropper.min.js"></script>
  22. <style>table{border-collapse:inherit}</style>
  23. <script>
  24. var swfu = null;
  25. var arctype = 'article';
  26. function checkSubmit() {
  27. if (document.form1.title.value == '') {
  28. ShowMsg('文档标题不能为空');
  29. document.form1.title.focus();
  30. return false;
  31. }
  32. }
  33. </script>
  34. </head>
  35. <body>
  36. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3 mb-3">
  37. <tr>
  38. <td width="70%"><i class="fa fa-map"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> &gt; 修改文档</td>
  39. <td width="30%" align="right"><?php echo $backurl;?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td>
  40. </tr>
  41. </table>
  42. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1">
  43. <tr>
  44. <td>
  45. <table cellpadding="0" cellspacing="0">
  46. <tr>
  47. <td width="80" height="28" align="center" bgcolor="#fbfce2">常规信息</td>
  48. </tr>
  49. </table>
  50. </td>
  51. </tr>
  52. </table>
  53. <form name="form1" action="article_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  54. <input type="hidden" name="dopost" value="save">
  55. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  56. <input type="hidden" name="id" value="<?php echo $aid?>">
  57. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" class="biz-border">
  58. <tr>
  59. <td class="bline">
  60. <table width="900" cellspacing="0" cellpadding="0">
  61. <tr>
  62. <td width="90"> 文档标题:</td>
  63. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title'];?>" style="width:380px"></td>
  64. <td width="90">简略标题:</td>
  65. <td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" style="width:160px"></td>
  66. </tr>
  67. </table>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="bline">
  72. <table width="900" cellspacing="0" cellpadding="0">
  73. <tr>
  74. <td width="90"> 自定义属性:</td>
  75. <td>
  76. <?php
  77. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  78. $dsql->Execute();
  79. while($trow = $dsql->GetObject())
  80. {
  81. if ($trow->att=='j')
  82. {
  83. $jumpclick = " onclick='ShowUrlTr()'";
  84. } else {
  85. $jumpclick = '';
  86. }
  87. if (preg_match("#".$trow->att."#", $arcRow['flag']))
  88. {
  89. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  90. } else {
  91. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
  92. }
  93. }
  94. ?>
  95. </td>
  96. </tr>
  97. </table>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  102. <table width="900" cellspacing="0" cellpadding="0">
  103. <tr>
  104. <td width="90"> 跳转网址:</td>
  105. <td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td>
  106. </tr>
  107. </table>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="bline">
  112. <table width="900" cellspacing="0" cellpadding="0">
  113. <tr>
  114. <td width="90"> Tag标签:</td>
  115. <td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" style="width:300px">(','号分开,单个标签小于12字节)</td>
  116. <td width="60">权重:</td>
  117. <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" style="width:60px">(越小越靠前)</td>
  118. </tr>
  119. </table>
  120. </td>
  121. </tr>
  122. <tr id="pictable">
  123. <td class="bline">
  124. <table width="900" cellspacing="0" cellpadding="0">
  125. <tr>
  126. <td width="90"> 缩略图:</td>
  127. <td>
  128. <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px">
  129. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="np"> 远程</label>
  130. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  131. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  132. <button id="btnClearAll" type="button" class="btn btn-success btn-smete">清空</button>
  133. </td>
  134. <td align="center"><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td>
  135. </tr>
  136. </table>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td class="bline">
  141. <table width="900" cellspacing="0" cellpadding="0">
  142. <tr>
  143. <td width="90"> 来源:</td>
  144. <td width="260">
  145. <input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" style="width:160px">
  146. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  147. </td>
  148. <td width="60">作者:</td>
  149. <td>
  150. <input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px">
  151. <button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button>
  152. </td>
  153. </tr>
  154. </table>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="bline">
  159. <table width="900" cellspacing="0" cellpadding="0">
  160. <tr>
  161. <td width="90"> 发布栏目:</td>
  162. <td width="360">
  163. <?php
  164. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  165. echo "<select name='typeid' id='typeid' style='width:160px'>";
  166. if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>";
  167. echo $typeOptions;
  168. echo "</select>";
  169. ?>
  170. <i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>')" title="快捷选择" style="cursor:pointer"></i>
  171. </td>
  172. <td width="90">消费金币:</td>
  173. <td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td>
  174. </tr>
  175. </table>
  176. </td>
  177. </tr>
  178. <?php if ($cfg_need_typeid2=='Y') {?>
  179. <tr>
  180. <td class="bline">
  181. <table width="900" cellspacing="0" cellpadding="0">
  182. <tr>
  183. <td width="90"> 副栏目:</td>
  184. <td>
  185. <span id="typeid2ct"></span>
  186. <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0'?'':$arcRow['typeid2']);?>" style="width:160px">
  187. <i class='btn btn-sm fa fa-search' style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>')" title="选择副栏目"></i>
  188. </td>
  189. </tr>
  190. </table>
  191. </td>
  192. </tr>
  193. <?php }?>
  194. <tr>
  195. <td class="bline">
  196. <table width="900" cellspacing="0" cellpadding="0">
  197. <tr>
  198. <td width="90"> 关键词:</td>
  199. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td>
  200. </tr>
  201. </table>
  202. </td>
  203. </tr>
  204. <tr>
  205. <td class="bline">
  206. <table width="900" cellspacing="0" cellpadding="0">
  207. <tr>
  208. <td width="90"> 描述:</td>
  209. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td>
  210. </tr>
  211. </table>
  212. </td>
  213. </tr>
  214. <tr>
  215. <td><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?></td>
  216. </tr>
  217. <tr>
  218. <td class="bline">
  219. <table width="900" cellspacing="0" cellpadding="0">
  220. <tr>
  221. <td width="90"> 附加选项:</td>
  222. <td>
  223. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>> 下载远程图片和资源</label>
  224. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> 提取第一个图片为缩略图</label>
  225. </td>
  226. </tr>
  227. </table>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td class="bline"><?php GetEditor("body",stripcslashes($addRow['body']),450);?></td>
  232. <td id="mPic" style="display:none"></td>
  233. </tr>
  234. <tr>
  235. <td class="bline">
  236. <table width="900" cellspacing="0" cellpadding="0">
  237. <tr>
  238. <td width="90"> 评论选项:</td>
  239. <td width="260">
  240. <label><input type="radio" name="notpost" class="np" value="0" <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label>
  241. <label><input type="radio" name="notpost" class="np" value="1" <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label>
  242. </td>
  243. <td width="90">发布选项:</td>
  244. <td>
  245. <label><input name="ishtml" type="radio" class="np" value="1" <?php if ($arcRow["ismake"]!=-1) echo " checked";?>> 生成网页</label>
  246. <label><input type="radio" name="ishtml" class="np" value="0" <?php if ($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label>
  247. </td>
  248. </tr>
  249. </table>
  250. </td>
  251. </tr>
  252. <tr>
  253. <td class="bline">
  254. <table width="900" cellspacing="0" cellpadding="0">
  255. <tr>
  256. <td width="90"> 文档排序:</td>
  257. <td width="260">
  258. <select name="sortup" id="sortup" style="width:160px">
  259. <?php
  260. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  261. echo "<option value='0'>正常排序</option>";
  262. if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  263. ?>
  264. <option value="7">置顶一周</option>
  265. <option value="30">置顶一个月</option>
  266. <option value="90">置顶三个月</option>
  267. <option value="180">置顶半年</option>
  268. <option value="360">置顶一年</option>
  269. </select>
  270. </td>
  271. <td width="90">标题颜色:</td>
  272. <td>
  273. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  274. <button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button>
  275. </td>
  276. </tr>
  277. </table>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td class="bline">
  282. <table width="900" cellspacing="0" cellpadding="0">
  283. <tr>
  284. <td width="90"> 阅读权限:</td>
  285. <td width="260">
  286. <select name="arcrank" id="arcrank" style="width:160px">
  287. <option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option>
  288. <?php
  289. $urank = $cuserLogin->getUserRank();
  290. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  291. $dsql->Execute();
  292. while($row = $dsql->GetObject()){
  293. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  294. }
  295. ?>
  296. </select>
  297. </td>
  298. <td width="90">文件名称:</td>
  299. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  300. <td>
  301. <?php
  302. if (isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  303. {
  304. ?>
  305. 模板选择:
  306. <select name="templet" id="templet" style="width:160px">
  307. <?php
  308. foreach($cfg_tamplate_arr as $k=>$v)
  309. {
  310. $v = trim($v);
  311. echo ($v==$addRow['templet'] ? "<option value='$v' selected>$v</option>":"<option value='$v'>$v</option>");
  312. }
  313. ?>
  314. </select>
  315. <?php
  316. } else {
  317. echo "<input type='hidden' name='templet' value='{$addRow['templet']}'>";
  318. }
  319. ?>
  320. </td>
  321. </tr>
  322. </table>
  323. </td>
  324. </tr>
  325. <tr>
  326. <td class="bline">
  327. <table width="900" cellspacing="0" cellpadding="0">
  328. <tr>
  329. <td width="90"> 更新时间:</td>
  330. <td width="260"><?php
  331. $nowtime = GetDateTimeMk(time());
  332. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>";
  333. ?>
  334. </td>
  335. <td width="90">浏览次数:</td>
  336. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" style="width:160px"></td>
  337. </tr>
  338. </table>
  339. </td>
  340. </tr>
  341. </table>
  342. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" class="biz-border border-top-0 mb-3">
  343. <tr>
  344. <td align="center" class="py-2">
  345. <button type="submit" class="btn btn-success btn-sm">保存</button>
  346. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  347. </td>
  348. </tr>
  349. </table>
  350. <script>InitPage();</script>
  351. </form>
  352. <div id="__tmpbody" style="display:none"></div>
  353. </body>
  354. </html>