<!--#include file="_header.html" -->
<script language="javascript">
function showVerify(obj)
{
	var l = getOffsetLeft(obj);
	var t = getOffsetTop(obj) - 70;	
	$("verifyCode").innerHTML= "<img src='<%=Fetch.ValidateCodeFileName%>?time="+ new Date()+"' alt='看不清图片请点空白处' border='1' style='cursor:hand; margin-top:-1px'>";
	$("verifyCode").style.left = l + "px";
	$("verifyCode").style.top = t + "px";
	$("verifyCode").style.display = 'block';
}
function hiddenVerify()
{	
	$("verifyCode").innerHTML="";
}
</script>
<div class="mainbox">
 <div class="notice">
    <span>
      <!--#include file="_nav.html"-->
    </span>
 </div>
</div>
<div style="clear:both"></div>
<!--{if(Get("draft")==string.Empty)}-->
<link rel="stylesheet" href="templates/<%=CurrentTemplateName%>/scripts/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/jquery.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/thickbox.js"></script>
<table class="mainbox tableborder" cellspacing="0" cellpadding="0">
	<tr>
		<th>
			阅读短消息</th>
			<th><span style="float:right">
			<!--{if(prev_messageid!=null)}-->
			<a href="<%="message_read.aspx?messageid="+prev_messageid.ToString()+"&style=new_style"%>">上一条</a> 
			<!--{endif}-->
			<!--{if(next_messageid!=null)}-->
			<a href="<%="message_read.aspx?messageid="+next_messageid.ToString()+"&style=new_style"%>">下一条</a>
			<!--{endif}-->
			</span></th>
	</tr>
	<tr id="user_nav" class="fon3">
		<td width="10%">消息方向</td>
		<td class="row_no">
			<ul style="display:inline">
				<li style="display:block; float:left">
					<%=direction%>
					&nbsp;
					<%=name%>
				</li>
				<li style="display:block; float:right">
					<%=sendtime%>
				</li>
			</ul>
		</td>
	</tr>
	<tr>
		<td>消息标题</td>
		<td class="row_no"><ul style="display:inline">
				<li style="display:block; float:left">
					<%=title%>
				</li>
				<li style="display:block; float:right">
					<%=reply%>
				</li>
			</ul>
		</td>
	</tr>
	<tr id="user_nav" class="fon3">
		<td valign="top">消息内容</td>
		<td style="line-height:20px" class="row_no"><%=content%></td>
	</tr>
</table>
</td> </tr> </table> 
<!--{else}-->
<script language='javascript' src='templates/<%=Dvbbs.Utils.TemplateInfo.CurrentTemplateName%>/scripts/message_send.js'></script>
<form id="draftmessage" action="message_read.aspx">
	<table class="mainbox tableborder" cellspacing="0" cellpadding="0">
		<tr>
			<th colspan="2">
				修改短消息</th>
		</tr>
		<tr>
			<td>接收者昵称 <input type="hidden" name="messageid" value="<%=messageid%>" id="messageid"/>
				<input type="hidden" name="self" value=<%=user.Name%> id="self"/>
			</td>
			<td><input name="recipient" id="recipient" type="text" style="width:120px" maxlength="12" value="<%=name_nohref%>" />
				目前设置不支持同时发送给多人</td>
		</tr>
		<tr>
			<td>消息标题</td>
			<td>
				<input name="title" id="title" type="text"  style="width:420px" maxlength="50" value="<%=title%>" /></td>
		</tr>
		<tr>
			<td valign='top'>消息内容<br /><br />1000字以内</td>
			<td><textarea name="content" id="content" style="width:99%" rows="8"><%=Server.HtmlEncode(content)%></textarea></td>
		</tr>
		<!--{if(isCheckVerifyCode)}-->
		<tr>
			<td>验证码</td>
			<td><input type='text' name='verification' autocomplete="Off" maxlength='6' size="10"
					ID="verification" autocomplete="Off" onFocus="IEvent('focus',this);showVerify(this);"
					onBlur="IEvent('blur',this);hiddenVerify();" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout', this)" />
				<div id="verifyCode" name="verifyCode" style="position:absolute;display:none;"></div>
			</td>
		</tr>
		<!--{endif}-->
		<tr>
			<td colspan="2" align="center">
				<input type='checkbox' class="checkbox" value='存为草稿' ID="Submit3" NAME="draft2" />存为草稿&nbsp;&nbsp;
				<input type='submit' value='发 送' onclick='return chkPost()' ID="Submit1" name="send" class="button_off"
					onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
	</table>
</form>
<br />
<!--{endif}-->
<!--#include file="_footer.html" -->