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

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