<script src="<{$config.weburl}>/script/jquery.niceforms.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(".checkbox").dgStyle();
});
</script>
<div class="admin_right_top"><{$lang.fbs}></div>
<form action="" method="post" >
<table class="admin_table">
   <{if $smarty.get.msgsend=='error'}>
   	<tr><td height="32" colspan="7"><FONT color="red" size="5"><{$lang.msg_2}></font></td></tr>
   <{/if}>
    <tr>
        <td width="16%" class="td"><{$lang.fname}></td>
        <td>
        <input id="sendid" name="senduser"  autocomplete="off" type="text" value="<{$auser}><{foreach item=list key=num from=$re}><{$list.username}>;<{/foreach}>"/>
   		</td>
    </tr>
    <tr>
        <td class="td"><{$lang.mt}></td>
        <td><input name="msgtitle" value="<{if $de.sub}>Re:<{$de.sub}><{/if}>" type="text" id="msgtitle" maxlength="100" /></td>
    </tr>
    <tr>
        <td colspan="2">
		<script charset="utf-8" src="lib/kindeditor/kindeditor-min.js"></script>             
        <script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('textarea[name="msgcon"]', {
                langType : 'en'
            });
        });
        </script>
        <textarea name="msgcon" style="width:99%; height:400px;"><{$de.edit_con}></textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2"><label class="checkbox"><input type="checkbox" name="semail"  value="1" /><{$lang.msmail}></label></td>
    </tr>
    <tr> 
        <td colspan="2"><input type="submit" name="msgsend" id="msgsend" value="<{$lang.ms}>" /></td>
    </tr>
</table>
</form>