国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

archives_edit.htm 16KB

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