国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

122 行
5.2KB

  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. <div class="container-fluid">
  23. <ol class="breadcrumb">
  24. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  25. <li class="breadcrumb-item"><a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
  26. <li class="breadcrumb-item active">发布文档</li>
  27. </ol>
  28. <div class="card shadow-sm">
  29. <div class="card-header">发布文档</div>
  30. <div class="card-body">
  31. <form name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data">
  32. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  33. <input type="hidden" name="cid" value="<?php echo $cid?>">
  34. <input type="hidden" name="dopost" value="save">
  35. <div class="table-responsive">
  36. <table class="table table-borderless">
  37. <tbody>
  38. <tr>
  39. <td width="160"><?php echo $cInfos['titlename'];?></td>
  40. <td width="650"><input type="text" name="title" id="title" class="admin-input-lg" required></td>
  41. <td width="160"></td>
  42. <td></td>
  43. </tr>
  44. <tr>
  45. <td>自定义属性</td>
  46. <td colspan="3">
  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. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> ";
  53. }
  54. ?>
  55. </td>
  56. </tr>
  57. <tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
  58. <td>缩略图</td>
  59. <td colspan="3">
  60. <input type="text" name="picname" id="picname" class="admin-input-lg">
  61. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
  62. <span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
  63. <button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
  64. <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
  65. <img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
  66. </td>
  67. </tr>
  68. <?php
  69. if ($cInfos['dfcid'] > 0) {
  70. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  71. } else {
  72. ?>
  73. <tr>
  74. <td>发布栏目</td>
  75. <td colspan="3">
  76. <span id="typeidct">
  77. <?php
  78. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  79. echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
  80. echo "<option value='0'>请选择文档栏目</option>";
  81. echo $typeOptions;
  82. echo "</select>";
  83. ?>
  84. </span>
  85. <a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid');" class="btn btn-success btn-sm">选择</a>
  86. </td>
  87. </tr>
  88. <?php }?>
  89. <?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');?>
  90. <tr>
  91. <td>浏览权限</td>
  92. <td colspan="3">
  93. <select name="arcrank" id="arcrank" class="admin-input-sm">
  94. <?php
  95. $urank = $cuserLogin->getUserRank();
  96. $dsql->SetQuery("SELECT * FROM `#@__arcrank` where adminrank<='$urank'");
  97. $dsql->Execute();
  98. while($row = $dsql->GetObject())
  99. {
  100. $selected = $row->rank == 0 ? ' selected' : '';
  101. echo "<option value='".$row->rank."'{$selected}>".$row->membername."</option>";
  102. }
  103. ?>
  104. </select>
  105. <span>(暂不支持静态)</span>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td align="center" colspan="4">
  110. <button type="submit" class="btn btn-success btn-sm">保存</button>
  111. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  112. </td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. </form>
  118. </div>
  119. </div>
  120. </div>
  121. </body>
  122. </html>