<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Inherits="SuperWeibo.Page._Computer_WeiXin_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>微信</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="zh-cn" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="distribution" content="global" />
<meta http-equiv="x-ua-compatible" content="IE=edge">
<script language="javascript" src="/Common/jQuery-1.3.2.js"></script>
<script language="javascript" src="/Common/jBasic.js"></script>
<link href="style.css" rel="stylesheet" type="text/css"/>
<script language="javascript">

function imgAutosize(obj)
{
	if(obj.width > 250) 
	{
		obj.width = 250;
	}
}

</script>
</head>
<body topmargin="0" leftmargin="0">
<div id="timer" style="width:320px;height:19px;padding-top:3px;background-color:#000000;background-image:url(/images/weixin/weixin-00.gif);color:#3F9BBF;text-align:center;">
	<% =DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") %>
</div>
<div style="width:320px;height:45px;background-color:#000000;background-image:url(/images/weixin/weixin-01.jpg);">
	<table width="320" height="45" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
	<tr>
		<td style="font-size:20px;color:#FFFFFF;text-align:center;">TO: <% =UserName %></td>
		<td style="width:63px;">
			<div style="float:right;width:63px;height:36px;background-image:url(/images/weixin/weixin-06.jpg);background-position:-0px -8px;cursor:pointer;" onclick="window.location='Friends.aspx';"></div>
		</td>
	</tr>
	</table>
</div>
<div id="divMain" name="divMain"   style="width:300px;height:375px;padding-left:10px;padding-right:10px;background-color:#000000;background-color:#F3F1DA;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;" onselectstart="return false;" oncontextmenu="self.event.returnValue=false">

	<% =PageBuffer %>

</div>
<div style="width:320px;height:44px;background-color:#000000;">
	<form id="frmWeiXin" name="frmWeiXin" action="Default.aspx#Z" method="post">
	<table width="320" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
	<tr>
	<td>
		<div style="width:44px;height:44px;background-image:url(/images/weixin/weixin-08.jpg);background-position:-0px -0px;cursor:pointer;" onclick="window.location='/Computer/WeiXin/Upload.aspx?listener=<% =UserId %>'"></div>
	</td>
	<td>
		<div style="width:217px;height:30px;padding:7px;padding-left:5px;background-image:url(/images/weixin/weixin-08.jpg);background-position:-44px -0px;">
		<input type="hidden" id="listener" name="listener" value="<% =UserId %>">
		<input type="text" id="content" name="content" value="" style="width:210px;border:solid 1px #FFFFFF;font-size:18px;">
		</div>
	</td>
	<td>
		<div style="width:47px;height:44px;background-image:url(/images/weixin/weixin-08.jpg);background-position:-273px -0px;cursor:pointer;" onclick="Finish()"></div>
	</td>
	</tr>
	</table>
	</form>
</div>
<a name="Z"></a>
<script language="javascript" src="wx.js"></script>
<script language="javascript">
<!--

function TimeShow() { 
	$("#timer").html(TimeString()); 

	$.get("/Computer/WeiXin/Query.aspx" , { rnd : Math.random(), last : last_index, listener : id_listener }, function(result) { 
		if(result != last_index)
		{
			document.frmWeiXin.submit();
			document.scrollTop = 20000;
			return true;
		}
	});
}

setInterval("TimeShow()", 1000);

function Finish()
{
	var content = $("#content").val();
	if(content.length == 0) { alert("<% =Z.C("请输入内容") %>"); return false; } 
	if(content.length > 256) { alert("<% =Z.C("输入内容太长（限256个字）") %>"); return false; } 
	document.frmWeiXin.submit();
	return true;
}

function Download(u,v,w,x)
{
	window.open("/Computer/WeiXin/Download.aspx?u=" + u + "&v=" + v + "&w=" + w + "&x=" + x);
}

document.getElementById("divMain").scrollTop = 20000;
setTimeout("document.getElementById('divMain').scrollTop = 20000;", 1000);

//-->
</script>
</body>
</html>
