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

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