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

177 lines
7.6KB

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