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

329 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. <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. <style>table{border-collapse:inherit}</style>
  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 if($cfg_need_typeid2=='Y') {?>
  177. <tr>
  178. <td class="bline">
  179. <table width="900" cellspacing="0" cellpadding="0">
  180. <tr>
  181. <td width="90"> 副栏目:</td>
  182. <td>
  183. <span id='typeid2ct'></span>
  184. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>' style='width:260px;'>
  185. <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>
  186. </td>
  187. </tr>
  188. </table>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td class="bline">
  193. <table width="900" cellspacing="0" cellpadding="0">
  194. <tr>
  195. <td width="90"> 关键词:</td>
  196. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td>
  197. </tr>
  198. </table>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td class="bline">
  203. <table width="900" cellspacing="0" cellpadding="0">
  204. <tr>
  205. <td width="90"> 描述:</td>
  206. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td>
  207. </tr>
  208. </table>
  209. </td>
  210. </tr>
  211. <?php
  212. }
  213. }
  214. ?>
  215. <tr>
  216. <td class="bline"><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow);?></td>
  217. </tr>
  218. <tr>
  219. <td class="bline">
  220. <table width="900" cellspacing="0" cellpadding="0">
  221. <tr>
  222. <td width="90"> 附加选项:</td>
  223. <td>
  224. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" ';?>>
  225. 下载远程图片和资源</label>
  226. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" ';?>>
  227. 提取第一个图片为缩略图</label>
  228. </td>
  229. </tr>
  230. </table>
  231. </td>
  232. </tr>
  233. <tr>
  234. <td class="bline">
  235. <table width="900" cellspacing="0" cellpadding="0">
  236. <tr>
  237. <td width="90" width="260"> 评论选项:</td>
  238. <td width="260">
  239. <label><input type='radio' name='notpost' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label>
  240. <label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label>
  241. </td>
  242. <td width="90">发布选项:</td>
  243. <td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  244. 生成网页</label>
  245. <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>>
  246. 仅动态浏览</label>
  247. </td>
  248. </tr>
  249. </table>
  250. </td>
  251. </tr>
  252. <tr>
  253. <td class="bline">
  254. <table width="900" cellspacing="0" cellpadding="0">
  255. <tr>
  256. <td width="90"> 文档排序:</td>
  257. <td width="260"><select name="sortup" id="sortup" style="width:160px">
  258. <?php
  259. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  260. echo "<option value='0'>正常排序</option>";
  261. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  262. ?>
  263. <option value="7">置顶一周</option>
  264. <option value="30">置顶一个月</option>
  265. <option value="90">置顶三个月</option>
  266. <option value="180">置顶半年</option>
  267. <option value="360">置顶一年</option>
  268. </select>
  269. </td>
  270. <td width="90">标题颜色:</td>
  271. <td>
  272. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  273. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  274. </td>
  275. </tr>
  276. </table>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td class="bline">
  281. <table width="900" cellspacing="0" cellpadding="0">
  282. <tr>
  283. <td width="90"> 阅读权限:</td>
  284. <td width="260"><select name="arcrank" id="arcrank" style="width:160px">
  285. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  286. <?php
  287. $urank = $cuserLogin->getUserRank();
  288. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  289. $dsql->Execute();
  290. while($row = $dsql->GetObject()){
  291. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  292. }
  293. ?>
  294. </select>
  295. </td>
  296. <td width="90">文件名称:</td>
  297. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  298. </tr>
  299. </table>
  300. </td>
  301. </tr>
  302. <tr>
  303. <td class="bline">
  304. <table width="900" cellspacing="0" cellpadding="0">
  305. <tr>
  306. <td width="90"> 更新时间:</td>
  307. <td width="260"><?php
  308. $nowtime = GetDateTimeMk(time());
  309. echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker' style='width:160px'>";
  310. ?>
  311. </td>
  312. <td width="90">浏览次数:</td>
  313. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" style="width:160px"></td>
  314. </tr>
  315. </table>
  316. </td>
  317. </tr>
  318. </table>
  319. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" class="biz-border border-top-0 mb-3">
  320. <tr>
  321. <td align="center" class="py-2">
  322. <button type="submit" class="btn btn-success btn-sm">保存</button>
  323. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  324. </td>
  325. </tr>
  326. </table>
  327. </form>
  328. </body>
  329. </html>