SocialIMFilePreView.jsp
4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@page import="weaver.email.MailPreviewHtml"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
String userid=""+user.getUID();
String fileid=Util.null2String(request.getParameter("fileid"),"0");
String filename="";
boolean isHasRight=true;
String sql="select * from social_IMFile where fileid="+fileid;
RecordSet.execute(sql);
if(RecordSet.next()){
filename=RecordSet.getString("fileName");
}else{
isHasRight=false;
response.sendRedirect("/notice/noright.jsp") ;
return;
}
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(24266, user.getLanguage())+":" + SystemEnv.getHtmlLabelName(611, user.getLanguage());
String needfav = "1";
String needhelp = "";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<body>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{" + SystemEnv.getHtmlLabelName(86, user.getLanguage()) + ",javascript:downLoad(),_self} ";
RCMenuHeight += RCMenuHeightStep;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<jsp:include page="/systeminfo/commonTabHead.jsp">
<jsp:param name="mouldID" value="social"/>
<jsp:param name="navName" value="<%=filename%>"/>
</jsp:include>
<wea:layout attributes="{layoutTableId:topTitle}">
<wea:group context="" attributes="{groupDisplay:none}">
<wea:item attributes="{'customAttrs':'class=rightSearchSpan'}">
<%if(isHasRight){%>
<span title="<%=SystemEnv.getHtmlLabelName(258,user.getLanguage()) %>" id="configSpan" style="font-size: 12px;cursor: pointer;">
<input class="e8_btn_top middle" onclick="downLoad()" type="button" value="<%=SystemEnv.getHtmlLabelName(258,user.getLanguage()) %>"/>
</span>
<%}%>
<span title="<%=SystemEnv.getHtmlLabelName(81804,user.getLanguage()) %>" class="cornerMenu"></span>
</wea:item>
</wea:group>
</wea:layout>
<DIV id="bgAlpha"></DIV>
<div id="loading">
<span><img src="/images/loading2_wev8.gif" align="absmiddle"></span>
<span id="loading-msg" style="font-size:12px;"><%=SystemEnv.getHtmlLabelName(31230,user.getLanguage()) %>...</span>
</div>
<div class="zDialog_div_content" id='contentDiv' style="height:500px;">
<iframe id="htmlShowContent" frameborder="0" style="width:100%;height:495px;" onload="hideLoading()" src="/social/im/SocialIMFilePreContent.jsp?fileid=<%=fileid%>&filename=<%=filename%>" ></iframe>
</div>
<iframe id="downLoadFrame" style="display:none;"></iframe>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout>
<wea:group context="" attributes="{groupDisplay:none}">
<wea:item type="toolbar">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(309,user.getLanguage()) %>" id="zd_btn_cancle" class="zd_btn_cancle" onclick="parent.getDialog(window).close()"/>
</wea:item>
</wea:group>
</wea:layout>
</div>
<jsp:include page="/systeminfo/commonTabFoot.jsp"></jsp:include>
<style>
#loading{
position:absolute;
left:45%;
background:#ffffff;
top:40%;
padding:8px;
z-index:20001;
height:auto;
border:1px solid #ccc;
width: 120px;
text-align: center;
}
</style>
<script>
jQuery(document).ready(function(){
});
function hideLoading(){
$("#bgAlpha").hide();
$("#loading").hide();
}
function downLoad(){
$("#downLoadFrame").attr("src","/weaver/weaver.file.FileDownload?download=1&fileid="+<%=fileid%>);
}
function iFrameHeight() {
var ifm= document.getElementById("htmlShowContent");
var subWeb = document.frames ? document.frames["htmlShowContent"].document :ifm.contentDocument;
if(ifm != null && subWeb != null) {
ifm.height = subWeb.body.scrollHeight;
}
}
window.onresize=function(){
//iFrameHeight();
}
</script>
</body>
</html>