Skip to content

Instantly share code, notes, and snippets.

@cjdell
Created December 12, 2017 13:38
Show Gist options
  • Save cjdell/53071f1f02eb09d264841f8dd5a9fdee to your computer and use it in GitHub Desktop.
Save cjdell/53071f1f02eb09d264841f8dd5a9fdee to your computer and use it in GitHub Desktop.
Sitedesk Viewer
<%--
* Copyright IBM Corporation 2009-2017
*
* Licensed under the Eclipse Public License - v 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @Author Doug Wood
--%>
<%@page import="psdi.webclient.components.*"%>
<%@ include file="../bim/bimheader.jsp" %>
<html>
<head>
<meta charset="utf-8">
<base href="https://sitedesk.xyz/app-sro/" />
<link rel="stylesheet" href="<%=CSS_PATH%>/maximo.css">
<script type = "text/javascript"
src = "<%=servletBase%>/javascript/bimviewer.js">
</script>
<%@ include file="header.jsp" %>
<style>
.toolbar UL
{
white-space: nowrap;
height:30px;
}
.toolbar LI
{
white-space : nowrap;
list-style : none;
display : inline-block;
float : none;
}
.toolbar LI A.on:focus,
.toolbar LI A.on:hover,
.toolbar LI A.onhover {
background-image:url(<%=IMAGE_PATH%>toolbar/tb_button_hover.gif);
}
</style>
<link rel="stylesheet" type="text/css" href="build/css/styles.css" />
<script type="text/javascript" src="assets/js/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="assets/js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="assets/js/error/error-page.js"></script>
<script type="text/javascript" src="assets/engine3d.js"></script>
<script type="text/javascript" src="build/app.js"></script>
<script type="text/javascript" src="assets/js/pdfmake/pdfmake.min.js"></script>
<script type="text/javascript" src="assets/js/pdfmake/vfs_fonts.js" async></script>
<script type="text/javascript" src="assets/js/signature_pad/signature_pad.min.js" async></script>
<script type="text/javascript" src="assets/js/zip.js/zip.js"></script>
<script type="text/javascript">
// zip.js uses Web Workers so it needs to told where to find its worker scripts
zip.workerScriptsPath = "assets/js/zip.js/";
</script>
</head>
<body oncontextmenu="return false;" style="width:100%; height:100%;">
<!-- Viewer scripts are in "viewer.ts" -->
<%@ include file="../bim/script-common.jsp" %>
<%
String viewerLogo = "bim/IBM_maximo_logo.pmg";
%>
<%-- Message table --%>
<table id=<%=msgTable%> bgcolor="<%=background%>"
style="position:absolute;visibility:visible;color:<%=foreground%>; width:100%; height:100%">
<tr>
<td style="height:<%=toolbar_height%>; background-color: #dfdfdf; background-size: <%=toolbar_height%>; background-image:<%=TOOLBAR_IMG%>">
<table id=<%=msgToolbarId%> style="width:100%">
<tr>
<td align="left" >
<table bgcolor="transparent" style="width: 100%">
<tr>
<td><img id=<%=id%> src="<%=viewerLogo%>" height="<%=toolbar_height%>" border="0" /></td>
<td style="padding:4"></td>
<%if( appType == BIMViewer.TYPE_LOCATION )
{%>
<td align="left">
<img id=<%=id%> name=btnModel title="<%=strings.loadModel%>"
src="<%=BIM_IMAGE_PATH%>/tb_viewModel.png" height="30" width="30" border="0"
onClick="window.parent.sendEvent( 'bim_addmod', '<%=bldgMdl.getRenderId()%>' )" >
</td>
<%}%>
<td style="width:100%"></td>
<td style="padding:4"></td>
</tr>
</table>
</td>
<td align="right">
<table><tr>
<td style="padding:2px"></td>
<td>
<ul class="toolbar">
<li>
<%if( appType != BIMViewer.TYPE_LOOKUP )
{%>
<a id="btnRestore" title="<%=strings.resizeBtn%>" onClick="resizeBtn()" href="javascript:void(null);" class="on"
onfocus="setCurrentfocusId(event, this);appendClass(this,'onhover')" onBlur="removeClass(this,'onhover')">
<img id="btnRestorei" src="<%=BIM_IMAGE_PATH%>/tb_resize.png" name="btnRestorei"
alt="<%=strings.resizeBtn%>" tabindex="-1" draggable="false">
</a>
<%} else {%>
<a id="btnDlgResize" title="<%=strings.resizeBtn%>" onClick="resizeBtn()" href="javascript:void(null);" class="on"
onfocus="setCurrentfocusId(event, this);appendClass(this,'onhover')" onBlur="removeClass(this,'onhover')">
<img id="btnDlgResizei" src="<%=BIM_IMAGE_PATH%>/tb_resize.png" name="btnDlgResizei"
alt="<%=strings.resizeBtn%>" tabindex="-1" draggable="false">
</a>
<%}%>
</li>
</ul>
</td>
<td style="padding:2px"></td>
</tr></table>
</td>
</tr>
</table>
</td>
</tr>
<tr bgColor="#FFFFFF" style="height:1"><td></td></tr>
<tr><td id=<%=msgCell%> style="width:100%;height:100%; text-align:center">
<%
String msg = strings.msgNoViewer;
idx = msg.indexOf( "{0}" );
if( idx >= 0 )
{
String start = msg.substring( 0, idx );
String end = msg.substring( idx + 3 );
msg = start + "<A href=\"http://www-304.ibm.com/software/brandcatalog/ismlibrary/details?catalog.label=1TW10MA44\">ISM</A>" + end;
}
%>
<em style=" text-align:center; width:100%;"><%=msg%></em>
<!-- Remove the no viewer message and uncomment the no model message
<em><%=strings.msgNoModel%></em>
-->
</td></tr>
<tr bgColor="#FFFFFF" style="height:1;"><td></td></tr>
<tr style="background-image:<%=TOOLBAR_IMG%>; background-color: #dfdfdf; background-size: <%=toolbar_height%>; ">
<td valign="bottom" style="height:<%=toolbar_height%>"></td>
</tr>
<tr bgcolor="<%=background%>" valign="bottom" style="color:<%=foreground%>;width:100%;">
<td style="height:1">
<input type=text readonly style="background-color:<%=background%>;color:<%=foreground%>;width:100%">
</td>
</tr>
</table>
<%-- Model table --%>
<table id=<%=modelTable%> bgcolor="<%=background%>" cellpadding="0" cellspacing="0"
style="visibility:hidden;color:<%=foreground%>; width:100%; height:100%">
<tr style="height:<%=toolbar_height%>; background-color: #dfdfdf; background-size: <%=toolbar_height%>; background-image:<%=TOOLBAR_IMG%>">
<td >
<%@ include file="../bim/maximo-toolbar.jsp" %>
</td></tr>
<tr style="height:100%; width:100%"><td>
<table style="height:100%; width:100%"> <%-- Table for Navisworks control and properties panel --%>
<tr bgColor="#FFFFFF"><td style="height:1; width:100%"></td></tr>
<tr>
<td>
<table id=<%=ribbonId%> style="width:100%; height: 100%"><tr>
<td id=<%=id%>_Parent name="<%=id%>_Parent" style="width:100%; height: 100%;">
<script id=<%=id%>_container type="text/javascript" >
window.ctrlId = "<%=ctrlId%>";
loadControl( "<%=id%>_Parent", "<%=id%>_version" );
</script>
<div id="loader" class="se-pre-con">
<div class="thecube">
<div class="cube c1"></div>
<div class="cube c2"></div>
<div class="cube c3"></div>
</div>
</div>
<div id="navigators-react"></div>
</td>
</tr></table>
</td>
</tr>
<tr bgColor="#FFFFFF" valign="bottom"><td style="height:1; width:100%">
</table> <%-- Close Navisworks table --%>
</td></tr>
<%@ include file="toolbar.jsp" %>
<tr bgcolor="<%=background%>" style="color:<%=foreground%>;width:100%">
<td valign="bottom" >
<input type=text id="<%=statusId%>" name="<%=statusId%>" readonly
style="background-color:<%=background%>;color:<%=foreground%>;width:100%">
</td>
</tr>
</table> <%-- Close control table --%>
<iframe id=<%=id%>_selectSize frameborder="3"
style="position:absolute;borderColor:#888888;background:#FFFFFF;visibility:hidden;z-index:20000"
marginwidth="0" marginheight="0" scrolling="no"
src="<%=servletBase%>/components/bim/bimresizepopup.html">
</iframe>
<%@ include file="footer.jsp" %>
</body>
</html>
<%@ include file="../bim/bimfooter.jsp" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment