社区帖子发表
发帖代码:
<form class="input-border club-form autoAjaxSubmit"
method="post"
action="#(CPATH)/club/doPublishPost"
data-ok-function="ok">
<div class="row">
<div class="col-md-2">
<div class="form-group">
<select class="form-control" name="categoryid">
<option value="">==请选择帖子分类==</option>
#for(c : clubCategories)
<option value="#(c.id)">#(c.title ??)</option>
#end
</select>
</div>
</div>
<div class=" col-md-10">
<div class="form-group">
<input class="form-control" type="text" placeholder="标题:一句话描述问题,尽量涵盖问题重点。" name="title">
</div>
</div>
</div>
<div class="form-group">
<textarea class="form-control" id="editor1" name="content" rows="16"></textarea>
</div>
<div class="verification">
<div class="verification-code">
<input type="text" name="captcha" placeholder="请输入验证码">
<img src="#(CPATH)/commons/captcha" onclick="this.src='#(CPATH)/commons/captcha?d='+Math.random();" cdn-exclude />
</div>
<div class="verification-btn">
<button type="submit" class="btn btn-primary" >发布</button>
</div>
</div>
</form>