国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

362 wiersze
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 rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="css/base.css">
  9. <script src="../static/js/jquery.js"></script>
  10. <script language="javascript" src="../static/js/webajax.js"></script>
  11. <script src="../static/js/bootstrap.bundle.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <link rel="stylesheet" href="../static/css/daterangepicker.css">
  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. .form-control{display:inline-block;margin-right:10px;width:160px}
  33. </style>
  34. </head>
  35. <body topmargin="8">
  36. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  37. <tr>
  38. <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; 修改文档</td>
  39. <td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td>
  40. </tr>
  41. </table>
  42. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  43. <tr>
  44. <td colspan="2">
  45. <table border="0" cellpadding="0" cellspacing="0">
  46. <tr>
  47. <td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td>
  48. <td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td>
  49. </tr>
  50. </table>
  51. </td>
  52. </tr>
  53. </table>
  54. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  55. <tr>
  56. <td colspan="2">
  57. <table height="26" border="0" cellpadding="0" cellspacing="0">
  58. <tr>
  59. <td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td>
  60. <td width="86" align="center" background="images/itemnote1.gif">高级参数</td>
  61. </tr>
  62. </table>
  63. </td>
  64. </tr>
  65. </table>
  66. <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  67. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  68. <input type="hidden" name="id" value="<?php echo $aid?>">
  69. <input type="hidden" name="dopost" value="save">
  70. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  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="800" 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" style="width:150px" value="<?php echo $arcRow['shorttitle']; ?>"> </td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td width="400%" height="26" class="bline">
  86. <table width="800" border="0" cellspacing="0" cellpadding="0">
  87. <tr>
  88. <td width="100">&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="800" border="0" cellspacing="0" cellpadding="0">
  112. <tr>
  113. <td width="90">&nbsp;跳转网址:</td>
  114. <td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow['redirecturl']; ?>"></td>
  115. </tr>
  116. </table>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td width="400%" height="26" class="bline">
  121. <table width="800" 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="50">权重:</td>
  126. <td><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $arcRow['weight'];?>">(越小越靠前)</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="800" border="0" cellspacing="0" cellpadding="0">
  134. <tr>
  135. <td width="90" height="80">&nbsp;缩略图:</td>
  136. <td width="600">
  137. <input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>">
  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/defaultpic.gif'; ?>" style="height:80px">
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <?php if($cInfos['dfcid']>0)
  151. {
  152. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  153. echo "<input type='hidden' name='typeid2' value='' />\r\n";
  154. }
  155. else
  156. {
  157. ?>
  158. <tr>
  159. <td height="26" class="bline">
  160. <table width="800" border="0" cellspacing="0" cellpadding="0">
  161. <tr>
  162. <td width="100">&nbsp;文档主栏目:</td>
  163. <td>
  164. <?php
  165. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  166. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  167. if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>\r\n";
  168. echo $typeOptions;
  169. echo "</select>";
  170. ?>
  171. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  172. </td>
  173. </tr>
  174. </table>
  175. </td>
  176. </tr>
  177. <?php
  178. if($cfg_need_typeid2=='Y') {
  179. ?>
  180. <tr>
  181. <td height="26" class="bline">
  182. <table width="800" border="0" cellspacing="0" cellpadding="0">
  183. <tr>
  184. <td width="100">&nbsp;文档副栏目:</td>
  185. <td>
  186. <span id='typeid2ct'></span>
  187. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' />
  188. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' />
  189. </td>
  190. </tr>
  191. </table>
  192. </td>
  193. </tr>
  194. <?php }} ?>
  195. <tr>
  196. <td>
  197. <?php
  198. PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow);
  199. ?>
  200. </td>
  201. </tr>
  202. <tr>
  203. <td width="400%" height="26">
  204. <table width="800" border="0" cellspacing="0" cellpadding="0">
  205. <tr>
  206. <td width="90">&nbsp;附加选项:</td>
  207. <td>
  208. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>>
  209. 下载远程图片和资源</label>
  210. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>>
  211. 提取第一个图片为缩略图</label>
  212. </td>
  213. </tr>
  214. </table>
  215. </td>
  216. </tr>
  217. </table>
  218. <!--高级参数-->
  219. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;background:#ffffff;display:none">
  220. <tr>
  221. <td height="26" colspan="4" class="bline">
  222. <table width="800" border="0" cellspacing="0" cellpadding="0">
  223. <tr>
  224. <td width="90" height="26" width="240">&nbsp;评论选项:</td>
  225. <td width="250">
  226. <label><input type='radio' name='notpost' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论</label>
  227. &nbsp;
  228. <label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label>
  229. </td>
  230. <td width="90">浏览次数:</td>
  231. <td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td>
  232. </tr>
  233. </table>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td height="26" class="bline">
  238. <table width="800" border="0" cellspacing="0" cellpadding="0">
  239. <tr>
  240. <td width="90">&nbsp;文档来源:</td>
  241. <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>
  242. <td width="90">作者:</td>
  243. <td>
  244. <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>
  245. </tr>
  246. </table>
  247. <script language='javascript'>InitPage();</script>
  248. </td>
  249. </tr>
  250. <tr>
  251. <td height="26" class="bline">
  252. <table width="800" border="0" cellspacing="0" cellpadding="0">
  253. <tr>
  254. <td width="90">&nbsp;文档排序:</td>
  255. <td width="250"><select name="sortup" id="sortup" style="width:150">
  256. <?php
  257. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  258. echo "<option value='0'>正常排序</option>\r\n";
  259. if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
  260. ?>
  261. <option value="7">置顶一周</option>
  262. <option value="30">置顶一个月</option>
  263. <option value="90">置顶三个月</option>
  264. <option value="180">置顶半年</option>
  265. <option value="360">置顶一年</option>
  266. </select>
  267. </td>
  268. <td width="90">标题颜色:</td>
  269. <td>
  270. <input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>">
  271. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  272. </td>
  273. </tr>
  274. </table>
  275. </td>
  276. </tr>
  277. <tr>
  278. <td height="26" class="bline">
  279. <table width="800" border="0" cellspacing="0" cellpadding="0">
  280. <tr>
  281. <td width="90">&nbsp;阅读权限:</td>
  282. <td width="250"><select name="arcrank" id="arcrank" style="width:150">
  283. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  284. <?php
  285. $urank = $cuserLogin->getUserRank();
  286. $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
  287. $dsql->Execute();
  288. while($row = $dsql->GetObject()){
  289. echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
  290. }
  291. ?>
  292. </select>
  293. </td>
  294. <td width="90">发布选项:</td>
  295. <td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>>
  296. 生成HTML</label>
  297. <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>>
  298. 仅动态浏览</label>
  299. </td>
  300. </tr>
  301. </table>
  302. </td>
  303. </tr>
  304. <tr>
  305. <td height="70" class="bline">
  306. <table width="800" border="0" cellspacing="0" cellpadding="0">
  307. <tr>
  308. <td width="90">&nbsp;更新时间:</td>
  309. <td width="250"><?php
  310. $nowtime = GetDateTimeMk(time());
  311. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
  312. ?>
  313. </td>
  314. <td width="90">消费金币:</td>
  315. <td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" size="10"></td>
  316. </tr>
  317. </table>
  318. </td>
  319. </tr>
  320. <tr>
  321. <td height="26" class="bline">
  322. <table width="800" border="0" cellspacing="0" cellpadding="0">
  323. <tr>
  324. <td width="90" height="50">&nbsp;关键词:</td>
  325. <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td>
  326. </tr>
  327. </table>
  328. </td>
  329. </tr>
  330. <tr>
  331. <td height="26" class="bline">
  332. <table width="800" border="0" cellspacing="0" cellpadding="0">
  333. <tr>
  334. <td width="90" height="50">&nbsp;文档摘要:</td>
  335. <td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow['description']?></textarea></td>
  336. </tr>
  337. </table>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td height="26" colspan="4">
  342. <table width="800" border="0" cellspacing="0" cellpadding="0">
  343. <tr>
  344. <td width="120">&nbsp;自定义文件名:</td>
  345. <td width="450"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>">(不包括后缀名如.html等)</td>
  346. <td width="260"></td>
  347. </tr>
  348. </table>
  349. </td>
  350. </tr>
  351. </table>
  352. <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f6f6f6" style="border:1px solid #dee2e6;border-top:none" class="mb-3">
  353. <tr height="36">
  354. <td style="padding:.6rem">
  355. <button type="submit" class="btn btn-success">保存</button>
  356. <button type="button" onClick="location.reload();" class="btn btn-success">重置</button>
  357. </td>
  358. </tr>
  359. </table>
  360. </form>
  361. </body>
  362. </html>