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

146 lines
5.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>修改分类模型</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.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/cropper.min.css">
  12. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script>
  13. <script src="/static/web/js/jquery.min.js"></script>
  14. <script src="/static/web/js/bootstrap.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="/static/web/js/cropper.min.js"></script>
  19. <script src="/static/web/js/admin.main.js"></script>
  20. </head>
  21. <body>
  22. <form name="form1" action="archives_sg_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
  23. <input type="hidden" name="channelid" value="<?php echo $channelid;?>">
  24. <input type="hidden" name="id" value="<?php echo $aid;?>">
  25. <input type="hidden" name="sortrank" value="<?php echo $addRow['senddate'];?>">
  26. <input type="hidden" name="dopost" value="save">
  27. <table class="shadow-sm my-3">
  28. <tr>
  29. <td class="admin-td">修改分类文档</td>
  30. </tr>
  31. <tr>
  32. <td class="admin-td">
  33. <table>
  34. <tr>
  35. <td width="120"><?php echo $cInfos['titlename'];?>:</td>
  36. <td><input type="text" name="title" id="title" value="<?php echo $addRow['title'];?>" class="admin-input-lg"></td>
  37. </tr>
  38. </table>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="admin-td">
  43. <table>
  44. <tr>
  45. <td width="120">自定义属性:</td>
  46. <td>
  47. <?php
  48. $dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
  49. $dsql->Execute();
  50. while($trow = $dsql->GetObject())
  51. {
  52. if (preg_match("#".$trow->att."#", $addRow['flag']))
  53. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked> {$trow->attname}[{$trow->att}]</label> ";
  54. else
  55. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
  56. }
  57. ?>
  58. </td>
  59. </tr>
  60. </table>
  61. </td>
  62. </tr>
  63. <tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
  64. <td class="admin-td">
  65. <table>
  66. <tr>
  67. <td width="120">缩略图:</td>
  68. <td width="660">
  69. <input type="text" name="picname" id="picname" class="admin-input-lg" value="<?php echo $addRow['litpic']?>">
  70. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
  71. <span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
  72. <button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
  73. <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
  74. </td>
  75. <td><img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
  76. </tr>
  77. </table>
  78. </td>
  79. </tr>
  80. <?php
  81. if ($cInfos['dfcid']>0) {
  82. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  83. } else {
  84. ?>
  85. <tr>
  86. <td class="admin-td">
  87. <table>
  88. <tr>
  89. <td width="120">发布栏目:</td>
  90. <td width="360">
  91. <?php
  92. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  93. echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
  94. if ($addRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
  95. echo $typeOptions;
  96. echo "</select>";
  97. ?>
  98. <a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $addRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
  99. </td>
  100. </tr>
  101. </table>
  102. </td>
  103. </tr>
  104. <?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?>
  105. <tr>
  106. <td class="admin-td">
  107. <table>
  108. <tr>
  109. <td width="120">浏览权限:</td>
  110. <td width="360">
  111. <select name="arcrank" id="arcrank" class="admin-input-sm">
  112. <option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option>
  113. <?php
  114. $urank = $cuserLogin->getUserRank();
  115. $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
  116. $dsql->Execute();
  117. while($row = $dsql->GetObject()) {
  118. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  119. }
  120. ?>
  121. </select>
  122. <span>(暂不支持静态)</span>
  123. </td>
  124. </tr>
  125. </table>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td align="center" class="admin-td">
  130. <button type="submit" class="btn btn-success btn-sm">保存</button>
  131. <button type="button" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
  132. </td>
  133. </tr>
  134. </table>
  135. </form>
  136. <script>
  137. function checkSubmit() {
  138. if (document.form1.title.value == "") {
  139. ShowMsg("文档标题不能为空");
  140. document.form1.title.focus();
  141. return false;
  142. }
  143. }
  144. </script>
  145. </body>
  146. </html>