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

331 lines
15KB

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