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

  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/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script>
  10. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script language="javascript" src="../static/web/js/webajax.js"></script>
  12. <script type="text/javascript" src="../static/web/js/moment.min.js"></script>
  13. <script type="text/javascript" src="../static/web/js/daterangepicker.js"></script>
  14. <script language="javascript" src="js/main.js"></script>
  15. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  16. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  17. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  18. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  19. <script src="../static/web/js/cropper.min.js"></script>
  20. <script language="javascript">
  21. function checkSubmit()
  22. {
  23. if(document.form1.title.value==""){
  24. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空");
  25. document.form1.title.focus();
  26. return false;
  27. }
  28. }
  29. </script>
  30. <style>
  31. body{background:#fff}
  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%" 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>
  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="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规信息</td>
  50. <td width="86"></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;background:#ffffff;">
  62. <tr>
  63. <td height="26" class="bline">
  64. <table width="900" cellspacing="0" cellpadding="0">
  65. <tr>
  66. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  67. <td><input name="title" type="text" id="title" value="<?php echo $addRow['title']; ?>" style="width:380px"></td>
  68. </tr>
  69. </table>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td width="400%" height="26" class="bline">
  74. <table width="900" cellspacing="0" cellpadding="0">
  75. <tr>
  76. <td width="90">&nbsp;自定义属性:</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><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  85. else
  86. echo "<label><input class='np' 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>
  95. <td height="26" class="bline">
  96. <table width="900" cellspacing="0" cellpadding="0">
  97. <tr>
  98. <td width="90">&nbsp;浏览权限:</td>
  99. <td>
  100. <select name="arcrank" id="arcrank" style="width:160px">
  101. <option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option>
  102. <?php
  103. $urank = $cuserLogin->getUserRank();
  104. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
  105. $dsql->Execute();
  106. while($row = $dsql->GetObject()) {
  107. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  108. }
  109. ?>
  110. </select>
  111. </td>
  112. </tr>
  113. </table>
  114. </td>
  115. </tr>
  116. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  117. <td height="26" class="bline">
  118. <table width="900" cellspacing="0" cellpadding="0">
  119. <tr>
  120. <td width="90">&nbsp;缩略图:</td>
  121. <td>
  122. <input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $addRow['litpic']?>">
  123. <label><input type='checkbox' class='np' name='ddisremote' value='1'>&nbsp;远程</label>
  124. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  125. <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  126. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button>
  127. </td>
  128. <td align="center"><img id="litPic" src="<?php if($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="height:80px"></td>
  129. </tr>
  130. </table>
  131. </td>
  132. </tr>
  133. <?php if($cInfos['dfcid']>0)
  134. {
  135. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  136. } else {
  137. ?>
  138. <tr>
  139. <td height="26" class="bline">
  140. <table width="900" cellspacing="0" cellpadding="0">
  141. <tr>
  142. <td width="90">&nbsp;发布栏目:</td>
  143. <td>
  144. <?php
  145. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  146. echo "<select name='typeid' id='typeid' style='width:240px'>";
  147. if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>";
  148. echo $typeOptions;
  149. echo "</select>";
  150. ?>
  151. <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>
  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-3">
  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>