国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

archives_edit.htm 17KB

2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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 src="../static/web/js/jquery.min.js"></script>
  11. <script language="javascript" src="../static/web/js/webajax.js"></script>
  12. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  13. <script language="javascript" src="js/main.js"></script>
  14. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  15. <script type="text/javascript" src="../static/web/js/moment.min.js"></script>
  16. <script type="text/javascript" src="../static/web/js/daterangepicker.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. document.form1.title.focus();
  25. return false;
  26. }
  27. }
  28. </script>
  29. <style>
  30. body{background:#fff}
  31. img{vertical-align:baseline}
  32. table{border-collapse:separate}
  33. .form-control{display:inline-block;margin-right:10px;width:160px}
  34. </style>
  35. </head>
  36. <body>
  37. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  38. <tr>
  39. <td width="70%" height="30"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> &gt; 修改商品</td>
  40. <td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td>
  41. </tr>
  42. </table>
  43. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  44. <tr>
  45. <td colspan="2">
  46. <table border="0" cellpadding="0" cellspacing="0">
  47. <tr>
  48. <td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规信息</td>
  49. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td>
  50. </tr>
  51. </table>
  52. </td>
  53. </tr>
  54. </table>
  55. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  56. <tr>
  57. <td colspan="2">
  58. <table height="26" border="0" cellpadding="0" cellspacing="0">
  59. <tr>
  60. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td>
  61. <td width="86" align="center" background="../static/web/img/itemnote1.gif">高级参数</td>
  62. </tr>
  63. </table>
  64. </td>
  65. </tr>
  66. </table>
  67. <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  68. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  69. <input type="hidden" name="id" value="<?php echo $aid?>">
  70. <input type="hidden" name="dopost" value="save">
  71. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6;background:#ffffff;">
  72. <tr>
  73. <td height="26" class="bline">
  74. <table width="900" border="0" cellspacing="0" cellpadding="0">
  75. <tr>
  76. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  77. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td>
  78. <td width="90">&nbsp;简略标题:</td>
  79. <td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td width="400%" height="26" class="bline">
  86. <table width="900" border="0" cellspacing="0" cellpadding="0">
  87. <tr>
  88. <td width="90">&nbsp;自定义属性:</td>
  89. <td>
  90. <?php
  91. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  92. $dsql->Execute();
  93. while($trow = $dsql->GetObject())
  94. {
  95. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  96. else $jumpclick = '';
  97. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  98. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  99. else
  100. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> ";
  101. }
  102. ?>
  103. </td>
  104. </tr>
  105. </table>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td height="26" class="bline" id="redirecturltr"
  110. style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>">
  111. <table width="900" border="0" cellspacing="0" cellpadding="0">
  112. <tr>
  113. <td width="90">&nbsp;跳转网址:</td>
  114. <td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl']; ?>" style="width:300px"></td>
  115. </tr>
  116. </table>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td width="400%" height="26" class="bline">
  121. <table width="900" border="0" cellspacing="0" cellpadding="0">
  122. <tr>
  123. <td width="90">&nbsp;Tag标签:</td>
  124. <td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td>
  125. <td width="60">权重:</td>
  126. <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight']; ?>" 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 height="26" class="bline">
  133. <table width="900" border="0" cellspacing="0" cellpadding="0">
  134. <tr>
  135. <td width="90" height="80">&nbsp;缩略图:</td>
  136. <td>
  137. <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px">
  138. <label><input type='checkbox' class='np' name='ddisremote' value='1'>&nbsp;远程</label>
  139. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  140. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  141. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button>
  142. </td>
  143. <td align="center">
  144. <img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="height:80px">
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td height="26" class="bline">
  152. <table width="900" border="0" cellspacing="0" cellpadding="0">
  153. <tr>
  154. <td width="90">&nbsp;来源:</td>
  155. <td width="260">
  156. <input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" style="width:160px">
  157. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  158. </td>
  159. <td width="60">作者:</td>
  160. <td>
  161. <input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px">
  162. <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button>
  163. </td>
  164. </tr>
  165. </table>
  166. <script language='javascript'>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=''>";
  173. } else {
  174. ?>
  175. <tr>
  176. <td height="26" class="bline">
  177. <table width="900" border="0" cellspacing="0" cellpadding="0">
  178. <tr>
  179. <td width="90">&nbsp;发布栏目:</td>
  180. <td width="360">
  181. <?php
  182. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  183. echo "<select name='typeid' id='typeid' style='width:160px'>";
  184. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>";
  185. echo $typeOptions;
  186. echo "</select>";
  187. ?>
  188. <img src='../static/web/img/menusearch.gif' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid')" title='快捷选择' style='cursor:pointer'>
  189. </td>
  190. <td width="90">消费金币:</td>
  191. <td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td>
  192. </tr>
  193. </table>
  194. </td>
  195. </tr>
  196. <?php
  197. if($cfg_need_typeid2=='Y') {
  198. ?>
  199. <tr>
  200. <td height="26" class="bline">
  201. <table width="900" border="0" cellspacing="0" cellpadding="0">
  202. <tr>
  203. <td width="90">&nbsp;副栏目:</td>
  204. <td>
  205. <span id='typeid2ct'></span>
  206. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:260px;'>
  207. <img src='../static/web/img/menusearch2.gif' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title='选择副栏目' style='cursor:pointer'>
  208. </td>
  209. </tr>
  210. </table>
  211. </td>
  212. </tr>
  213. <tr>
  214. <td height="26" class="bline">
  215. <table width="900" border="0" cellspacing="0" cellpadding="0">
  216. <tr>
  217. <td width="90">&nbsp;关键词:</td>
  218. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td>
  219. </tr>
  220. </table>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td height="26" class="bline">
  225. <table width="900" border="0" cellspacing="0" cellpadding="0">
  226. <tr>
  227. <td width="90">&nbsp;描述:</td>
  228. <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td>
  229. </tr>
  230. </table>
  231. </td>
  232. </tr>
  233. <?php
  234. }
  235. }
  236. ?>
  237. <tr>
  238. <td>
  239. <?php
  240. PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow);
  241. ?>
  242. </td>
  243. </tr>
  244. <tr>
  245. <td width="400%" height="26">
  246. <table width="900" border="0" cellspacing="0" cellpadding="0">
  247. <tr>
  248. <td width="90">&nbsp;附加选项:</td>
  249. <td>
  250. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>>
  251. 下载远程图片和资源</label>
  252. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>>
  253. 提取第一个图片为缩略图</label>
  254. </td>
  255. </tr>
  256. </table>
  257. </td>
  258. </tr>
  259. </table>
  260. <!--高级参数-->
  261. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;background:#ffffff;display:none">
  262. <tr>
  263. <td height="26" colspan="4" class="bline">
  264. <table width="900" border="0" cellspacing="0" cellpadding="0">
  265. <tr>
  266. <td width="90" height="26" width="260">&nbsp;评论选项:</td>
  267. <td width="260">
  268. <label><input type='radio' name='notpost' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论</label>
  269. &nbsp;
  270. <label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label>
  271. </td>
  272. <td width="90">发布选项:</td>
  273. <td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked"; ?>>
  274. 生成HTML</label>
  275. <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked"; ?>>
  276. 仅动态浏览</label>
  277. </td>
  278. </tr>
  279. </table>
  280. </td>
  281. </tr>
  282. <tr>
  283. <td height="26" class="bline">
  284. <table width="900" border="0" cellspacing="0" cellpadding="0">
  285. <tr>
  286. <td width="90">&nbsp;文档排序:</td>
  287. <td width="260"><select name="sortup" id="sortup" style="width:160px">
  288. <?php
  289. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  290. echo "<option value='0'>正常排序</option>";
  291. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  292. ?>
  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>
  299. </td>
  300. <td width="90">标题颜色:</td>
  301. <td>
  302. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px">
  303. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  304. </td>
  305. </tr>
  306. </table>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td height="26" class="bline">
  311. <table width="900" border="0" cellspacing="0" cellpadding="0">
  312. <tr>
  313. <td width="90">&nbsp;阅读权限:</td>
  314. <td width="260"><select name="arcrank" id="arcrank" style="width:160px">
  315. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  316. <?php
  317. $urank = $cuserLogin->getUserRank();
  318. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  319. $dsql->Execute();
  320. while($row = $dsql->GetObject()){
  321. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  322. }
  323. ?>
  324. </select>
  325. </td>
  326. <td width="90">文件名称:</td>
  327. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td>
  328. </tr>
  329. </table>
  330. </td>
  331. </tr>
  332. <tr>
  333. <td height="70" class="bline">
  334. <table width="900" border="0" cellspacing="0" cellpadding="0">
  335. <tr>
  336. <td width="90">&nbsp;更新时间:</td>
  337. <td width="260"><?php
  338. $nowtime = GetDateTimeMk(time());
  339. echo "<input name='pubdate' value='$nowtime' type='text' 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 $arcRow['click']; ?>" style="width:160px"></td>
  344. </tr>
  345. </table>
  346. </td>
  347. </tr>
  348. </table>
  349. <table width="98%" border="0" 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>