index.jsp.150623 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <%@ page language="java" contentType="text/html; charset=euc-kr"%>
  2. <%
  3. String domainName = request.getScheme()+"://"+ request.getServerName() + ":" + request.getServerPort();
  4. String systemName = request.getScheme()+"_"+ request.getServerName() + "_" + request.getServerPort();
  5. // 서버이름 가져오기
  6. String serverName = request.getServerName();
  7. /*
  8. // 서버이름 별로 아이콘이름 지정하기
  9. String iconName = "SCH LOCAL";
  10. // 아이콘 표시여부
  11. boolean iconShow = true;
  12. // 운영서버
  13. if ("hisx031.knuh.kr".equals(serverName)) // 운영
  14. {
  15. iconName = "SCH 운영 (XP)";
  16. iconShow = true;
  17. }
  18. // 교육서버
  19. else if("edu.knuh.kr".equals(serverName)) //개발
  20. {
  21. iconName = "SCH EDU (XP)";
  22. iconShow = true;
  23. }
  24. // 전환검증서버
  25. else if("rmig.knuh.kr".equals(serverName)) //검증
  26. {
  27. iconName = "SCH RMIG (XP)";
  28. iconShow = true;
  29. }
  30. // 전환서버
  31. else if ("mig.knuh.kr".equals(serverName)) // 운영
  32. {
  33. iconName = "SCH MIG (XP)";
  34. iconShow = true; // 운영일경우에만 아이콘 생성
  35. }
  36. // 개발서버
  37. else if ("dev.knuh.kr".equals(serverName)) //개발
  38. {
  39. iconName = "SCH DEV (XP)";
  40. iconShow = true;
  41. }
  42. */
  43. // 서버이름 별로 아이콘이름 지정하기
  44. String iconName = "KNUX LOCAL";
  45. // 아이콘 표시여부
  46. boolean iconShow = true;
  47. // 본원운영서버
  48. if ("hisx031.knuh.kr".equals(serverName)) // 운영
  49. {
  50. iconName = "KNUX 본원운영";
  51. iconShow = true;
  52. }
  53. // 본원교육서버
  54. else if("hisx031edu.knuh.kr".equals(serverName)) //교육
  55. {
  56. iconName = "KNUX 본원교육";
  57. iconShow = true;
  58. }
  59. // 칠곡운영서버
  60. else if("hisx032.knuh.kr".equals(serverName)) //운영
  61. {
  62. iconName = "KNUX 칠곡운영";
  63. iconShow = true;
  64. }
  65. // 칠곡교육서버
  66. else if ("hisx032edu.knuh.kr".equals(serverName)) // 교육
  67. {
  68. iconName = "KNUX 칠곡교육";
  69. iconShow = true;
  70. }
  71. // MIS운영서버
  72. else if ("misx030.knuh.kr".equals(serverName)) // 운영
  73. {
  74. iconName = "KNUX MIS운영";
  75. iconShow = true;
  76. }
  77. // MIS교육서버
  78. else if ("misx030edu.knuh.kr".equals(serverName)) // 교육
  79. {
  80. iconName = "KNUX MIS교육";
  81. iconShow = true;
  82. }
  83. %>
  84. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  85. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  86. <HTML xmlns="http://www.w3.org/1999/xhtml">
  87. <HEAD>
  88. <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
  89. <meta http-equiv="X-UA-Compatible" content="requiresActiveX=true">
  90. <TITLE>HIMED2 Install Page</TITLE>
  91. <SCRIPT LANGUAGE="javascript">
  92. var sKey = "<%=systemName%>";
  93. var Server_Path = "<%=domainName%>";
  94. var bOnError = false;
  95. var XPLATFORM_CAB_VER = "2015,4,28,1";
  96. function fn_load() {
  97. if(bOnError == false) {
  98. fn_launch();
  99. fn_close();
  100. }
  101. }
  102. function fn_close() {
  103. if(/MSIE/.test(navigator.userAgent)) {
  104. if(navigator.appVersion.indexOf("MSIE 7.") >= 0 || navigator.appVersion.indexOf("MSIE 8.") >= 0 ||
  105. navigator.appVersion.indexOf("MSIE 9.") >= 0 || navigator.appVersion.indexOf("MSIE 10.") >=0 ||
  106. navigator.appVersion.indexOf("Trident") >= 0 ) {
  107. window.opener = "nothing";
  108. window.open('', '_parent', '');
  109. window.close();
  110. } else {
  111. window.opener = self;
  112. self.close();
  113. }
  114. } else {
  115. window.name = '__t__';
  116. var w = window.open('about:blank');
  117. w.document.open();
  118. 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>');
  119. w.document.close();
  120. w._();
  121. }
  122. }
  123. function checkOS()
  124. {
  125. var strOS = "XP";
  126. if( navigator.appVersion.indexOf("Windows NT 6.2") != -1)
  127. strOS = "WIN8";
  128. else if( navigator.appVersion.indexOf("Windows NT 6.1") != -1)
  129. strOS = "WIN7";
  130. else if( navigator.appVersion.indexOf("Windows NT 6.0") != -1)
  131. strOS = "VISTA";
  132. else if( navigator.appVersion.indexOf("Windows 98") != -1)
  133. strOS = "98";
  134. else if( navigator.appVersion.indexOf("Windows NT 5.0") != -1)
  135. strOS = "2000";
  136. else if( navigator.appVersion.indexOf("Windows NT 5.2") != -1)
  137. strOS = "XP";
  138. else if( navigator.appVersion.indexOf("Windows NT 5.1") != -1)
  139. strOS = "XP";
  140. return strOS;
  141. }
  142. function fn_objectOnError() {
  143. bOnError = true;
  144. }
  145. function fn_launch() {
  146. XPLauncher.version = "9.2.1"; //XPLauncher 설정 상단에 위치해야 함.
  147. // XPLauncher.splashimage = Server_Path+"/install/loading_img.gif";
  148. XPLauncher.xadl = Server_Path + "/himed/xpapps/himed2.xadl";
  149. //XPLauncher.loadingimage = Server_Path + "/Images/img_loading.gif";
  150. //XPLauncher.splashimage = Server_Path + "/Images/trans.gif";
  151. XPLauncher.onlyone = false;
  152. if(checkOS() == "WIN8")
  153. {
  154. XPLauncher.componentpath = "%USERAPPLOCAL%";
  155. }
  156. <% if(iconShow == true) { %>
  157. XPLauncher.makeshortcut("<%=iconName%>",Server_Path + "/himed/install/EMR.ico","desktop");
  158. <% } %>
  159. XPLauncher.launch();
  160. }
  161. function fn_download()
  162. {
  163. location.href = "./install/TobeSoft/XPlatform/XPLATFORM9.2.1_SetupEngine.exe";
  164. }
  165. </SCRIPT>
  166. </HEAD>
  167. <BODY onload="fn_load()">
  168. <SCRIPT LANGUAGE="JavaScript">
  169. //XPLATFORM Engine
  170. document.write('<OBJECT ID="XPlatformAXCtrl" CLASSID="CLSID:7E0D6AB0-6E1E-441C-969A-CD85DCA58DFB" width="0" height="0" '
  171. + 'CodeBase="./install/TobeSoft/XPlatform/XPLATFORM9.2.1_SetupEngine.cab#VERSION='+XPLATFORM_CAB_VER+'" onError="fn_objectOnError()">'
  172. + '</OBJECT>');
  173. //XPLATFORM Launcher
  174. document.write('<OBJECT ID="XPLauncher" CLASSID="CLSID:A30D5481-7381-4dd9-B0F4-0D1D37449E97" width="0" height="0" '
  175. + 'Codebase="./install/TobeSoft/XPlatform/XPLATFORM9.2.1_XPLauncher.cab#VERSION='+XPLATFORM_CAB_VER+'" onError="fn_objectOnError()">'
  176. + '<PARAM NAME="key" VALUE="' + sKey + '">'
  177. + '</OBJECT>');
  178. </SCRIPT>
  179. <div>XPLauncher 를 시작합니다.</div>
  180. </BODY>
  181. </HTML>