123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <%@ page language="java" contentType="text/html; charset=euc-kr"%>
- <%
- String domainName = request.getScheme()+"://"+ request.getServerName() + ":" + request.getServerPort();
- String systemName = request.getScheme()+"_"+ request.getServerName() + "_" + request.getServerPort();
- // 서버이름 가져오기
- String serverName = request.getServerName();
- /*
- // 서버이름 별로 아이콘이름 지정하기
- String iconName = "SCH LOCAL";
-
- // 아이콘 표시여부
- boolean iconShow = true;
- // 운영서버
- if ("hisx031.knuh.kr".equals(serverName)) // 운영
- {
- iconName = "SCH 운영 (XP)";
- iconShow = true;
- }
- // 교육서버
- else if("edu.knuh.kr".equals(serverName)) //개발
- {
- iconName = "SCH EDU (XP)";
- iconShow = true;
- }
- // 전환검증서버
- else if("rmig.knuh.kr".equals(serverName)) //검증
- {
- iconName = "SCH RMIG (XP)";
- iconShow = true;
- }
- // 전환서버
- else if ("mig.knuh.kr".equals(serverName)) // 운영
- {
- iconName = "SCH MIG (XP)";
- iconShow = true; // 운영일경우에만 아이콘 생성
- }
- // 개발서버
- else if ("dev.knuh.kr".equals(serverName)) //개발
- {
- iconName = "SCH DEV (XP)";
- iconShow = true;
- }
- */
- // 서버이름 별로 아이콘이름 지정하기
- String iconName = "KNUX LOCAL";
- // 아이콘 표시여부
- boolean iconShow = true;
- // 본원운영서버
- if ("hisx031.knuh.kr".equals(serverName)) // 운영
- {
- iconName = "KNUX 본원운영";
- iconShow = true;
- }
- // 본원교육서버
- else if("hisx031edu.knuh.kr".equals(serverName)) //교육
- {
- iconName = "KNUX 본원교육";
- iconShow = true;
- }
- // 칠곡운영서버
- else if("hisx032.knuh.kr".equals(serverName)) //운영
- {
- iconName = "KNUX 칠곡운영";
- iconShow = true;
- }
- // 칠곡교육서버
- else if ("hisx032edu.knuh.kr".equals(serverName)) // 교육
- {
- iconName = "KNUX 칠곡교육";
- iconShow = true;
- }
- // MIS운영서버
- else if ("misx030.knuh.kr".equals(serverName)) // 운영
- {
- iconName = "KNUX MIS운영";
- iconShow = true;
- }
- // MIS교육서버
- else if ("misx030edu.knuh.kr".equals(serverName)) // 교육
- {
- iconName = "KNUX MIS교육";
- iconShow = true;
- }
- %>
- <!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">
- <HEAD>
- <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
- <meta http-equiv="X-UA-Compatible" content="requiresActiveX=true">
- <TITLE>HIMED2 Install Page</TITLE>
- <SCRIPT LANGUAGE="javascript">
- var sKey = "<%=systemName%>";
- var Server_Path = "<%=domainName%>";
- var bOnError = false;
- var XPLATFORM_CAB_VER = "2015,4,28,1";
- function fn_load() {
- if(bOnError == false) {
- fn_launch();
- fn_close();
- }
- }
- function fn_close() {
- if(/MSIE/.test(navigator.userAgent)) {
- if(navigator.appVersion.indexOf("MSIE 7.") >= 0 || navigator.appVersion.indexOf("MSIE 8.") >= 0 ||
- navigator.appVersion.indexOf("MSIE 9.") >= 0 || navigator.appVersion.indexOf("MSIE 10.") >=0 ||
- navigator.appVersion.indexOf("Trident") >= 0 ) {
- window.opener = "nothing";
- window.open('', '_parent', '');
- window.close();
- } else {
- window.opener = self;
- self.close();
- }
- } else {
- window.name = '__t__';
- var w = window.open('about:blank');
- w.document.open();
- w.document.write('<html><body><script type="text/javascript">function _(){var w=window.open("about:blank","'+window.name+'");w.close();self.close();}</'+'script></body></html>');
- w.document.close();
- w._();
- }
- }
- function checkOS()
- {
- var strOS = "XP";
- if( navigator.appVersion.indexOf("Windows NT 6.2") != -1)
- strOS = "WIN8";
- else if( navigator.appVersion.indexOf("Windows NT 6.1") != -1)
- strOS = "WIN7";
- else if( navigator.appVersion.indexOf("Windows NT 6.0") != -1)
- strOS = "VISTA";
- else if( navigator.appVersion.indexOf("Windows 98") != -1)
- strOS = "98";
- else if( navigator.appVersion.indexOf("Windows NT 5.0") != -1)
- strOS = "2000";
- else if( navigator.appVersion.indexOf("Windows NT 5.2") != -1)
- strOS = "XP";
- else if( navigator.appVersion.indexOf("Windows NT 5.1") != -1)
- strOS = "XP";
- return strOS;
- }
- function fn_objectOnError() {
- bOnError = true;
- }
- function fn_launch() {
- XPLauncher.version = "9.2.1"; //XPLauncher 설정 상단에 위치해야 함.
- // XPLauncher.splashimage = Server_Path+"/install/loading_img.gif";
- XPLauncher.xadl = Server_Path + "/himed/xpapps/himed2.xadl";
- //XPLauncher.loadingimage = Server_Path + "/Images/img_loading.gif";
- //XPLauncher.splashimage = Server_Path + "/Images/trans.gif";
- XPLauncher.onlyone = false;
- if(checkOS() == "WIN8")
- {
- XPLauncher.componentpath = "%USERAPPLOCAL%";
- }
- <% if(iconShow == true) { %>
- XPLauncher.makeshortcut("<%=iconName%>",Server_Path + "/himed/install/EMR.ico","desktop");
- <% } %>
- XPLauncher.launch();
- }
- function fn_download()
- {
- location.href = "./install/TobeSoft/XPlatform/XPLATFORM9.2.1_SetupEngine.exe";
- }
- </SCRIPT>
- </HEAD>
- <BODY onload="fn_load()">
- <SCRIPT LANGUAGE="JavaScript">
- //XPLATFORM Engine
- document.write('<OBJECT ID="XPlatformAXCtrl" CLASSID="CLSID:7E0D6AB0-6E1E-441C-969A-CD85DCA58DFB" width="0" height="0" '
- + 'CodeBase="./install/TobeSoft/XPlatform/XPLATFORM9.2.1_SetupEngine.cab#VERSION='+XPLATFORM_CAB_VER+'" onError="fn_objectOnError()">'
- + '</OBJECT>');
- //XPLATFORM Launcher
- document.write('<OBJECT ID="XPLauncher" CLASSID="CLSID:A30D5481-7381-4dd9-B0F4-0D1D37449E97" width="0" height="0" '
- + 'Codebase="./install/TobeSoft/XPlatform/XPLATFORM9.2.1_XPLauncher.cab#VERSION='+XPLATFORM_CAB_VER+'" onError="fn_objectOnError()">'
- + '<PARAM NAME="key" VALUE="' + sKey + '">'
- + '</OBJECT>');
- </SCRIPT>
- <div>XPLauncher 를 시작합니다.</div>
- </BODY>
- </HTML>
|