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

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