<?php if(!defined('IN_SDCMS')) exit;?>
<div class="row bbs">
	<div class="bbs-left">
		{include file="include/bbs/left.php"}
	</div>
	<div class="bbs-right">
		<div class="bbs-right-title">发表主题</div>
		<div class="bbs-post">
			<!--form begin-->
			<form class="ui-form" method="post">
				<div class="form-group row">
					<label class="col-2 col-form-label">分类：</label>
					<div class="col-10">
						<select name="classid" data-rule="分类:required;int;" class="form-ip">
							<option value="">请选择分类</option>
							{foreach $bbscate as $key=>$val}
							<option value="{$val['cateid']}"{if $fid==$val['cateid']} selected{/if}>{$val['catename']}</option>
							{/foreach}
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label class="col-2 col-form-label">标题：</label>
					<div class="col-10">
						<input type="text" name="title" maxlength="50" class="form-ip" data-rule="标题:required;">
					</div>
				</div>
				<div class="form-group row">
					<label class="col-2 col-form-label">内容：</label>
					<div class="col-10">
						<script id="content" name="content" type="text/plain" style="height:300px;"></script>
						<script>UE.getEditor('content',{serverUrl:'{U("upload/index")}',toolbars:editorBbs});</script>
					</div>
				</div>
				{if sdcms[bbs_post_code]==1}
				<div class="form-group row">
					<label class="col-2 col-form-label">验证码：</label>
					<div class="col-6">
						<div class="input-group">
							<input type="text" class="form-ip radius-right-none" name="code" id="code" size="8" maxlength="8" data-rule="验证码:required;">
							<span class="code"><img src="{U('code')}" height="40" id="verify" title="点击更换验证码"></span>
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group row">
					<label class="col-2 col-form-label"></label>
					<div class="col-10">
						<button type="submit" class="btn btn-blue mr">发布主题</button>
						<button type="button" class="btn" onClick="location.href='{N('bbs')}'">返回</button>
					</div>
				</div>
			</form>
			<!--form over-->
		</div>
		
	</div>
</div>