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

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