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

174 lines
7.9KB

  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/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="css/base.css">
  9. <script language="javascript" src="../static/js/jquery.js"></script>
  10. <script language="javascript" src="../static/js/webajax.js"></script>
  11. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  12. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  13. <script language="javascript" src="js/main.js"></script>
  14. <link rel="stylesheet" href="../static/css/daterangepicker.css">
  15. <script src="../static/js/bootstrap.bundle.js"></script>
  16. <link rel="stylesheet" href="../static/css/jquery.fileupload.css">
  17. <link href="../static/css/cropper.min.css" rel="stylesheet">
  18. <script src="../static/js/cropper.min.js"></script>
  19. <script language="javascript">
  20. function checkSubmit()
  21. {
  22. if(document.form1.title.value==""){
  23. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空");
  24. document.form1.title.focus();
  25. return false;
  26. }
  27. }
  28. </script>
  29. <style>
  30. body{background:#fff}
  31. img{vertical-align:baseline}
  32. table{border-collapse:separate}
  33. .form-control{display:inline-block;margin-right:6px;width:160px}
  34. </style>
  35. </head>
  36. <body topmargin="8">
  37. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  38. <tr>
  39. <td width="65%" height="30"><img src="images/book1.gif">&nbsp;<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'>&nbsp; <?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td>
  41. </tr>
  42. </table>
  43. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  44. <tr>
  45. <td colspan="2">
  46. <table border="0" cellpadding="0" cellspacing="0">
  47. <tr>
  48. <td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td>
  49. <td width="86" align="center"></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. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  61. <table width="98%" border="0" 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="800" border="0" 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="800" border="0" cellspacing="0" cellpadding="0">
  75. <tr>
  76. <td width="100">&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></td>
  92. </tr>
  93. <tr>
  94. <td height="26" class="bline">
  95. <table width="800" border="0" cellspacing="0" cellpadding="0">
  96. <tr>
  97. <td width="90">&nbsp;浏览权限:</td>
  98. <td>
  99. <select name="arcrank" id="arcrank" style="width:150px">
  100. <option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option>
  101. <?php
  102. $urank = $cuserLogin->getUserRank();
  103. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
  104. $dsql->Execute();
  105. while($row = $dsql->GetObject()) {
  106. echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
  107. }
  108. ?>
  109. </select> </td>
  110. <td width="90"></td>
  111. <td></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="800" border="0" cellspacing="0" cellpadding="0">
  119. <tr>
  120. <td width="90" height="80">&nbsp;缩略图:</td>
  121. <td width="560">
  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/defaultpic.gif'; ?>" 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']}' />\r\n";
  136. } else {
  137. ?>
  138. <tr>
  139. <td height="26" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  140. <tr>
  141. <td width="90">&nbsp;文档主栏目:</td>
  142. <td>
  143. <?php
  144. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  145. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  146. if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>\r\n";
  147. echo $typeOptions;
  148. echo "</select>";
  149. ?>
  150. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $addRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  151. </td>
  152. </tr>
  153. </table></td>
  154. </tr>
  155. <?php } ?>
  156. <tr>
  157. <td>
  158. <?php
  159. PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');
  160. ?>
  161. </td>
  162. </tr>
  163. </table>
  164. <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f6f6f6" style="border:1px solid #dee2e6;border-top:none" class="mb-3">
  165. <tr height="36">
  166. <td style="padding:.6rem">
  167. <button type="submit" class="btn btn-success">保存</button>
  168. <button type="button" onClick="location.reload();" class="btn btn-success">重置</button>
  169. </td>
  170. </tr>
  171. </table>
  172. </form>
  173. </body>
  174. </html>