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

102 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. <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;?>/album_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  24. <input type="hidden" name="dopost" value="save">
  25. <input type="hidden" name="channelid" value="<?php echo $channelid;?>">
  26. <input type="hidden" name="imagebody" id="imagebody">
  27. <input type="hidden" id="litpic" name="litpic">
  28. <div class="form-group row">
  29. <label class="col-sm-2 col-form-label" for="title">标题</label>
  30. <div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入标题"></div>
  31. </div>
  32. <div class="form-group row">
  33. <label class="col-sm-2 col-form-label" for="tags">标签</label>
  34. <div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" placeholder="请输入标签"></div>
  35. </div>
  36. <div class="form-group row">
  37. <span class="col-sm-2 col-form-label">缩略图</span>
  38. <div class="col-sm-10">
  39. <img id="imgLitpic" src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3">
  40. <span class="btn btn-success btn-sm" id="btnUploadLitpic">上传缩略图</span>
  41. <input id="iptLitpic" type="file" name="iptLitpic" class="d-none">
  42. </div>
  43. </div>
  44. <div class="form-group row">
  45. <label class="col-sm-2 col-form-label" for="writer">作者</label>
  46. <div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div>
  47. </div>
  48. <div class="form-group row">
  49. <label class="col-sm-2 col-form-label" for="typeid">发布栏目</label>
  50. <div class="col-sm-10">
  51. <?php
  52. $typeOptions = GetOptionList(0,$channelid);
  53. echo "<select name='typeid' id='typeid' class='form-control'>";
  54. echo "<option value='0' selected>请选择文档栏目</option>";
  55. echo $typeOptions;
  56. echo "</select>";
  57. ?>
  58. </div>
  59. </div>
  60. <div class="form-group row">
  61. <label class="col-sm-2 col-form-label" for="description">描述</label>
  62. <div class="col-sm-10"><textarea name="description" id="description" class="form-control" placeholder="请输入描述"></textarea></div>
  63. </div>
  64. <?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?>
  65. <div class="form-group row">
  66. <span class="col-sm-2 col-form-label">正文</span>
  67. <div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div>
  68. </div>
  69. <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width;?>">
  70. <input name="prow" type="hidden" value="<?php echo $cfg_album_row;?>">
  71. <input name="pcol" type="hidden" value="<?php echo $cfg_album_col;?>">
  72. <input name="ddmaxwidth" type="hidden" value="<?php echo $cfg_album_ddwidth;?>">
  73. <div class="form-group">
  74. <span class="input-text">表现方式:<span>
  75. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示</label>
  76. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示</label>
  77. <label class="input-text mb-0"><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示</label>
  78. <label id="spagelist" class="input-text mb-0" style="display:none">每页图片数:<input name="pagpicnum" id="pagpicnum" class="form-control w-25" value="<?php echo $cfg_album_pagesize;?>"></label>
  79. </div>
  80. <div class="form-group">
  81. <span>图片数目:</span>
  82. <input type="text" name="picnum" value="5" id="picnum" class="form-control w-25">
  83. <button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload(0);">添加</button>
  84. </div>
  85. <div id="uploadfield"></div>
  86. <script>
  87. MakeUpload(2);
  88. </script>
  89. <div class="text-center">
  90. <button type="submit" class="btn btn-success btn-sm">提交</button>
  91. <button type="reset" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
  92. <a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>" class="btn btn-outline-success btn-sm">返回</a>
  93. </div>
  94. </form>
  95. </div>
  96. </main>
  97. <?php obtaintheme('foot.htm');?>
  98. <script src="/static/web/js/user.main.js"></script>
  99. <script src="/static/web/js/user.album.js"></script>
  100. <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?>
  101. </body>
  102. </html>