<div class="col-md-12">

<!-- IF TPL_SHOW_NEW_POSTS -->
<!--========================================================================-->

<table class="topic" cellpadding="0" cellspacing="0">
<tr>
	<td colspan="2" class="catTitle td2">{L_NEW_POSTS_PREVIEW}</td>
</tr>
<tr>
	<th class="thHead td1">{L_AUTHOR}</th>
	<th class="thHead td2">{L_MESSAGE}</th>
</tr>
<!-- BEGIN new_posts -->
<tr class="{new_posts.ROW_CLASS}">
	<td width="120" class="poster_info td1">
		<p class="nick" onclick="bbcode.onclickPoster('{new_posts.POSTER_NAME_JS}');">
			<a href="#" onclick="return false;">{new_posts.POSTER}</a>
		</p>
		<p><img src="{SPACER}" width="120" height="10" alt="" /></p>
	</td>
	<td class="message td2">
		<div class="post_head pad_4">{MINIPOST_IMG_NEW} {new_posts.POST_DATE}</div>
		<div class="post_wrap post_body">{new_posts.MESSAGE}</div>
	</td>
</tr>
<!-- END new_posts -->

</table>

<div class="spacer_12"></div>

<!--========================================================================-->
<!-- ENDIF / TPL_SHOW_NEW_POSTS -->

<!-- IF TPL_PREVIEW_POST -->
<!--========================================================================-->
<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">{L_PREVIEW}</h3>
	</div>
	<div class="box-body">
		<div class="post_wrap post_body">{PREVIEW_MSG}</div>
	</div>
</div>

<!--========================================================================-->
<!-- ENDIF / TPL_PREVIEW_POST -->

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }" {S_FORM_ENCTYPE}>
{S_HIDDEN_FORM_FIELDS}
{ADD_ATTACH_HIDDEN_FIELDS}
{POSTED_ATTACHMENTS_HIDDEN_FIELDS}
<div class="box box-widget">
<div class="box-header with-border">
	<h3 class="box-title">{POSTING_TYPE_TITLE}</h3>
</div>
<div class="box-body">
<div class="col-md-12" id="view_message" style="display: none;">
	<div class="view-message"></div>
</div>
<div class="col-md-9">
<!-- IF POSTING_USERNAME -->
<div class="form-group">
	<label>{L_USERNAME}</label>
	<div class="input-group">
		<input type="text" name="username" tabindex="1" class="form-control" value="{USERNAME}" />
		<span class="input-group-btn"><button class="btn btn-info btn-flat" type="submit" name="usersubmit" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', IWP_US);return false;"><i class="fa fa-fw fa-user"></i></span></button>
	</div>
</div>
<!-- ENDIF -->
<!-- IF POSTING_SUBJECT -->
<div class="form-group">
	<label>{L_SUBJECT}</label>
	<input type="text" name="subject" tabindex="2" class="form-control" value="{SUBJECT}" />
</div>
<!-- ENDIF -->
<!-- INCLUDE posting_editor.tpl -->
<!-- IF ATTACHBOX --><div class="row"><!-- INCLUDE posting_attach.tpl --></div><!-- ENDIF -->
</div>
<!-- IF IN_PM -->
<!-- ELSEIF LOGGED_IN -->
<div class="col-md-3">
<label>{L_MESSAGE}</label>
<table class="table table-bordered" id="smilies">
<!-- BEGIN smilies_row -->
<tr>
	<!-- BEGIN smilies_col -->
	<td><a href="#" onclick="bbcode && bbcode.emoticon('{smilies_row.smilies_col.SMILEY_CODE}'); return false;"><img src="{smilies_row.smilies_col.SMILEY_IMG}" alt="" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
	<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr>
	<td colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_bbsmilies', IWP_SM); return false;" target="_bbsmilies" class="med">{L_MORE_EMOTICONS}</a></td>
</tr>
<!-- END switch_smilies_extra -->
</table><!--/smilies-->

<div class="form-group">
	<label>{L_OPTIONS}</label>
	<!-- IF SHOW_UPDATE_POST_TIME -->
	<div class="checkbox">
		<label for="update_post_time"><input type="checkbox" id="update_post_time" name="update_post_time" <!-- IF UPDATE_POST_TIME_CHECKED -->checked="checked"<!-- ENDIF --> />{L_UPDATE_POST_TIME}</label>
	</div>
	<!-- ENDIF -->
	<!-- IF SHOW_NOTIFY_CHECKBOX -->
	<div class="checkbox">
		<label for="notify"><input type="checkbox" id="notify" name="notify" {S_NOTIFY_CHECKED} />{L_NOTIFY}</label>
	</div>
	<!-- ENDIF -->
	<!-- BEGIN switch_type_toggle -->
	<tr>
		<td colspan="2" class="row2 tCenter pad_6">{S_TYPE_TOGGLE}</td>
	</tr>
	<!-- END switch_type_toggle -->
</div>
<!-- IF ATTACHBOX -->
<!-- IF POSTER_RGROUPS -->
<div class="form-group">
	<label>{L_POST_RELEASE_FROM_GROUP}</label>
	<select name="poster_rg" class="form-control">
		<option value="-1">{L_CHOOSE_RELEASE_GROUP}</option>
		{POSTER_RGROUPS}
	</select>
	<div class="checkbox">
		<label><input type="checkbox" name="attach_rg_sig" <!-- IF ATTACH_RG_SIG -->checked<!-- ENDIF -->/>{L_ATTACH_RG_SIG}</label>
	</div>
</div>
<!-- ENDIF / POSTER_RGROUPS -->
<!-- ENDIF / ATTACHBOX -->
</div>
<!-- ENDIF / LOGGED_IN -->

</div>
</form>

<!-- IF TPL_TOPIC_REVIEW -->
<!--========================================================================-->
<div class="box box-widget">
	<div class="box-footer box-comments">
		<!-- BEGIN review -->
		<div class="box-comment">
			<div class="comment-text">
				<span class="username" onclick="bbcode.onclickPoster('{review.POSTER_NAME_JS}');"><a href="#" onclick="return false;">{review.POSTER}</a><span class="text-muted pull-right">{MINIPOST_IMG} {review.POST_DATE}</span></span>
					<div class="post_wrap post_body">{review.MESSAGE}</div>
			</div>
		</div>
		<!-- END review -->
	</div>
</div>
<!--========================================================================-->
<!-- ENDIF / TPL_TOPIC_REVIEW -->

</div>