<!--<?php
list($face) = showfacedesign($winddb['icon'],1,'m');
print <<<EOT
-->
<div class="c mb10"></div>
<div id="showmessage"></div>
<form action="$baseUrl?&type=ajax&action=postReply" name="FORM" method="post"  onsubmit="return MC.sendPostReply('$baseUrl?&type=ajax&action=postReply',document.FORM)">
<table width="100%" style="table-layout:fixed;">
	<tr class="tr3 vt">
    	<td class="face" style="vertical-align:top;"><a class="img_50" href="{$db_userurl}$winduid"><i><img width="48" height="48" src="{$face}"></i></a></td>
        <td>
        	<div class="p_lr_10">
            <div class="replyEditor mb10">
                <input type="hidden" id="rid" name="rid" value="{$message[rid]}"/>
                <input type="hidden" id="parentMid" name="parentMid" value="{$message[mid]}"/>
<!--
EOT;
require_once PrintEot('wysiwyg_editor_message');
print <<<EOT
-->
                <div class="c"></div>
            </div>
<!--
EOT;
if($db_gdcheck & 8){
print <<<EOT
-->            
			<div class="mb10">
	          	<input class="input" type="text" name="gdcode" id="gdinput" size="5" onfocus="try{opencode('menu_gd',this)}catch(e){}" /><span class="mr5 cp" onclick="this.previousSibling.focus();">&nbsp;点此显示验证码</span>
				<div class="menu" id="menu_gd" style="display:none;"><img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，换一张" /></div>
			</div>
<!--
EOT;
}
print <<<EOT
-->              
            <span class="btn" style="margin:0 10px 0 0;"><span><button type="submit" name="Submit">发送</button></span></span><span class="s3">Ctrl + Enter 快速发布</span>
            </div>
		</td>
	</tr>
</table>
</form>
<div id="menu_face" class="menu" style="display:none;"></div>
<div id="menu_generalface" class="menu" style="display:none;"></div>
<script type="text/javascript" src="js/desktop/plugin.js"></script>
<script type="text/javascript" src="js/pw_search.js"></script>
<script type="text/javascript" src="js/lang/zh_cn.js"></script>
<script type="text/javascript" src="js/post.js"></script>
<script type="text/javascript">
var maxLength=200;
function wordlength(target)
{
	var val = target.value;
	var n = 2*val.length-val.replace(/[\u4e00-\u9fa5]/g,'').length;
	var val=target.value;
	while(n>maxLength)
	{
		var key = val.substr(-1);
		target.value=val.substr(0,val.length-1);
		val = target.value;
		n -= /[\u4e00-\u9fa5]/.test(key)?2:1;
	}
	str='('+n+'/'+maxLength+')';
	var next = target.nextSibling;
	next.innerHTML=str;
	if(n==maxLength){
		next.className='s3';
		target.maxLength = val.length;
	}else{
		next.className="s6";
		target.maxLength = maxLength;
	}
}
</script>
<!--
EOT;
?>-->