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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改分类模型</title>
  7. <link rel="stylesheet" href="../static/web/font/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="js/main.js"></script>
  19. <script src="../static/web/js/cropper.min.js"></script>
  20. </head>
  21. <body>
  22. <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" 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 width="98%" align="center" id="needset" class="admin-border my-3">
  28. <tr bgcolor="#f5f5f5">
  29. <td class="admin-td">修改分类文档</td>
  30. </tr>
  31. <tr>
  32. <td class="admin-td">
  33. <table>
  34. <tr>
  35. <td width="90"><?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="90">自定义属性:</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 class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'> {$trow->attname}[{$trow->att}]</label>";
  54. else
  55. echo "<label class='mr-2'><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="90">缩略图:</td>
  68. <td width="620">
  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" class="l-height-28"> 远程</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="90">发布栏目:</td>
  90. <td>
  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. <i class="btn btn-sm fa fa-search" onclick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $addRow['typeid'];?>')" title="快捷选择"></i>
  99. </td>
  100. </tr>
  101. </table>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td class="admin-td">
  106. <table>
  107. <tr>
  108. <td width="90">浏览权限:</td>
  109. <td>
  110. <select name="arcrank" id="arcrank" class="admin-input-sm">
  111. <option value='<?php echo $addRow["arcrank"];?>'><?php echo $addRow["rankname"];?></option>
  112. <?php
  113. $urank = $cuserLogin->getUserRank();
  114. $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank' And `rank`<>'{$addRow["arcrank"]}' ");
  115. $dsql->Execute();
  116. while($row = $dsql->GetObject()) {
  117. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  118. }
  119. ?>
  120. </select>
  121. </td>
  122. </tr>
  123. </table>
  124. </td>
  125. </tr>
  126. <?php }?>
  127. <?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?>
  128. <tr bgcolor="#f5f5f5">
  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>