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

175 lines
7.4KB

  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/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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/moment.min.js"></script>
  17. <script src="../static/web/js/daterangepicker.js"></script>
  18. <script src="js/main.js"></script>
  19. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  20. <script src="../static/web/js/cropper.min.js"></script>
  21. <style>
  22. table{border-collapse:separate}
  23. .form-control{display:inline-block;margin-right:6px;width:160px}
  24. </style>
  25. <script>
  26. function checkSubmit()
  27. {
  28. if(document.form1.title.value==""){
  29. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空");
  30. document.form1.title.focus();
  31. return false;
  32. }
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  38. <tr>
  39. <td width="70%"><i class="fa fa-book"></i> <a href="content_sg_list.php?cid=<?php echo $addRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> &gt; 修改分类</td>
  40. <td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td>
  41. </tr>
  42. </table>
  43. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1">
  44. <tr>
  45. <td colspan="2">
  46. <table cellpadding="0" cellspacing="0">
  47. <tr>
  48. <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td>
  49. <td width="84"></td>
  50. </tr>
  51. </table>
  52. </td>
  53. </tr>
  54. </table>
  55. <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  56. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>">
  57. <input type="hidden" name="id" value="<?php echo $aid; ?>">
  58. <input type="hidden" name="sortrank" value="<?php echo $addRow['senddate']; ?>">
  59. <input type="hidden" name="dopost" value="save">
  60. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6">
  61. <tr>
  62. <td class="bline">
  63. <table width="900" cellspacing="0" cellpadding="0">
  64. <tr>
  65. <td width="90"> <?php echo $cInfos['titlename']; ?>:</td>
  66. <td><input type="text" name="title" id="title" value="<?php echo $addRow['title']; ?>" style="width:390px"></td>
  67. </tr>
  68. </table>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td width="100%" class="bline">
  73. <table width="900" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td width="90"> 自定义属性:</td>
  76. <td>
  77. <?php
  78. $dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
  79. $dsql->Execute();
  80. while($trow = $dsql->GetObject())
  81. {
  82. if(preg_match("#".$trow->att."#", $addRow['flag']))
  83. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'> {$trow->attname}[{$trow->att}]</label>";
  84. else
  85. echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>";
  86. }
  87. ?>
  88. </td>
  89. </tr>
  90. </table>
  91. </td>
  92. </tr>
  93. <tr id="pictable" style="<?php if($cInfos['needpic']==0) echo 'display:none'; ?>">
  94. <td class="bline">
  95. <table width="900" cellspacing="0" cellpadding="0">
  96. <tr>
  97. <td width="90"> 缩略图:</td>
  98. <td>
  99. <input type="text" name="picname" id="picname" style="width:300px" value="<?php echo $addRow['litpic']?>">
  100. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label>
  101. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  102. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  103. <button type="button" id="btnClearAll" class="btn btn-success btn-sm delete">清空</button>
  104. </td>
  105. <td align="center"><img id="litPic" src="<?php if($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"></td>
  106. </tr>
  107. </table>
  108. </td>
  109. </tr>
  110. <?php if($cInfos['dfcid']>0)
  111. {
  112. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  113. } else {
  114. ?>
  115. <tr>
  116. <td class="bline">
  117. <table width="900" cellspacing="0" cellpadding="0">
  118. <tr>
  119. <td width="90"> 发布栏目:</td>
  120. <td>
  121. <?php
  122. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  123. echo "<select name='typeid' id='typeid' style='width:160px'>";
  124. if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>";
  125. echo $typeOptions;
  126. echo "</select>";
  127. ?>
  128. <i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid','<?php echo $addRow['typeid']; ?>')" title="快捷选择" style="cursor:pointer"></i>
  129. </td>
  130. </tr>
  131. </table>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td class="bline">
  136. <table width="900" cellspacing="0" cellpadding="0">
  137. <tr>
  138. <td width="90"> 浏览权限:</td>
  139. <td>
  140. <select name="arcrank" id="arcrank" style="width:160px">
  141. <option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option>
  142. <?php
  143. $urank = $cuserLogin->getUserRank();
  144. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
  145. $dsql->Execute();
  146. while($row = $dsql->GetObject()) {
  147. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  148. }
  149. ?>
  150. </select>
  151. </td>
  152. </tr>
  153. </table>
  154. </td>
  155. </tr>
  156. <?php
  157. }
  158. ?>
  159. <tr>
  160. <td>
  161. <?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield'); ?>
  162. </td>
  163. </tr>
  164. </table>
  165. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  166. <tr>
  167. <td align="center" class="py-2">
  168. <button type="submit" class="btn btn-success btn-sm">保存</button>
  169. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  170. </td>
  171. </tr>
  172. </table>
  173. </form>
  174. </body>
  175. </html>