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

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