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

76 lines
3.9KB

  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. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  7. <title>发布<?php echo $cInfos['typename'];?>-会员中心-<?php echo $cfg_webname;?></title>
  8. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="/static/web/css/style.css">
  11. </head>
  12. <body class="body-bg">
  13. <?php obtaintheme('top.htm');?>
  14. <main class="container py-3">
  15. <div class="pannel-main-container shadow-sm rounded">
  16. <nav aria-label="breadcrumb">
  17. <ol class="breadcrumb">
  18. <li class="breadcrumb-item"><a href="/">首页</a></li>
  19. <li class="breadcrumb-item"><a href="<?php echo $cfg_memberurl;?>/">会员中心</a></li>
  20. <li class="breadcrumb-item">发布<?php echo $cInfos['typename'];?></li></li>
  21. </ol>
  22. </nav>
  23. <form name="addcontent" action="<?php echo $cfg_memberurl;?>/archives_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);">
  24. <input type="hidden" name="dopost" value="save">
  25. <input type="hidden" name="channelid" value="<?php echo $channelid;?>">
  26. <input type="hidden" id="litpic" name="litpic">
  27. <div class="form-group row">
  28. <label class="col-sm-2 col-form-label" for="title">标题</label>
  29. <div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入标题"></div>
  30. </div>
  31. <div class="form-group row">
  32. <label class="col-sm-2 col-form-label" for="tags">标签</label>
  33. <div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" placeholder="请输入标签"></div>
  34. </div>
  35. <div class="form-group row">
  36. <span class="col-sm-2 col-form-label">缩略图</span>
  37. <div class="col-sm-10">
  38. <img id="imgLitpic" src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3">
  39. <span class="btn btn-success btn-sm" id="btnUploadLitpic">上传缩略图</span>
  40. <input id="iptLitpic" type="file" name="iptLitpic" class="d-none">
  41. </div>
  42. </div>
  43. <div class="form-group row">
  44. <label class="col-sm-2 col-form-label" for="writer">作者</label>
  45. <div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div>
  46. </div>
  47. <div class="form-group row">
  48. <label class="col-sm-2 col-form-label" for="typeid">发布栏目</label>
  49. <div class="col-sm-10">
  50. <?php
  51. $typeOptions = GetOptionList(0,$channelid);
  52. echo "<select name='typeid' id='typeid' class='form-control'>";
  53. echo "<option value='0' selected>请选择文档栏目</option>";
  54. echo $typeOptions;
  55. echo "</select>";
  56. ?>
  57. </div>
  58. </div>
  59. <div class="form-group row">
  60. <label class="col-sm-2 col-form-label" for="description">描述</label>
  61. <div class="col-sm-10"><textarea name="description" id="description" class="form-control" placeholder="请输入描述"></textarea></div>
  62. </div>
  63. <?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?>
  64. <div class="text-center">
  65. <button type="submit" class="btn btn-success btn-sm">提交</button>
  66. <button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
  67. <a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>" class="btn btn-outline-success btn-sm">返回</a>
  68. </div>
  69. </form>
  70. </div>
  71. </main>
  72. <?php obtaintheme('foot.htm');?>
  73. <script src="/static/web/js/user.main.js"></script>
  74. <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?>
  75. </body>
  76. </html>