社区帖子发表

发帖代码:

  1. <form class="input-border club-form autoAjaxSubmit"
  2. method="post"
  3. action="#(CPATH)/club/doPublishPost"
  4. data-ok-function="ok">
  5. <div class="row">
  6. <div class="col-md-2">
  7. <div class="form-group">
  8. <select class="form-control" name="categoryid">
  9. <option value="">==请选择帖子分类==</option>
  10. #for(c : clubCategories)
  11. <option value="#(c.id)">#(c.title ??)</option>
  12. #end
  13. </select>
  14. </div>
  15. </div>
  16. <div class=" col-md-10">
  17. <div class="form-group">
  18. <input class="form-control" type="text" placeholder="标题:一句话描述问题,尽量涵盖问题重点。" name="title">
  19. </div>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <textarea class="form-control" id="editor1" name="content" rows="16"></textarea>
  24. </div>
  25. <div class="verification">
  26. <div class="verification-code">
  27. <input type="text" name="captcha" placeholder="请输入验证码">
  28. <img src="#(CPATH)/commons/captcha" onclick="this.src='#(CPATH)/commons/captcha?d='+Math.random();" cdn-exclude />
  29. </div>
  30. <div class="verification-btn">
  31. <button type="submit" class="btn btn-primary" >发布</button>
  32. </div>
  33. </div>
  34. </form>

效果如下:

社区帖子发表 - 图1