<div class="col-md-2">
<div class="box box-primary">
	<div class="box-body no-padding">
		<ul class="nav nav-pills nav-stacked">
			{INBOX}
			{SENTBOX}
			{OUTBOX}
			{SAVEBOX}
		</ul>
	</div>
</div>
</div><!-- /.col-md-2 -->

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

<form action="{S_PRIVMSGS_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }">
{S_HIDDEN_FIELDS}

<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">{BOX_NAME} {L_MESSAGE}</h3>
	</div>
	<div class="box-body no-padding">
		<div class="mailbox-read-info">
			<h3>{POST_SUBJECT}</h3>
			<h5>{L_FROM}: {FROM_USER} {L_TO}: {TO_USER}
			<span class="mailbox-read-time pull-right">{POST_DATE}</span></h5>
		</div>
	</div>
	<div class="mailbox-read-message">
		<div class="post_wrap"><div class="post_body">{PM_MESSAGE}</div></div>
	</div>
	<div class="box-footer">
		<div class="pull-right">
			<!-- IF REPLY_PM -->{REPLY_PM}<!-- ENDIF -->
			{QUOTE_PM} {EDIT_PM}
		</div>
			<button type="submit" name="delete" class="btn btn-default btn-sm" data-toggle="tooltip" data-container="body" title="{L_DELETE_MESSAGE}">
			<i class="fa fa-trash-o"></i></button>
			<button type="submit" name="save" class="btn btn-default btn-sm" data-toggle="tooltip" data-container="body" title="{L_SAVE_MESSAGE}">
			<i class="fa fa-fw fa-save"></i>
	</div>
</div>

</form>

<!-- IF QUICK_REPLY -->
<script type="text/javascript">
ajax.callback.posts = function(data){
    $('#view_message').show();
	    $('.view-message').html(data.message_html);
	    initPostBBCode('.view-message');
			var maxH   = screen.height - 490;
		$('.view-message').css({ maxHeight: maxH });
};
</script>
<form action="{S_PRIVMSGS_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }">
{S_HIDDEN_FIELDS}

<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">{L_QUICK_REPLY}</h3>
	</div>
	<div class="box-body">
		<div class="form-group">
			<input type="text" name="username" class="form-control" value="{MESSAGE_FROM}" placeholder="{L_TO}:">
		</div>
		<div class="form-group">
			<input type="text" name="subject" class="form-control" value="{QR_SUBJECT}" placeholder="{QR_SUBJECT}:">
		</div>
		<div id="view_message" class="hidden">
			<div class="tLeft view-message"></div>
		</div>
		<div class="quick_reply_box bCenter">
			<!-- INCLUDE posting_editor.tpl -->
		</div>
	</div>
</div>

</form>
<!-- ENDIF / QUICK_REPLY -->

</div><!-- /.col-md-10 -->