📄 define.jsp
字号:
<%@page contentType="text/html;charset=GB2312"
import = "com.boco.shpmcc.data.*"
import = "com.boco.shpmcc.common.*"
%>
<%
String ViewDesc;
String ViewName;
ViewDesc = "自定义分析";
String userid="";
String passwd="";
UserInfo userinfo = (UserInfo)session.getAttribute("USERINFO");
if (userinfo!=null){
userid = userinfo.getOlapUserID();
passwd = userinfo.getOlapPassword();
}else{
pageContext.forward( "/Error/SessionError.jsp" );
}
System.out.println("olap username:"+ userid);
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title><%=ViewDesc%></title>
<%@ include file = "olap_func.jsp" %>
</head>
<script>
// Variables:
var ViewComp; // the View Component
var username ="<%=userid%>"; // login and view variables
var password = "<%=passwd%>";
function onLoad()
{
// this code is run every time the web page is loaded
divapplet.style.display="block"; //显示applet层 //none
// connect and login to view component
ViewComp = document.applets["ViewComponent"];
a = ViewComp.run("Connect");
for (i=0;i<100;i++){
if (a<0){
a = ViewComp.run("Connect");
}else{
break;}
}
}
function onUnload()
{
if (ViewComp != null){
ViewComp.run("disconnect");
}
}
</script>
<body TEXT="#000000" bgcolor="DDF0FF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000"
onLoad="onLoad()" onUnload="onUnload()" topmargin="0" leftmargin="0">
<!-- Begin Header Table -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="76">
<tr><!--Begin Sub Buttons-->
<!--End Sub Buttons-->
<td><CENTER><B><font color="#0000FF" face="隶书" size="5"><%=ViewDesc%></font></B></CENTER></td>
</tr>
<tr>
<td><%@ include file = "toolbar_define.jsp" %></td>
</tr>
<tr>
<td><%@ include file = "toolbar_main1.jsp" %></td>
</tr>
</table>
<div align="left">
<table border="0" width="100%" >
<tr>
<td width="100%">
<%@ include file = "AppletInclude.jsp" %>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -