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

369 lines
17KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>增加商品</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script>
  10. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script language="javascript" src="../static/web/js/webajax.js"></script>
  12. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  13. <script type="text/javascript" src="../static/web/js/moment.min.js"></script>
  14. <script type="text/javascript" src="../static/web/js/daterangepicker.js"></script>
  15. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  16. <script language='javascript' src="js/main.js"></script>
  17. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  18. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  19. <script src="../static/web/js/cropper.min.js"></script>
  20. <script language="javascript">
  21. function checkSubmit() {
  22. if (document.form1.title.value == "") {
  23. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空");
  24. return false;
  25. }
  26. if (document.form1.typeid.value == 0) {
  27. ShowMsg("请选择档案的主栏目");
  28. return false;
  29. }
  30. }
  31. </script>
  32. <style>
  33. body{background:#fff}
  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%" height="30"><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="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规信息</td>
  52. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><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 height="26" cellpadding="0" cellspacing="0">
  63. <tr>
  64. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td>
  65. <td width="86" align="center" background="../static/web/img/itemnote1.gif">高级参数</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;background:#ffffff;">
  76. <tr>
  77. <td height="26" colspan="4" class="bline">
  78. <table width="900" cellspacing="0" cellpadding="0">
  79. <tr>
  80. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  81. <td width="400"><input name="title" type="text" id="title" value="" style="width:380px"></td>
  82. <td width="90">&nbsp;简略标题:</td>
  83. <td><input name="shorttitle" type="text" id="shorttitle" style="width:160px"></td>
  84. </tr>
  85. </table>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td height="26" colspan="4" class="bline">
  90. <table width="900" cellspacing="0" cellpadding="0">
  91. <tr>
  92. <td width="90">&nbsp;自定义属性:</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><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>";
  101. else
  102. echo "<label><input class='np' 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 height="26" colspan="4" class="bline" id="redirecturltr" style="display:none">
  112. <table width="900" cellspacing="0" cellpadding="0">
  113. <tr>
  114. <td width="90">&nbsp;跳转网址:</td>
  115. <td><input name="redirecturl" type="text" id="redirecturl" value="" style="width:300px"></td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td width="400%" height="26" class="bline">
  122. <table width="900" cellspacing="0" cellpadding="0">
  123. <tr>
  124. <td width="90">&nbsp;Tag标签:</td>
  125. <td><input name="tags" type="text" id="tags" value="" onChange="$Obj('keywords').value=this.value;" style="width:300px">(','号分开,单个标签小于12字节)</td>
  126. <td width="60">权重:</td>
  127. <td><input name="weight" type="text" 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 height="26" colspan="4" class="bline">
  134. <table width="900" cellspacing="0" cellpadding="0">
  135. <tr>
  136. <td width="90">&nbsp;缩略图:</td>
  137. <td>
  138. <input name="picname" type="text" id="picname" style="width:300px">
  139. <label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'>&nbsp;远程</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 id="btnClearAll" type="button" class="btn btn-success delete">清空</button>
  143. </td>
  144. <td align="center"><img id="litPic" src="../static/web/img/defaultpic.jpg" style="height:80px"></td>
  145. </tr>
  146. </table>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td height="26" colspan="4" class="bline">
  151. <table width="900" cellspacing="0" cellpadding="0">
  152. <tr>
  153. <td width="90">&nbsp;来源:</td>
  154. <td width="260">
  155. <input name="source" type="text" id="source" style="width:160px" value="" size="16">
  156. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  157. </td>
  158. <td width="60">作者:</td>
  159. <td>
  160. <input name="writer" type="text" id="writer" value="" style="width:160px">
  161. <button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button>
  162. </td>
  163. </tr>
  164. </table>
  165. <script language='javascript'>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 height="26" colspan="4" class="bline">
  176. <table width="900" cellspacing="0" cellpadding="0">
  177. <tr>
  178. <td width="90">&nbsp;发布栏目:</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='fa fa-search' aria-hidden='true' 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 name="money" type="text" 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 height="26" colspan="4" class="bline">
  205. <table width="900" cellspacing="0" cellpadding="0">
  206. <tr>
  207. <td width="90">&nbsp;副栏目:</td>
  208. <td>
  209. <span id='typeid2ct'></span>
  210. <input type='text' name='typeid2' id='typeid2' value='' style='width:160px'>
  211. <i class='fa fa-search' aria-hidden='true' 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 height="26" colspan="4" class="bline">
  219. <table width="900" cellspacing="0" cellpadding="0">
  220. <tr>
  221. <td width="90">&nbsp;关键词:</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 name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>&nbsp;自动获取,手动填写用","分开</label>
  228. </td>
  229. </tr>
  230. </table>
  231. </td>
  232. </tr>
  233. <tr>
  234. <td height="26" colspan="4" class="bline">
  235. <table width="900" cellspacing="0" cellpadding="0">
  236. <tr>
  237. <td width="90">&nbsp;描述:</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%" height="26">
  248. <table width="900" cellspacing="0" cellpadding="0">
  249. <tr>
  250. <td width="90">&nbsp;附加选项:</td>
  251. <td>
  252. <label><input name="remote" type="checkbox" class="np" id="remote" value="1"
  253. <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> />
  254. 下载远程图片和资源</label>
  255. <label><input name="dellink" type="checkbox" class="np" id="dellink" value="1"
  256. <?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> />
  257. 删除非站内链接</label>
  258. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1"
  259. <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> />
  260. 提取第一个图片为缩略图</label>
  261. <label><input type='checkbox' name='needwatermark' value='1' class='np'
  262. <?php if($photo_markup=='1') echo ' checked="1" '; ?> />
  263. 图片是否加水印</label>
  264. </td>
  265. </tr>
  266. </table>
  267. </td>
  268. </tr>
  269. <tr>
  270. <td><?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset'])); ?></td>
  271. </tr>
  272. </table>
  273. <!--高级参数-->
  274. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;background:#ffffff;display:none">
  275. <tr>
  276. <td height="26" colspan="4" class="bline">
  277. <table width="900" cellspacing="0" cellpadding="0">
  278. <tr>
  279. <td width="90" height="26" width="260">&nbsp;评论选项:</td>
  280. <td width="260">
  281. <label><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label>
  282. &nbsp;
  283. <label><input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label>
  284. </td>
  285. <td width="90">发布选项:</td>
  286. <td>
  287. <label><input name="ishtml" type="radio" class="np" value="1" checked>
  288. 生成HTML</label>
  289. <label><input type="radio" name="ishtml" class="np" value="0">
  290. 仅动态浏览</label>
  291. </td>
  292. </tr>
  293. </table>
  294. </td>
  295. </tr>
  296. <tr>
  297. <td height="26" colspan="4" class="bline">
  298. <table width="900" cellspacing="0" cellpadding="0">
  299. <tr>
  300. <td width="90" height="26">&nbsp;文档排序:</td>
  301. <td width="260">
  302. <select name="sortup" id="sortup" style="width:160px">
  303. <option value="0" selected>默认排序</option>
  304. <option value="7">置顶一周</option>
  305. <option value="30">置顶一个月</option>
  306. <option value="90">置顶三个月</option>
  307. <option value="180">置顶半年</option>
  308. <option value="360">置顶一年</option>
  309. </select> </td>
  310. <td width="90">标题颜色:</td>
  311. <td>
  312. <input name="color" type="text" id="color" style="width:160px">
  313. <button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button>
  314. </td>
  315. </tr>
  316. </table>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td height="26" colspan="4" class="bline">
  321. <table width="900" cellspacing="0" cellpadding="0">
  322. <tr>
  323. <td width="90">&nbsp;阅读权限:</td>
  324. <td width="260"><select name="arcrank" id="arcrank" style="width:160px">
  325. <?php
  326. $urank = $cuserLogin->getUserRank();
  327. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  328. $dsql->Execute();
  329. while($row = $dsql->GetObject())
  330. {
  331. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  332. }
  333. ?></select>
  334. </td>
  335. <td width="90">文件名称:</td>
  336. <td><input type="text" name="filename" id="filename" style="width:160px">(不包括后缀名如.html等)</td>
  337. </tr>
  338. </table>
  339. </td>
  340. </tr>
  341. <tr>
  342. <td height="26" colspan="4" class="bline">
  343. <table width="900" cellspacing="0" cellpadding="0">
  344. <tr>
  345. <td width="90">&nbsp;发布时间:</td>
  346. <td width="260">
  347. <?php
  348. $nowtime = GetDateTimeMk(time());
  349. echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>";
  350. ?>
  351. </td>
  352. <td width="90">浏览次数:</td>
  353. <td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(50,200):$cfg_arc_click); ?>" style="width:160px"></td>
  354. </tr>
  355. </table>
  356. </td>
  357. </tr>
  358. </table>
  359. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  360. <tr>
  361. <td align="center" class="py-3">
  362. <button type="submit" class="btn btn-success btn-sm">保存</button>
  363. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  364. </td>
  365. </tr>
  366. </table>
  367. </form>
  368. </body>
  369. </html>