提交 | 用户 | age
|
a6a76f
|
1 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
F |
2 |
<%@page import="com.yc.sdk.shopping.util.SettingKey"%> |
|
3 |
<% |
|
4 |
//得到URL |
|
5 |
String URL =SettingKey.getHostUrl(request); |
|
6 |
%> |
|
7 |
<%@ include file="checkUser.jsp" %> |
4a551f
|
8 |
<!DOCTYPE html > |
a6a76f
|
9 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
F |
10 |
<head> |
|
11 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
12 |
<script type="text/javascript" src="<%=URL%>/js/jquery.js"></script> |
|
13 |
<title></title> |
|
14 |
<script type="text/javascript"> |
|
15 |
var num ="<%=session.getAttribute("@usercode").toString()%>"; |
|
16 |
function leftHeight() { |
|
17 |
var ifm= document.getElementById("leftFrame"); |
|
18 |
var subWeb = document.frames ? document.frames["leftFrame"].document : ifm.contentDocument; |
|
19 |
if(ifm != null) { |
|
20 |
var t= subWeb.body.scrollHeight; |
|
21 |
var t2=ifm.height = ($(window).height()-40); |
|
22 |
if(t<t2)t=t2; |
|
23 |
ifm.height = t; |
|
24 |
//ifm.height = ($(window).height()-59)+"px"; |
|
25 |
var i="<%=session.getAttribute("shouxin")==null?0:1 %>"; |
|
26 |
if(i>0)return; |
|
27 |
setTimeout("shouxin('"+num+"')",200); |
|
28 |
} |
|
29 |
} |
|
30 |
function mainHeight(){ |
|
31 |
var ifm= document.getElementById("mainFrame"); |
|
32 |
if(ifm != null) { |
|
33 |
ifm.height = ($(window).height()-30)+"px"; |
|
34 |
ifm.width = ($(window).width()-230)+"px"; |
|
35 |
} |
|
36 |
} |
|
37 |
function shouxin(type){ |
|
38 |
num=type; |
|
39 |
try{ |
|
40 |
var temp=$(".reflushs",document.getElementById("leftFrame").contentDocument) |
|
41 |
if(temp.text()=="刷新中...")return; |
|
42 |
temp.text("刷新中..."); |
|
43 |
$.post("/shouXin.do",{"type":num},function(d){ |
|
44 |
if(d.code=="error"){ |
|
45 |
alert(d.info); |
|
46 |
}else{ |
|
47 |
temp.text("刷新收信箱"); |
|
48 |
} |
|
49 |
},'json'); |
|
50 |
}catch(e){} |
|
51 |
} |
|
52 |
</script> |
|
53 |
</head> |
|
54 |
|
|
55 |
<body style="margin:0px;padding:0px;"> |
|
56 |
<!-- src="<%=URL %>/mail/top.jsp" --> |
|
57 |
<iframe height="10" width="100%" name="topFrame" frameborder="0" id="topFrame" title="topFrame"></iframe> |
|
58 |
<iframe src="<%=URL %>/mail/left.jsp" width="213" height="100%" onload="leftHeight();" name="leftFrame" frameborder="0" id="leftFrame" title="leftFrame"></iframe> |
|
59 |
<iframe src="<%=URL %>/mail/shouxinX.jsp" onload="mainHeight();" style="position: absolute;" name="mainFrame" frameborder="0" id="mainFrame" title="mainFrame"></iframe> |
|
60 |
</body> |
|
61 |
</html> |