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

363 line
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/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href="css/base.css" rel="stylesheet" type="text/css">
  9. <script src="../static/js/jquery.js"></script>
  10. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  11. <script src="../static/js/bootstrap.bundle.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  14. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  15. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  16. <link rel="stylesheet" href="../static/css/jquery.fileupload.css">
  17. <link href="../static/css/cropper.min.css" rel="stylesheet">
  18. <script src="../static/js/cropper.min.js"></script>
  19. <script language="javascript">
  20. function checkSubmit() {
  21. if (document.form1.title.value == "") {
  22. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空");
  23. document.form1.title.focus();
  24. return false;
  25. }
  26. }
  27. </script>
  28. <style>
  29. body{background:#fff}
  30. img{vertical-align:baseline}
  31. table{border-collapse:separate}
  32. .btn+.btn{margin-left:10px}
  33. .form-control{display:inline-block;margin-right:10px;width:160px}
  34. </style>
  35. </head>
  36. <body topmargin="8">
  37. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  38. <tr>
  39. <td width="65%" height="30"><img src="images/book1.gif">&nbsp;<a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> &gt;&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="images/itemnote1.gif">常规信息</td>
  49. <td width="86" align="center" background="images/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="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td>
  61. <td width="86" align="center" background="images/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. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  72. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  73. <tr>
  74. <td height="26" class="bline">
  75. <table width="800" border="0" cellspacing="0" cellpadding="0">
  76. <tr>
  77. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  78. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"> </td>
  79. <td width="90">&nbsp;简略标题:</td>
  80. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" value="<?php echo $arcRow['shorttitle']; ?>"> </td>
  81. </tr>
  82. </table>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td width="400%" height="26" class="bline">
  87. <table width="800" border="0" cellspacing="0" cellpadding="0">
  88. <tr>
  89. <td width="100">&nbsp;自定义属性:</td>
  90. <td>
  91. <?php
  92. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  93. $dsql->Execute();
  94. while($trow = $dsql->GetObject())
  95. {
  96. if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  97. else $jumpclick = '';
  98. if(preg_match("#".$trow->att."#", $arcRow['flag']))
  99. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked' /> {$trow->attname}[{$trow->att}]</label> ";
  100. else
  101. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> ";
  102. }
  103. ?>
  104. </td>
  105. </tr>
  106. </table>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td height="26" class="bline" id="redirecturltr"
  111. style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  112. <table width="800" border="0" cellspacing="0" cellpadding="0">
  113. <tr>
  114. <td width="90">&nbsp;跳转网址:</td>
  115. <td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow['redirecturl']; ?>" /></td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td width="400%" height="26" class="bline">
  122. <table width="800" border="0" cellspacing="0" cellpadding="0">
  123. <tr>
  124. <td width="90">&nbsp;Tag标签:</td>
  125. <td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px" />(','号分开,单个标签小于12字节)</td>
  126. <td width="50">权重:</td>
  127. <td><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $arcRow['weight'];?>" />(越小越靠前)</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" class="bline">
  134. <table width="800" border="0" cellspacing="0" cellpadding="0">
  135. <tr>
  136. <td width="90" height="80">&nbsp;缩略图:</td>
  137. <td width="600">
  138. <input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>">
  139. <label><input type='checkbox' class='np' name='ddisremote' value='1'>&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="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  142. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button>
  143. </td>
  144. <td align="center">
  145. <img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px">
  146. </td>
  147. </tr>
  148. </table>
  149. </td>
  150. </tr>
  151. <?php if($cInfos['dfcid']>0)
  152. {
  153. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  154. echo "<input type='hidden' name='typeid2' value='' />\r\n";
  155. }
  156. else
  157. {
  158. ?>
  159. <tr>
  160. <td height="26" class="bline">
  161. <table width="800" border="0" cellspacing="0" cellpadding="0">
  162. <tr>
  163. <td width="100">&nbsp;文档主栏目:</td>
  164. <td>
  165. <?php
  166. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  167. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  168. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
  169. echo $typeOptions;
  170. echo "</select>";
  171. ?>
  172. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  173. </td>
  174. </tr>
  175. </table>
  176. </td>
  177. </tr>
  178. <?php
  179. if($cfg_need_typeid2=='Y') {
  180. ?>
  181. <tr>
  182. <td height="26" class="bline">
  183. <table width="800" border="0" cellspacing="0" cellpadding="0">
  184. <tr>
  185. <td width="100">&nbsp;文档副栏目:</td>
  186. <td>
  187. <span id='typeid2ct'></span>
  188. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  189. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' />
  190. </td>
  191. </tr>
  192. </table>
  193. </td>
  194. </tr>
  195. <?php }} ?>
  196. <tr>
  197. <td>
  198. <?php
  199. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow);
  200. ?>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td width="400%" height="26">
  205. <table width="800" border="0" cellspacing="0" cellpadding="0">
  206. <tr>
  207. <td width="90">&nbsp;附加选项:</td>
  208. <td>
  209. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>>
  210. 下载远程图片和资源</label>
  211. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>>
  212. 提取第一个图片为缩略图</label>
  213. </td>
  214. </tr>
  215. </table>
  216. </td>
  217. </tr>
  218. </table>
  219. <!--高级参数-->
  220. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  221. <tr>
  222. <td height="26" colspan="4" class="bline">
  223. <table width="800" border="0" cellspacing="0" cellpadding="0">
  224. <tr>
  225. <td width="90" height="26" width="240">&nbsp;评论选项:</td>
  226. <td width="250">
  227. <label><input type='radio' name='notpost' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论</label>
  228. &nbsp;
  229. <label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label>
  230. </td>
  231. <td width="90">浏览次数:</td>
  232. <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td>
  233. </tr>
  234. </table>
  235. </td>
  236. </tr>
  237. <tr>
  238. <td height="26" class="bline">
  239. <table width="800" border="0" cellspacing="0" cellpadding="0">
  240. <tr>
  241. <td width="90">&nbsp;文档来源:</td>
  242. <td width="250"><input name="source" type="text" id="source" style="width:160" value="<?php echo $arcRow['source']?>" size="16"> <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button></td>
  243. <td width="90">作者:</td>
  244. <td>
  245. <input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>"> <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button></td>
  246. </tr>
  247. </table>
  248. <script language='javascript'>InitPage();</script>
  249. </td>
  250. </tr>
  251. <tr>
  252. <td height="26" class="bline">
  253. <table width="800" border="0" cellspacing="0" cellpadding="0">
  254. <tr>
  255. <td width="90">&nbsp;文档排序:</td>
  256. <td width="250"><select name="sortup" id="sortup" style="width:150">
  257. <?php
  258. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  259. echo "<option value='0'>正常排序</option>\r\n";
  260. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  261. ?>
  262. <option value="7">置顶一周</option>
  263. <option value="30">置顶一个月</option>
  264. <option value="90">置顶三个月</option>
  265. <option value="180">置顶半年</option>
  266. <option value="360">置顶一年</option>
  267. </select>
  268. </td>
  269. <td width="90">标题颜色:</td>
  270. <td>
  271. <input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>">
  272. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  273. </td>
  274. </tr>
  275. </table>
  276. </td>
  277. </tr>
  278. <tr>
  279. <td height="26" class="bline">
  280. <table width="800" border="0" cellspacing="0" cellpadding="0">
  281. <tr>
  282. <td width="90">&nbsp;阅读权限:</td>
  283. <td width="250"><select name="arcrank" id="arcrank" style="width:150">
  284. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  285. <?php
  286. $urank = $cuserLogin->getUserRank();
  287. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  288. $dsql->Execute();
  289. while($row = $dsql->GetObject()){
  290. echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
  291. }
  292. ?>
  293. </select>
  294. </td>
  295. <td width="90">发布选项:</td>
  296. <td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  297. 生成HTML</label>
  298. <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>>
  299. 仅动态浏览</label>
  300. </td>
  301. </tr>
  302. </table>
  303. </td>
  304. </tr>
  305. <tr>
  306. <td height="70" class="bline">
  307. <table width="800" border="0" cellspacing="0" cellpadding="0">
  308. <tr>
  309. <td width="90">&nbsp;更新时间:</td>
  310. <td width="250"><?php
  311. $nowtime = GetDateTimeMk(time());
  312. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
  313. ?>
  314. </td>
  315. <td width="90">消费金币:</td>
  316. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" size="10"></td>
  317. </tr>
  318. </table>
  319. </td>
  320. </tr>
  321. <tr>
  322. <td height="26" class="bline">
  323. <table width="800" border="0" cellspacing="0" cellpadding="0">
  324. <tr>
  325. <td width="90" height="50">&nbsp;关键字:</td>
  326. <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td>
  327. </tr>
  328. </table>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td height="26" class="bline">
  333. <table width="800" border="0" cellspacing="0" cellpadding="0">
  334. <tr>
  335. <td width="90" height="50">&nbsp;文档摘要:</td>
  336. <td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow['description']?></textarea></td>
  337. </tr>
  338. </table>
  339. </td>
  340. </tr>
  341. <tr>
  342. <td height="26" colspan="4">
  343. <table width="800" border="0" cellspacing="0" cellpadding="0">
  344. <tr>
  345. <td width="120">&nbsp;自定义文件名:</td>
  346. <td width="450"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td>
  347. <td width="260"></td>
  348. </tr>
  349. </table>
  350. </td>
  351. </tr>
  352. </table>
  353. <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3">
  354. <tr height="36">
  355. <td style="padding:.6rem">
  356. <button type="submit" class="btn btn-success">保存</button>
  357. <button type="button" onClick="location.reload();" class="btn btn-success">重置</button>
  358. </td>
  359. </tr>
  360. </table>
  361. </form>
  362. </body>
  363. </html>