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

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