login.jsp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  3. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  4. <%@ page import="kr.co.hsnc.common.util.*"%>
  5. <%@ page import="kr.co.hsnc.common.sql.*" %>
  6. <%@ include file="/jsp/work/taglib.jsp" %>
  7. <%@ page import="kr.co.hsnc.j2ee.waf.controller.web.util.WebKeys" %>
  8. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  9. <%
  10. ctx.init(request, response);
  11. HandlerStorage storage = ctx.getHandlerStorage();
  12. ValueObject user = ctx.getUser();
  13. ValueObject params = ctx.getParams();
  14. RowSet notiRowSet = storage.getRowSet("notiRowSet");
  15. int rowSize = notiRowSet.size();
  16. if(rowSize > 5) {
  17. rowSize = 5;
  18. }
  19. boolean signedOn = false;
  20. HttpSession htSession = request.getSession();
  21. if( request.getSession().getAttribute(WebKeys.SIGNED_ON_USER) != null ) {
  22. signedOn = true;
  23. }
  24. String yyyymmdd = (new java.text.SimpleDateFormat ("yyyyMMdd")).format (new java.util.Date());
  25. %>
  26. <style type="text/css">
  27. .pop-layer {display:none; position: absolute; top: 50%; left: 50%; width: 310px; height:auto; background-color:#fff; border: 5px solid #3571B5; z-index: 10;}
  28. .pop-layer .pop-container {padding: 20px 25px;}
  29. .pop-layer p.ctxt {color: #666; line-height: 25px;}
  30. .pop-layer .btn-r {width: 100%; margin:10px 0 20px; padding-top: 10px; border-top: 1px solid #DDD; text-align:right;}
  31. </style>
  32. <link rel="stylesheet" type="text/css" href="/css/supplier/login.css" />
  33. <script language="JavaScript" src="/js/login.js"></script>
  34. <script type="text/javascript">
  35. jQuery(document).ready(function() {
  36. //레이어창 닫았다 다시열 시 리사이징 때문인지 입력폼 먹통되는 현상(IE9, 크롬 이상없음) 레이어 바깥쪽 클릭하면 정상으로 돌아옴. 왜지??
  37. $("#_searchId").click();
  38. $("#join").click(function(){
  39. location.href="/supplier/portal/join/TermsAgree.screen";
  40. });
  41. $("#search_id").click(function(){
  42. var win_id = "_searchId";
  43. var link = "/supplier/portal/join/SuppSearchId.screen";
  44. link += "?pop_win_id="+win_id+"&layerYn=Y";
  45. fLayerPop(win_id, link, 610,110, '', '', 'auto', 100);
  46. });
  47. $("#ContSearch").click(function(){
  48. var win_id = "_ContSearchPopup";
  49. var link = "/portal/cont/ContSearchPopup.screen";
  50. link += "?pop_win_id="+win_id+"&layerYn=Y";
  51. fLayerPop(win_id, link, 600,150, '', '', 'auto');
  52. });
  53. $("#btn_login").click(function(){
  54. var f = document.loginForm;
  55. $("#fevent").val("USER_APPR_CHK");
  56. submitXmlRequest("/supplierLogin_form.screen", $("#fevent").val(), f, "VALUEOBJECT");
  57. });
  58. /*************************************
  59. 협력업체 포탈 안내 팝업
  60. *************************************/
  61. if(<%=yyyymmdd%> <= '20231231') fOpenNotiPop();
  62. });
  63. function goReference() {
  64. var win_id = "_searchReference";
  65. var link = "/supplier/portal/center/SuppReferenceListPopup.screen";
  66. link += "?pop_win_id="+win_id+"&layerYn=Y";
  67. fLayerPop(win_id, link, 810,410, '', '', 'auto');
  68. }
  69. function searchReferenceClose(){
  70. fLayerPopClose('_searchReference');
  71. }
  72. function getNotiList() {
  73. var win_id = "_searchNotice";
  74. var link = "/supplier/portal/center/SuppNotiListPopup.screen";
  75. link += "?pop_win_id="+win_id+"&layerYn=Y";
  76. fLayerPop(win_id, link, 810,400, '', '', 'auto');
  77. }
  78. function searchNoticeClose(result){
  79. fLayerPopClose('_searchNotice');
  80. }
  81. function goSmartbill(){
  82. //var url = "http://www.smartbill.co.kr/";
  83. var url = "https://www.wehago.com/";
  84. window.open(url, "_blank");
  85. }
  86. function getNotiDetail(seq) {
  87. var win_id = "_searchNotice";
  88. var link = "/supplier/portal/center/SuppNotiDetailPopup.screen";
  89. link += "?pop_win_id="+win_id+"&seq="+seq+"&layerYn=Y";
  90. fLayerPop(win_id, link, 810,400, '', '', 'auto');
  91. }
  92. //2015.7.17
  93. function openPopUpSc(){
  94. var url = "http://www.bizrating.co.kr";
  95. window.open(url, "_blank");
  96. }
  97. function openPopUpStep(){
  98. var url = "/html/join_step_guide.html";
  99. //window.open(url, "join_step");
  100. openPopup(url, "_blank", "no", "800", "800");
  101. }
  102. function openPopUpCrossCert(){
  103. var url = "https://raadmin.crosscert.com/customer/etecenc/index.html";
  104. window.open(url, "_blank");
  105. }
  106. function openPopUpUser() {
  107. var url = "/html/portal_user_popup.html";
  108. openPopup(url, "_blank", "no", "800", "320");
  109. }
  110. /**
  111. * Cookie 읽기
  112. */
  113. function _fGetCookie( name ) {
  114. var nameOfCookie = name + "=";
  115. var x = 0;
  116. while ( x <= document.cookie.length ) {
  117. var y = (x+nameOfCookie.length);
  118. if ( document.cookie.substring( x, y ) == nameOfCookie ) {
  119. if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
  120. endOfCookie = document.cookie.length;
  121. return unescape( document.cookie.substring( y, endOfCookie ) );
  122. }
  123. x = document.cookie.indexOf( " ", x ) + 1;
  124. if ( x == 0 )
  125. break;
  126. }
  127. return "";
  128. }
  129. /*******************************
  130. 협력업체 공지 팝업
  131. *******************************/
  132. function fOpenNotiPop()
  133. {
  134. //1. 대금안내 팝업(2014)
  135. /* if(_fGetCookie("pop_141219") != "no")
  136. {
  137. var url = "/html/pop_141219.html";
  138. openPopup(url, "_blank", "pop_141219", "541", "450");
  139. } */
  140. //2. 외주 우수협력사 안내 공지 팝업(2022)
  141. /* if(_fGetCookie("portal_out_supp_best") != "no")
  142. {
  143. var url = "/html/portal_out_supp_best.html";
  144. openPopup(url, "_blank", "portal_out_supp_best", "370", "330");
  145. } */
  146. //3. 견적 시스템 오픈 공지(2023)
  147. if(_fGetCookie("portal_quot_popup") != "no")
  148. {
  149. var url = "/html/portal_quot_popup.html";
  150. openPopup(url, "_blank", "portal_quot_popup", "720", "880");
  151. }
  152. }
  153. </script>
  154. <form type="post" name="loginForm">
  155. <INPUT type="hidden" name="fevent" id="fevent" value="">
  156. <INPUT type="hidden" name="layerYn" id="layerYn">
  157. <div id="wrap">
  158. <div id="header">
  159. <div id="supplier-main-menu">
  160. <ul class="main-menu">
  161. <li class="logo">
  162. <a href="/supplierLogin.screen"><img src="/img/supplier/portal_logo.png" /></a>
  163. </li>
  164. </ul>
  165. </div>
  166. </div>
  167. <div id="content-wrap" style="padding-bottom: 0px;">
  168. <div id="content">
  169. <div id="login-banner">
  170. <img src="/img/supplier/login/login_banner.gif" />
  171. </div>
  172. <div id="login-form">
  173. <table class="form">
  174. <colgroup>
  175. <col width="680" />
  176. <col width="*" />
  177. </colgroup>
  178. <tr>
  179. <td align="center">
  180. <table>
  181. <colgroup>
  182. <col width="120" />
  183. <col width="40" />
  184. <col width="160" />
  185. <col width="180" />
  186. <col width="14" />
  187. <col width="*" />
  188. </colgroup>
  189. <tr>
  190. <td rowspan="2"><img src="/img/supplier/login/login_form_title.gif" /></td>
  191. <td><img src="/img/supplier/login/login_id.gif" /></td>
  192. <td><input type="text" id="login_id" name="login_id" onkeypress="JavaScript:enter(1);" tabindex="1"/></td>
  193. <td><input type="checkbox" id="chk_save_id" /> 아이디저장</td>
  194. <td rowspan="2"><img src="/img/supplier/login/split.gif" /></td>
  195. <!-- <td rowspan="2"><a href="javascript:doLoginPortal();"><img src="/img/supplier/login/btn_login.gif" /></a></td> -->
  196. <td rowspan="2"><img src="/img/supplier/login/btn_login.gif" id="btn_login" name="btn_login" style="cursor: pointer;"/></td>
  197. </tr>
  198. <tr>
  199. <td><img src="/img/supplier/login/login_pw.gif" /></td>
  200. <td><input type="password" id="login_pw" name="login_pw" onkeypress="JavaScript:enter(2, 'Y');" tabindex="2"/></td>
  201. <td><img src="/img/supplier/login/btn_find.gif" id="search_id" name="search_id" style="cursor: pointer;" /></td>
  202. </tr>
  203. </table>
  204. </td>
  205. <td class="companyBtn">
  206. <a href="#" ><img src="/img/supplier/login/btn_company_reg.gif" id="join" name="join" /></a>
  207. </td>
  208. </tr>
  209. </table>
  210. </div>
  211. <div id="login-notice">
  212. <div id="notice">
  213. <table>
  214. <!-- <IFRAME width="380" height="240" name='worker' frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></IFRAME> -->
  215. <!--
  216. <thead>
  217. <a onClick="javascript:getNotiList();"><img src="/img/supplier/login/login_notice_title.gif" style="cursor: pointer;"/></a>
  218. </thead>
  219. <colgroup>
  220. <col width="10" />
  221. <col width="284" />
  222. <col width="*" />
  223. </colgroup>
  224. <tbody>
  225. <tr>
  226. <td><img src="/img/supplier/ico/green_a.gif" /></td>
  227. <td><a href="#">SGC이앤씨 협력업체 포털 시스템을 오픈하였습니다.</a></td>
  228. <td class="right">2014-05-29</td>
  229. </tr>
  230. <tr>
  231. <td><img src="/img/supplier/ico/green_a.gif" /></td>
  232. <td><a href="#">SGC이앤씨 협력업체 포털 시스템을 오픈하였습니다.</a></td>
  233. <td class="right">2014-05-29</td>
  234. </tr>
  235. <tr>
  236. <td><img src="/img/supplier/ico/green_a.gif" /></td>
  237. <td><a href="#">SGC이앤씨 협력업체 포털 시스템을 오픈하였습니다.</a></td>
  238. <td class="right">2014-05-29</td>
  239. </tr>
  240. <tr>
  241. <td><img src="/img/supplier/ico/green_a.gif" /></td>
  242. <td><a href="#">SGC이앤씨 협력업체 포털 시스템을 오픈하였습니다.</a></td>
  243. <td class="right">2014-05-29</td>
  244. </tr>
  245. <tr>
  246. <td><img src="/img/supplier/ico/green_a.gif" /></td>
  247. <td><a href="#">SGC이앤씨 협력업체 포털 시스템을 오픈하였습니다.</a></td>
  248. <td class="right">2014-05-29</td>
  249. </tr>
  250. </tbody>
  251. -->
  252. <thead>
  253. <img src="/img/supplier/login/login_notice_title01.gif" style="cursor: normal;"/><a onClick="javascript:getNotiList();"><img src="/img/supplier/login/login_notice_title02.gif" style="cursor: pointer;"/></a>
  254. <!-- <a onClick="javascript:getNotiList();"><img src="/img/supplier/login/login_notice_title.gif" style="cursor: pointer;"/></a> -->
  255. </thead>
  256. <colgroup>
  257. <col width="10" />
  258. <col width="284" />
  259. </colgroup>
  260. <tbody>
  261. <tr>
  262. <%
  263. for( int i=0; i<rowSize; i++ ) {
  264. %>
  265. <tr>
  266. <td>
  267. <img src="/img/supplier/ico/green_a.gif" />
  268. </td>
  269. <td><a onClick="javascript:getNotiDetail(<%= notiRowSet.getRow(i).get("seq") %>);" style="cursor: pointer;">
  270. <%
  271. if( notiRowSet.getRow(i).get("title").length() > 22 ) {
  272. %>
  273. <%=notiRowSet.getRow(i).get("title").substring(0, 22) + "..."%>
  274. <%
  275. }
  276. else {
  277. %>
  278. <%=notiRowSet.getRow(i).get("title")%>
  279. <%
  280. }
  281. %>
  282. </a>
  283. </td>
  284. <td class="right">
  285. <%= notiRowSet.getRow(i).get("noti_dy").substring(0,4) + "-" +
  286. notiRowSet.getRow(i).get("noti_dy").substring(4,6) + "-" +
  287. notiRowSet.getRow(i).get("noti_dy").substring(6,8) %>
  288. </td>
  289. </tr>
  290. <%
  291. }
  292. %>
  293. </tr>
  294. </tbody>
  295. </table>
  296. </div>
  297. <!--
  298. <div id = "temp">
  299. <table>
  300. <thead>
  301. <tbody>
  302. <tr><td width="50">23232323232323232</td></tr>
  303. </tbody>
  304. </thead>
  305. </table>
  306. </div>
  307. -->
  308. <div id="econtract">
  309. <img src="/img/supplier/login/btn_econtract_check.gif" id="ContSearch" name="ContSearch" style="cursor: pointer;"/>
  310. </div>
  311. <div id="btn">
  312. <table>
  313. <tr>
  314. <td><a href="#" ><img src="/img/supplier/login/btn_registration_step.gif" onclick="javascript:openPopUpStep();"/></a></td>
  315. <td><a href="#" ><img src="/img/supplier/login/btn_certi.gif" onclick="javascript:openPopUpCrossCert();"/></a></td>
  316. </tr>
  317. <tr>
  318. <td><a href="#"><img src="/img/supplier/login/btn_charger.gif" onclick="javascript:openPopUpUser();"/></a></td>
  319. <!-- <td><a href="#"><img src="/img/supplier/login/btn_cert_sc.gif" onclick="javascript:openPopUpSc();"/></a></td>
  320. <td><a href="#"><img src="/img/supplier/login/btn_pds.gif" onclick="javascript:goReference();"/></a></td> -->
  321. <td align="center"><a href="#"><img src="/img/supplier/login/btn_wehago.gif" onclick="javascript:goSmartbill();"/></a></td>
  322. </tr>
  323. </table>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. <div id="footer" style="z-index: 100;">
  329. <p><img src="/img/supplier/login/footer.gif" /></p>
  330. </div>
  331. </div>
  332. <SCRIPT language="javascript">
  333. var str_saveid = getCookie(CookieID);
  334. if( str_saveid != "" ) {
  335. document.loginForm.login_id.value = str_saveid;
  336. document.loginForm.chk_save_id.checked = true;
  337. }
  338. function doSignData(corp_reg_no, job_div){
  339. var sColumDelimiter = "┃";
  340. var sContHash=job_div +sColumDelimiter
  341. +corp_reg_no +sColumDelimiter;
  342. unisign.SignDataNVerifyVID( sContHash, null, corp_reg_no, function( resultObject ) {
  343. if( !resultObject || resultObject.resultCode != 0 ){
  344. if( resultObject.resultCode == '14208'){
  345. alert("선택하신 인증서가 로그인한 사업자의 인증서가 아닙니다.[사업자번호 불일치]");
  346. } else if( resultObject.resultCode == '999'){
  347. alert("사용자 DN 선택이 취소 되었습니다.");
  348. } else {
  349. alert( resultObject.resultMessage);
  350. }
  351. return;
  352. }
  353. var signeddata = resultObject.signedData;
  354. var userdn = resultObject.certAttrs.subjectName;
  355. $('.b-iframe').get(0).contentWindow.doSetPop(signeddata);
  356. });
  357. }
  358. </SCRIPT>
  359. </form>
  360. <!-- 전자인증 모듈 설정 //-->
  361. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  362. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  363. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  364. <!-- 전자인증 모듈 설정 //-->