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

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