<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" aspcompat="true" ResponseEncoding="gb2312" Inherits="b2bNet.Include_refresh" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="Text/JavaScript" language="JavaScript">
function killErrors() {
return true;
}
window.onerror = killErrors;
<%If Not IsNull(AppConst.CookieUserID) Then%>
setTimeout("window.location.reload()",15000);//15秒刷新一次
<%End If%>
//即时通窗口
function show(id){
window.open("/SMS/send.aspx?id="+id,"sms_name","width=536,height=472,resizable=0,top=100,left=200,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
}
function sms(){
window.open('/SMS/main.aspx','<%=AppConst.SiteNamefw%>','width=278px,height=500px,left=100px,top=120px,resizable=no');
}
function checkfriend(id){//验证信息
window.open("/SMS/checkinfo.aspx?id="+id,"","width=400,height=160,top=200,left=340");
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>你有新消息提示</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {	margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;margin:0px;font-size: 9pt;background:url(/images/top_bj.jpg);
background-position:center;
text-decoration: none;
scrollbar-face-color: #f6f6f6;
scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #cccccc; scrollbar-3dlight-color: #cccccc; scrollbar-arrow-color: #330000; scrollbar-track-color: #f6f6f6; scrollbar-darkshadow-color: #ffffff;}
-->
</style>
<link href="/<%=AppConst.SkinPath%>/style.css" rel="stylesheet" type="text/css" />
</head>
<body <%If Not rsmsg.EOF Then%>onload="javascript:show('<%=rsmsg("sendnmb").Value%>')"<%End If%>>
<%  If IsNull(AppConst.CookieUserID) Then%>
<form name="lform" method="post" action="<%=AppConst.SiteUrl%>/<%=AppConst.Userpath %>/login.aspx" target="_parent" onsubmit="return lcheck()">
    <table style="background-image:url(/images/top_bj.jpg); height:25; width:370"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td style="height:25; width:30"><div align="center">用户</div></td>
                <td style="width:40"><input name="UserID" type="text" id="UserID" size="6" style="width:55;border:1px solid #BBC0CA;font-family:宋体;" /></td>
                <td style="width:30"><div align="center">密码</div></td>
                <td style="width:40"><input name="UserPWD" type="password" id="UserPWD" size="6" style="width:55;border:1px solid #BBC0CA;font-family: 宋体;" /></td>
                <td style="width:30"><div align="center">验证</div></td>
                <td><input name="checkcode" type="text" id="checkcode" size="4" style="border:1px solid #BBC0CA;font-family: 宋体;" />&nbsp;</td>
                <td><img src="GetCode.aspx" alt="验证码,看不清楚?请点击刷新验证码" style="cursor: pointer;" onclick="this.src='GetCode.aspx?refresh='+Math.random();" /></td>
                <td style="width:60"><input name="send" id="send" type="hidden" value="login" /><input name="image" type="image" class="noo" src="../images/icon_submit01.gif" /></td>
           </tr>
    </table>
</form>
<%End If 
    Dim lcount = Session("lcount")
    If IsNull(lcount) Then lcount = 0
    lcount = lcount + 1
    Session("lcount") = lcount
    If Not rsmsg.eof Then
%>
<table style="background-image:url(/images/top_bj.jpg); height:25; width:278" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td style="background-image:url(/images/top_bj.jpg); height:25; width:28" valign="bottom"><div align="center">
	<img src="<%=AppConst.SiteUrl%>/SMS/image/face/ms.gif"  style="cursor:hand" alt="<%=rsmsg("sendnmb").Value%>说:<%=rsmsg("message").Value%>" /></div></td>
    <td style="background-image:url(/images/top_bj.jpg); width:250" valign="bottom"><p style="margin-top:1px"><marquee direction="left" scrollamount="2"><a href="#" onclick="show('<%=rsmsg("sendnmb").Value%>')" title="<%=rsmsg("sendnmb").Value%>说:<%=rsmsg("message").Value%>"><%=rsmsg("sendnmb").Value%>说:<%=left(rsmsg("message").Value,40)%></a>
    </marquee></p></td>
  </tr>
</table>
<%  ElseIf Not srs.eof Then%>
<bgsound src="<%=AppConst.SiteUrl%>/images/sms.wma">
<table style="background-image:url(/images/top_bj.jpg); height:25; width:368"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td style="width:28"><div align="center"><img src="../images/alert.gif" width="17" height="16" /></div></td>
    <td style="width:340"><a href="#" onclick="checkfriend('<%=srs("sendnmb").Value%>')">你有新的系统消息，请点击查看</a></td>
  </tr>
</table>
  <%Else%>
	<table style="background-image:url(../images/top_bj.jpg); height:25; width:370" border="0" cellpadding="0" cellspacing="0">
	    <tr><td style="width:28"><div align="center">
        <img src="/SMS/image/face/m.gif" style="cursor:hand" onclick="sms()" /></div></td>
	    <td style="width:160"><a href="#" onclick='sms()'><%=AppConst.SiteNamefw%>,我的贸易帮手！</a></td>
	    <td style="width:91" align="center"><a href="../<%=AppConst.Userpath%>/User_system_index.aspx" target="_parent"><strong>进入管理中心</strong></a>┊</td>
	    <td style="width:91" align="center"><a href="<%=GetCompanyUrl(AppConst.CookieUserID)%>" target="_blank"><b>访问我的网站</b></a>┊</td>
        </tr></table>
<%End If%>
</body>
<%Page_Loaded()%>
</html>