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

323 lines
14KB

  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/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.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/bootstrap.bundle.min.js"></script>
  17. <script src="js/main.js"></script>
  18. <script src="../static/web/js/moment.min.js"></script>
  19. <script src="../static/web/js/daterangepicker.js"></script>
  20. <script src="../static/web/js/cropper.min.js"></script>
  21. <style>table{border-collapse:inherit}</style>
  22. <script>
  23. function checkSubmit() {
  24. if (document.form1.title.value == "") {
  25. ShowMsg("<?php echo $cInfos['titlename'];?>不能为空");
  26. document.form1.title.focus();
  27. return false;
  28. }
  29. }
  30. </script>
  31. </head>
  32. <body>
  33. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1" class="mt-3">
  34. <tr>
  35. <td>
  36. <table cellpadding="0" cellspacing="0">
  37. <tr>
  38. <td width="80" height="28" align="center" class="biz-itemnote1">常规内容</td>
  39. </tr>
  40. </table>
  41. </td>
  42. </tr>
  43. </table>
  44. <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  45. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  46. <input type="hidden" name="id" value="<?php echo $aid?>">
  47. <input type="hidden" name="dopost" value="save">
  48. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" class="biz-border">
  49. <tr>
  50. <td class="biz-td">
  51. <table cellspacing="0" cellpadding="0">
  52. <tr>
  53. <td width="90"><?php echo $cInfos['titlename'];?>:</td>
  54. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title'];?>" class="biz-input-lg"></td>
  55. <td width="90">简略标题:</td>
  56. <td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="biz-input-sm"></td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="biz-td">
  63. <table cellspacing="0" cellpadding="0">
  64. <tr>
  65. <td width="90">自定义属性:</td>
  66. <td>
  67. <?php
  68. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  69. $dsql->Execute();
  70. while($trow = $dsql->GetObject())
  71. {
  72. if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  73. else $jumpclick = '';
  74. if (preg_match("#".$trow->att."#", $arcRow['flag']))
  75. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  76. else
  77. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> ";
  78. }
  79. ?>
  80. </td>
  81. </tr>
  82. </table>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="biz-td" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  87. <table cellspacing="0" cellpadding="0">
  88. <tr>
  89. <td width="90">跳转网址:</td>
  90. <td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl'];?>" class="biz-input-md"></td>
  91. </tr>
  92. </table>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td class="biz-td">
  97. <table cellspacing="0" cellpadding="0">
  98. <tr>
  99. <td width="90">Tag标签:</td>
  100. <td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="biz-input-md">(英文逗号分开,如“天涯,叙述”)</td>
  101. <td width="60">权重:</td>
  102. <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="biz-input-sm">(越小越靠前)</td>
  103. </tr>
  104. </table>
  105. </td>
  106. </tr>
  107. <tr id="pictable" style='<?php if ($cInfos['needpic']==0) echo 'display:none';?>'>
  108. <td class="biz-td">
  109. <table cellspacing="0" cellpadding="0">
  110. <tr>
  111. <td width="90">缩略图:</td>
  112. <td width="620">
  113. <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="biz-input-md">
  114. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="np"> 远程</label>
  115. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  116. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  117. <button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
  118. </td>
  119. <td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail"></td>
  120. </tr>
  121. </table>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td class="biz-td">
  126. <table cellspacing="0" cellpadding="0">
  127. <tr>
  128. <td width="90">来源:</td>
  129. <td width="260">
  130. <input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" class="biz-input-sm">
  131. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  132. </td>
  133. <td width="60">作者:</td>
  134. <td>
  135. <input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" class="biz-input-sm">
  136. <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button>
  137. </td>
  138. </tr>
  139. </table>
  140. <script>InitPage();</script>
  141. </td>
  142. </tr>
  143. <?php if ($cInfos['dfcid']>0)
  144. {
  145. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  146. echo "<input type='hidden' name='typeid2' value=''>";
  147. } else {
  148. ?>
  149. <tr>
  150. <td class="biz-td">
  151. <table cellspacing="0" cellpadding="0">
  152. <tr>
  153. <td width="90">发布栏目:</td>
  154. <td width="360">
  155. <?php
  156. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  157. echo "<select name='typeid' id='typeid' class='biz-input-sm'>";
  158. if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>";
  159. echo $typeOptions;
  160. echo "</select>";
  161. ?>
  162. <i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title='快捷选择' style='cursor:pointer'></i>
  163. </td>
  164. <td width="90">消费金币:</td>
  165. <td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" class="biz-input-sm"></td>
  166. </tr>
  167. </table>
  168. </td>
  169. </tr>
  170. <?php if ($cfg_need_typeid2=='Y') {?>
  171. <tr>
  172. <td class="biz-td">
  173. <table cellspacing="0" cellpadding="0">
  174. <tr>
  175. <td width="90">副栏目:</td>
  176. <td>
  177. <span id='typeid2ct'></span>
  178. <input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>' style='width:260px;'>
  179. <i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>')" title='选择副栏目' style='cursor:pointer'></i>
  180. </td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td class="biz-td">
  187. <table cellspacing="0" cellpadding="0">
  188. <tr>
  189. <td width="90">关键词:</td>
  190. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="biz-input-md"></td>
  191. </tr>
  192. </table>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td class="biz-td">
  197. <table cellspacing="0" cellpadding="0">
  198. <tr>
  199. <td width="90">描述:</td>
  200. <td><textarea name="description" id="description" class="biz-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
  201. </tr>
  202. </table>
  203. </td>
  204. </tr>
  205. <?php
  206. }
  207. }
  208. ?>
  209. <tr>
  210. <td class="biz-td"><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow);?></td>
  211. </tr>
  212. <tr>
  213. <td class="biz-td">
  214. <table cellspacing="0" cellpadding="0">
  215. <tr>
  216. <td width="90">附加选项:</td>
  217. <td>
  218. <label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>>
  219. 下载远程图片和资源</label>
  220. <label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>>
  221. 提取第一个图片为缩略图</label>
  222. </td>
  223. </tr>
  224. </table>
  225. </td>
  226. </tr>
  227. <tr>
  228. <td class="biz-td">
  229. <table cellspacing="0" cellpadding="0">
  230. <tr>
  231. <td width="90" width="260"> 评论选项:</td>
  232. <td width="260">
  233. <label><input type='radio' name='notpost' class='np' value='0' <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label>
  234. <label><input type='radio' name='notpost' class='np' value='1' <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label>
  235. </td>
  236. <td width="90">发布选项:</td>
  237. <td><label><input name="ishtml" type="radio" class="np" value="1" <?php if ($arcRow["ismake"]!=-1) echo " checked";?>>
  238. 生成网页</label>
  239. <label><input type="radio" name="ishtml" class="np" value="0" <?php if ($arcRow["ismake"]==-1) echo " checked";?>>
  240. 仅动态浏览</label>
  241. </td>
  242. </tr>
  243. </table>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td class="biz-td">
  248. <table cellspacing="0" cellpadding="0">
  249. <tr>
  250. <td width="90">文档排序:</td>
  251. <td width="260"><select name="sortup" id="sortup" class="biz-input-sm">
  252. <?php
  253. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  254. echo "<option value='0'>正常排序</option>";
  255. if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>";
  256. ?>
  257. <option value="7">置顶一周</option>
  258. <option value="30">置顶一个月</option>
  259. <option value="90">置顶三个月</option>
  260. <option value="180">置顶半年</option>
  261. <option value="360">置顶一年</option>
  262. </select>
  263. </td>
  264. <td width="90">标题颜色:</td>
  265. <td>
  266. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" class="biz-input-sm">
  267. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button>
  268. </td>
  269. </tr>
  270. </table>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="biz-td">
  275. <table cellspacing="0" cellpadding="0">
  276. <tr>
  277. <td width="90">阅读权限:</td>
  278. <td width="260"><select name="arcrank" id="arcrank" class="biz-input-sm">
  279. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  280. <?php
  281. $urank = $cuserLogin->getUserRank();
  282. $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank'");
  283. $dsql->Execute();
  284. while($row = $dsql->GetObject()){
  285. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  286. }
  287. ?>
  288. </select>
  289. </td>
  290. <td width="90">文件名称:</td>
  291. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="biz-input-sm">(不包括后缀名如.html等)</td>
  292. </tr>
  293. </table>
  294. </td>
  295. </tr>
  296. <tr>
  297. <td class="biz-td">
  298. <table cellspacing="0" cellpadding="0">
  299. <tr>
  300. <td width="90">更新时间:</td>
  301. <td width="260"><?php
  302. $nowtime = GetDateTimeMk(time());
  303. echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker' class='biz-input-sm'>";
  304. ?>
  305. </td>
  306. <td width="90">浏览次数:</td>
  307. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="biz-input-sm"></td>
  308. </tr>
  309. </table>
  310. </td>
  311. </tr>
  312. </table>
  313. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f5f5f5" class="biz-border border-top-0 mb-3">
  314. <tr>
  315. <td align="center" class="py-2">
  316. <button type="submit" class="btn btn-success btn-sm">保存</button>
  317. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  318. </td>
  319. </tr>
  320. </table>
  321. </form>
  322. </body>
  323. </html>