123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <%@page contentType="text/html;charset=euc-kr" %>
- <%@ page import="kr.co.hit.live.util.PropertyHelper"%>
- <%@ page import="kr.co.hit.live.vo.ValueObject"%>
- <%!
- PropertyHelper ph = new PropertyHelper("live.himed.config");
- String systemcd = ph.getString("context","systemcd");
- String systemnm = ph.getString("context", "systemnm");
- String hissystem = ph.getString("system", "his");
- String crcsystem = ph.getString("system", "crc");
- String devsystem = ph.getString("system", "dev");
- String missystem = ph.getString("system", "mis");
- String domainstr = ph.getString("session", "domain");
- String a = "";
-
- String title = ph.getString("baseinfo", "title" , "");
- String tfsuversion = ph.getString("baseinfo", "tfsuversion", "2,6,4,6");
- String loginlogo = ph.getString("images" , "loginlogo");
- String loginimg = ph.getString("images" , "loginimg");
- %>
- <%
- String TFSmartUpdater = systemcd+"_TFSmartUpdater";
- String domainName = "http://"+ request.getServerName() + ":" + request.getServerPort();
- String domainURL = "http://" + domainstr + ":" + request.getServerPort() + "/himed";
- domainURL = domainURL.toLowerCase();
- String ieGuideURL = "http://" + systemcd + domainstr + ":" + request.getServerPort() + "/docs/guide/Internet_Explorer_Setting_Guide.pdf";
- String ieInstallURL = "http://" + systemcd + domainstr + ":" + request.getServerPort() + "/docs/IE8-WindowsXP-x86-KOR.exe";
-
- //Vision 및 공지사항 조회
- ValueObject noticeVO = (ValueObject)request.getAttribute("noticelist");
- ValueObject visionVO = (ValueObject)request.getAttribute("visionlist");
-
- String notice = "";
- String vision = "";
-
- if(noticeVO == null) {
- response.sendRedirect("/himed/webapps/com/hismainweb/jsp/himed.live");
-
- } else {
- if(noticeVO.size() > 0) {
- notice = noticeVO.getString("content", "");
- }
- }
- %>
- <html>
- <head>
- <title><%=title%></title>
- <link href="../css/hismain.css" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="../js/ZUM006.js"></script>
- <script language="JavaScript" src="../js/ZUM003.js"></script>
- <script language="javascript">
- <!--
- var resetPwdPage = null;
- var systemcd = "<%=systemcd%>";
- function window::onLoad() {
- initBrowser(<%=TFSmartUpdater%>);
- }
- function onBodyLoad() {
- <%
- String m = (String)request.getParameter("m");
- // 웹보안관련 특수문자 제거 - 2012.08.14
- String [] specialCharacters = {"-", "&", "'", "<", ">", "%28", "%29", "%2B"};
- if (m != null) {
- for (int idx = 0 ; idx < specialCharacters.length ; idx++) {
- m = m.replace(specialCharacters[idx], "");
- }
- }
-
- String errorMsg = null;
- if (m != null) {
- if (m.equals("0")) { // 단순히 인증되지 않은 상태이며 alert 창 띄우지 않고 그냥 로그인 페이지만 띄운다.
- errorMsg = null;
- } else if (m.equals("1")) {
- errorMsg = "등록되지 않은 사용자입니다.";
- } else if (m.equals("2")) {
- errorMsg = "등록된 근무지 부서가 없습니다.";
- } else if (m.equals("3")) {
- errorMsg = "시스템 오류입니다. 관리자에게 문의하세요.";
- } else if (m.equals("4")) {
- errorMsg = "등록된 메뉴그룹이 없습니다.";
- } else if (m.equals("7")) {
- errorMsg = "암호가 일치하지 않습니다.";
- } else if (m.equals("30")) {
- errorMsg = "해당 아이디는 현재 휴진상태이므로 로그인 할 수 없습니다.";
- } else if (m.equals("40")) {
- errorMsg = "잘못된 비밀번호 5회 초과로 계정잠금되었습니다. 본원 의료정보센터/칠곡 정보통신실 (T.6597)로 문의 후 처리바랍니다.";
-
- } else {
- errorMsg = "SSO 토큰 검증 실패로 자동 로그인 할수 없습니다.[code="+m+"]";
- }
- } else {
- }
- if (errorMsg != null) {
- %>
- alert('<%=errorMsg%>');
- <%
- }
- %>
- userInfoForm.userid.focus();
- }
- function enterUserId() {
- if(event.keyCode == 13) {
- userInfoForm.password.focus();
- }
- }
- function enterPassword() {
- if(event.keyCode == 13) {
- userLogin();
- }
- }
- function isNull(str){
- return ((str == null || str == "" || str == "undefined") ? true:false);
- }
- function checkInput(){
- var id = userInfoForm.userid.value.replace(/(^\s*)|(\s*$)/gi, "");
- var pw = userInfoForm.password.value;
- if(isNull(id)){
- alert("아이디를 입력하십시오");
- userInfoForm.userid.value = "";
- userInfoForm.userid.focus();
- return false;
- } else {
- // 사용자ID 특수문자 입력 제어 - 2012.08.17
- var comparedId = id.replace(/([^0-9a-zA-Z]*)/gi, "");
- if (id != comparedId) {
- alert("아이디는 [영문 숫자]로만 입력하셔야 합니다.");
- userInfoForm.userid.focus();
- return false;
- }
- }
- if(isNull(pw)){
- alert("패스워드를 입력하십시오");
- userInfoForm.password.value = "";
- userInfoForm.password.focus();
- return false;
- }
- return true;
- }
- function userLogin(){
- if(checkInput()){
- userInfoForm.action = "login.live";
- userInfoForm.submit();
- }
- }
- function openDocumentsFile(openurl){
- window.open(openurl);
- }
- // F1 키 block -- add by parankiho 2008.02.12
- document.onhelp=dsble_F1;
- function dsble_F1() {
- return false;
- }
-
- /*
- // 비밀번호 초기화 화면
- function showResetPwdPage() {
- var x = window.screen.width;
- var y = window.screen.height;
-
- var left = x / 2 - 500 / 2;
- var top = y / 2 - 300 / 2;
-
- var url = "/himed/webapps/com/hismainweb/jsp/resetpwd.jsp";
- var option = "height=150, left=" + left + ", top=" + top +", width=300, location=no, titlebar=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, min=no, max=no";
-
- if (resetPwdPage == null) {
- resetPwdPage = window.open(url, null, option);
- } else if (resetPwdPage.closed) {
- resetPwdPage = window.open(url, null, option);
- }
- resetPwdPage.focus();
- }
- */
-
- /*
- // 비밀번호 초기화 화면
- function showResetPwdPage() {
- var url = "/himed/webapps/com/hismainweb/jsp/resetpwd.jsp";
-
- location.href = url;
-
- }
- */
-
-
-
- // 인증번호 받기
- function sendAuthNoForPhoneAuth(){
- var sendAuthNo = document.getElementId("authNo");
-
- if(checkSendAuthNoForPhoneAuth()){
- sendAuthNo.action = "sendAuthNo.live";
- sendAuthNo.submit();
- }
- }
-
- // 인증번호 받기 Validation
- function checkSendAuthNoForPhoneAuth(){
- if(document.getElementById("phoneNm").value == ""){
- alert("이름을 입력해 주세요");
- document.getElementById('phoneNm').focus();
- return false;
- }
-
- var userMob = document.getElementById("mob1").value + document.getElementById("mob2").value;
- if(userMob.length == 10 || userMob.length == 11){
- return true;
- }else{
- alert("휴대폰 번호를 정확하게 입력해 주세요.");
- document.getElementById("mob2").focus();
- return false;
- }
-
-
- }
- //-->
- </script>
- </head>
- <body onload="onBodyLoad()">
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- writeMSXML4("msxml","<%=domainName%>/himed/install/TrustForm/msxml4.cab#version=4,20,9818,0", "0", "0");
- TrustFormSmartUpdater("<%=systemcd%>"+"_TFSmartUpdater", "<%=domainName%>/himed/install/TrustForm/TFSmartUpdater_m.cab#version=<%=tfsuversion%>", "0", "0");
- //-->
- </SCRIPT>
- <table border="1" cellpadding="0" cellspacing="0" width="100%" height="100%">
- <tr>
- <td align="center" valign="middle">
- <table border="0" cellpadding="0" cellspacing="0" width="1000">
- <tr>
- <td><img src="../images/<%=loginimg%>" width="661" height="410" alt="" border="0"></td>
- <td width="339">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../images/moto_bg.gif" width="339" height="46" align="center" class="moto"><%=title%></td>
- </tr>
- <tr>
- <td><img src="../images/welcome.gif" width="339" height="119" alt="" border="0"></td>
- </tr>
- </table>
- <form method="post" id="authNo" name="authNo">
-
- <table id="formtbl" height="170">
-
- <tr>
-
- <td width="70px"><img src="../images/bullet_1.gif" width="7" height="7" border="0"> 사용자ID :</td>
-
- <td width="120px"><input type="text" name="userid" tabIndex="1" onkeydown="enter()" style="width:120px" /></td>
-
-
- </tr>
-
- <tr>
-
- <td width="70px"><img src="../images/bullet_1.gif" width="7" height="7" border="0"> 사용자명 :</td>
-
- <td width="120px"><input type="text" name="usernm" tabIndex="2" onkeydown="enter()" style="width:120px" /></td>
-
-
- </tr>
-
- <tr>
-
- <td width="70px"><img src="../images/bullet_1.gif" width="7" height="7" border="0"> 전화번호 :</td>
-
- <td widht="180px" colspan="2">
- <select id="mob1" name="mob1" style="width:50px" onchange="clickEvn();">
- <option value="010">010</option>
- <option value="011">011</option>
- <option value="016">016</option>
- <option value="017">017</option>
- <option value="018">018</option>
- <option value="019">019</option>
- </select>
- -
- <input type="text" id="mob2" name="mob2" onkeydown="check_num('mob2', '1')" maxlength="8" class="input_txt" style="width:120px">
- <a href="#" id="btnPhoneAuthNo" name="btnPhoneAuthNo" onclick="sendAuthNoForPhoneAuth();clickcr(this,'rmp.code','','',event);" class="btn_ct"><span class="blind">인증번호 받기</span></a>
- </td>
-
- </tr>
-
- </table>
-
- </form>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <!-- HIS 시스템(운영)인 경우만 기관코드, 나머지는 의료원코드(001)로 : by hoya-->
- <td><img src="../images/<%=loginlogo%>" alt="" border="0"></td>
- </tr>
- </table>
-
-
- </td>
-
-
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <map name="login"><area alt="" shape="CIRCLE" coords="41,41,29" href="#"></map>
- </body>
- </html>
|