123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <%@page import="org.omg.CORBA.Request"%>
- <%@page contentType="text/html;charset=utf-8" %>
- <%@ page import="kr.co.hit.live.util.PropertyHelper"%>
- <%@ page import="kr.co.hit.live.vo.ValueObject"%>
- <%@ page import="kr.co.hit.live.util.StringHelper" %>
- <%!
-
- 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 domainName = "http://"+ request.getServerName() + ":" + request.getServerPort();
- String domainURL = "http://" + domainstr + ":" + request.getServerPort() + "/himed";
- domainURL = domainURL.toLowerCase();
-
- String userid = StringHelper.null2void((String)request.getAttribute("userid"));
- String usernm = StringHelper.null2void((String)request.getAttribute("usernm"));
- String mob1 = StringHelper.null2void((String)request.getAttribute("mob1"));
- String mob2 = StringHelper.null2void((String)request.getAttribute("mob2"));
- String gtime = StringHelper.null2void((String)request.getAttribute("gtime"));
- String userauthno = StringHelper.null2void((String)request.getAttribute("userauthno"));
-
-
-
- %>
- <html>
- <head>
- <title><%=title%></title>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,IE=EmulateIE9"/>
- <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 gTimerID = null;
-
- var gTime = 300;
-
- var gMaxTime = 300;
-
- var resetPwdPage = null;
-
- var authGuidePage = null;
- var systemcd = "<%=systemcd%>";
- function window::onLoad() {
-
- }
- function onBodyLoad() {
- <%
- String m = (String)request.getAttribute("msg");
- // 웹보안관련 특수문자 제거 - 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("50")){
- errorMsg = "정상적으로 인증번호가 전송되었습니다.";
- %>
- gTimerID = setInterval("checkTimer()",1000);
- <%
- } else if (m.equals("51")) {
- errorMsg = "사용자ID나 사용자명이 잘못되었습니다.";
- } else if (m.equals("52")) {
- errorMsg = "등록된 전화번호가 없습니다.";
- } else if (m.equals("53")) {
- errorMsg = "등록된 전화번호가 입력한 전화번호와 다릅니다.";
- } else if (m.equals("55")) {
- errorMsg = "계정잠금이 해제되었습니다.";
- %>
-
- location.href="himed.live";
- <%
- } else if (m.equals("57")) {
- errorMsg = "계정잠금 해제 및\\n" + (String)request.getAttribute("newpwd");
- %>
-
- location.href="himed.live";
- <%
- }else if (m.equals("56")) {
- errorMsg = "인증번호가 틀립니다.";
-
- if(!gtime.equals("")){
- %>
- gTime = <%= gtime %>;
- gTimerID = setInterval("checkTimer()",1000);
- <%
- }
- }
- }
-
- if (errorMsg != null) {
- %>
- alert("<%=errorMsg%>");
- <%
- if(m.equals("52") || m.equals("53")) {
- %>
- 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/authguide.jsp";
- var option = "height=500, left=" + left + ", top=" + top +", width=760, location=no, titlebar=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, min=no, max=no";
-
- if (authGuidePage == null) {
- authGuidePage = window.open(url, null, option);
- } else if (resetPwdPage.closed) {
- authGuidePage = window.open(url, null, option);
- }
- authGuidePage.focus();
- <%
- }
- }
- %>
- <%--
- if (m.equals("55")){
- %>
- location.href="himed.live";
- <%
- }
- --%>
-
-
- }
-
- function isNull(str){
- return ((str == null || str == "" || str == "undefined") ? true:false);
- }
-
- 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 checkTimer(){
- var stime = document.getElementById("stime");
-
- stime.innerHTML = "("+gTime+" 초 )";
- gTime--;
-
- if(gTime <= 0){
- window.clearInterval(gTimerID);
- gTimerID = null;
- stime.innerHTML = "";
- }
- }
-
- // 인증번호 인증
- function authNoForPhoneAuth(flag){
- var authNo = document.getElementById("authno");
- var cmd = document.getElementById("cmd");
-
- cmd.value = flag;
-
- if((flag == "UNLOCK" || flag == "CHGPW") && gTimerID == null){
- alert("인증번호를 받지 않았거나, 정해진 유효시간을 초과했습니다.\n 새로운 인증번호를 받으시기 바랍니다.");
- return;
- }
-
- if(checkSendAuthNoForPhoneAuth()){
- if(gTimerID != null){
- document.getElementById("gtime").value = gTime;
- }
-
- authNo.action = "sendauthno.live";
- authNo.submit();
- }
-
- }
-
-
-
- /*
- // 인증번호 보내기
- function sendAuthNoForPhoneAuth(){
- var authNo = document.getElementById("authno");
- var cmd = document.getElementById("cmd");
-
- cmd.value = "SMS";
-
- if(checkSendAuthNoForPhoneAuth()){
- authNo.action = "sendauthno.live";
- authNo.submit();
- }
- }
- */
-
- // 인증번호 받기 Validation
- function checkSendAuthNoForPhoneAuth(){
-
- if(document.getElementById("userid").value == ""){
- alert("사용자ID를 입력해 주세요");
- document.getElementById('userid').focus();
- return false;
- }
-
- if(document.getElementById("usernm").value == ""){
- alert("사용자명을 입력해 주세요");
- document.getElementById('usernm').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;
- }
-
-
- }
- function enter(){
-
- }
- //-->
- </script>
- </head>
- <body onload="onBodyLoad()">
- <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="42" align="center" class="moto"><%=title%></td>
- </tr>
- </table>
- <form method="get" id="authno" name="authno">
- <input id="cmd" name="cmd" type="hidden" value="SMS"/>
- <input id="gtime" name="gtime" type="hidden" />
-
- <table id="formtbl" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="3"><img src="../images/auth_welcome.gif" width="340" height="90" alt="" border="0"></td>
- </tr>
-
- <tr>
- <td><img src="../images/auth_id.gif" width="102" height="44" alt="" border="0"></td>
- <td colspan="2" width="238px" background="../images/auth_idinput.gif" height="44" valign="middle"><input type="text" id="userid" name="userid" tabIndex="1" onkeydown="enter()" value="<%= userid %>"/></td>
- </tr>
-
- <tr>
-
- <td><img src="../images/auth_name.gif" width="102" height="36" border="0"></td>
-
- <td colspan="2" border="0" width="238px" background="../images/auth_nameinput.gif" height="36" valign="middle"><input type="text" id="usernm" name="usernm" style="ime-mode:active" tabIndex="2" onkeydown="enter()" value="<%= usernm %>"/></td>
-
-
- </tr>
-
- <tr>
- <td height="36" ><img src="../images/auth_tel.gif" width="102" height="36"></td>
- <td background="../images/auth_telinpt1.gif" width="160" height="36">
- <select id="mob1" name="mob1" style="width:50px" onchange="clickEvn();">
- <option value="010" <% if(mob1.equals("010")) out.print("selected"); %>>010</option>
- <option value="011" <% if(mob1.equals("011")) out.print("selected"); %>>011</option>
- <option value="016" <% if(mob1.equals("016")) out.print("selected"); %>>016</option>
- <option value="017" <% if(mob1.equals("017")) out.print("selected"); %>>017</option>
- <option value="018" <% if(mob1.equals("018")) out.print("selected"); %>>018</option>
- <option value="019" <% if(mob1.equals("019")) out.print("selected"); %>>019</option>
- </select>
- -
- <input type="text" id="mob2" name="mob2" maxlength="8" style="width:97px" value="<%= mob2 %>" tabIndex="3">
- </td>
- <td width="78" height="36"><a href="#none" id="btnPhoneAuthNo" name="btnPhoneAuthNo" onclick="authNoForPhoneAuth('SMS');"><img src="../images/auth_telinpt2.gif" width="78" height="36" alt="" border="0" ></a></td>
- </tr>
- </tr>
-
- <tr>
- <td><img src="../images/auth_no.gif" width="102" height="37" border="0"></td>
- <td colspan="2" width="238px" background="../images/auth_noinput1.gif" height="37" valign="middle"><input type="text" id="userauthno" name="userauthno" tabIndex="4" onkeydown="enter()" value="<%= userauthno %>"/>
- <span id="stime"></span>
- </td>
- </tr>
- </table>
- </form>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr width="340" align="center">
- <td background="../images/auth_bottom1.gif" width="64px" height="21px" alt="" border="0">
- </td>
- <td ><a href="#none" id="btnUserAuthNo" name="btnUserAuthNo" onclick="authNoForPhoneAuth('UNLOCK');"><img src="../images/auth_bottom22.gif" width="82px" height="24px" alt="" border="0" ></a>
- </td>
- <td background="../images/auth_bottom3.gif" width="32px" height="21px" alt="" border="0">
- </td>
- <td ><a href="#none" id="btnUserAuthNo2" name="btnUserAuthNo2" onclick="authNoForPhoneAuth('CHGPW');"><img src="../images/auth_bottom4.gif" width="130px" height="24px" alt="" border="0" ></a>
- </td>
- <td background="../images/auth_bottom3.gif" width="32px" height="21px" alt="" border="0">
- </td>
- </tr>
- <tr>
- <td colspan="5" height="5" align="right"><font color="blue" size="2">※ 비밀번호 초기화시 자동으로 잠금해제 됩니다.</font>
- </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <!-- HIS 시스템(운영)인 경우만 기관코드, 나머지는 의료원코드(001)로 : by hoya-->
- <td><a href="himed.live"><img src="../images/<%=loginlogo%>" alt="" border="0"></a></td>
- </tr>
- </table>
-
-
- </td>
-
-
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>
|