<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="com.biz_nis.cmn.CommonMethod" %> <%@ page import="com.biz_nis.fndtInfoMgt.entpMgt.EntpMgtDAO" %> <%@ page import="com.biz_nis.fndtInfoMgt.entpMgt.EntpMgtDTO" %> <%@ page import="org.apache.log4j.Logger" %> <% Logger l_oLogger = Logger.getLogger( "" ); //parameter int p_nCurPage = CommonMethod.intNullChk(request.getParameter("cur_page"), 1); int p_nListSize = CommonMethod.intNullChk(request.getParameter("list_size"), 10); String p_sSlct_flag = CommonMethod.nullChk(request.getParameter("slct_flag"), "mbr_id"); String p_sSrch_text = CommonMethod.nullChk(request.getParameter("srch_text")); String p_sSlct_entp_idstry = CommonMethod.nullChk(request.getParameter("slct_entp_idstry")); String p_sSlct_entp_dstic = CommonMethod.nullChk(request.getParameter("slct_entp_dstic")); String p_sEntp_seq = CommonMethod.nullChk(request.getParameter("entp_seq")); EntpMgtDAO l_oEntpMgtDAO = new EntpMgtDAO(); EntpMgtDTO l_oEntpMgtDTO = new EntpMgtDTO(); l_oEntpMgtDTO = (EntpMgtDTO)l_oEntpMgtDAO.getEntpMgtInfo( CommonMethod.intNullChk(p_sEntp_seq) ); String l_entp_idstry = CommonMethod.nullChk( l_oEntpMgtDTO.getEntp_idstry() ); String l_entp_dstic = CommonMethod.nullChk( l_oEntpMgtDTO.getEntp_dstic() ); %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <title>â–’â–’â–’ SCG â–’â–’â–’</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link type="text/css" rel="stylesheet" href="/css/style.css"> <script type="text/javascript" src="/js/cmn/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="/js/cmn/cmn.js"></script> <script type="text/javascript" src="/js/cmn/validation.js"></script> <script type="text/javascript" src="/js/cmn/paging.js"></script> <script language="javascript"> <!-- $(document).ready(function(){ var url = "/jsp/fndt_info_mgt/entp_mgt/ajax_option.jsp"; var params; fn_ajax_select(url, "hirk_cd=A01", "entp_idstry", "<%= l_entp_idstry %>", "select"); fn_ajax_select(url, "hirk_cd=<%= l_entp_idstry %>", "entp_dstic", "<%= l_entp_dstic %>", "select"); //산업별 하위 코드 $("#entp_idstry").change(function(){ if ($("#entp_idstry").val() != "") { params = "hirk_cd="+$("#entp_idstry").val(); fn_ajax_select(url, params, "entp_dstic", "", "select"); } else $("#entp_dstic").find("option").remove().end().append("<option selected=\"selected\" value=''>= ì„ íƒ =</option>"); }); $("#btnLogOut").click(function(){ fn_logout(); }); $("#btnInsert").click(function(){ fn_insert(); }); $("#btnList").click(function(){ $("#form_list").attr("action", "/jsp/fndt_info_mgt/entp_mgt/entp_mgt_list.jsp"); $("#form_list").submit(); }); }); function fn_logout() { document.location.href="/jsp/login/logout.jsp"; } function fn_insert() { if (confirm("ì €ìž¥í•˜ì‹œê² ìŠµë‹ˆê¹Œ?")) { if (!validate(form)) { return; } else { $("#form").attr("action", "/jsp/fndt_info_mgt/entp_mgt/entp_mgt_proc.jsp"); $("#form").submit(); } } } //íŒŒì¼ í™•ìž¥ìž ì²´í¬ ì—¬ë¶€ var fileCheckYn = new Array("N"); //íŒŒì¼ ì²´í¬ function fn_fileCheckInci(obj){ var fileName = obj.value; pathpoint = fileName.lastIndexOf('.'); filepoint = fileName.substring(pathpoint+1,fileName.length); filetype = filepoint.toLowerCase(); var index = obj.name.substring(8,10); var compStr = new Array("bat","exe","jsp","class","php","asp","java","cgi","js"); for( i=0; i<compStr.length; i++) { if(compStr[i] == filetype){ fileCheckYn[index] = "Y"; break; }else{ fileCheckYn[index] = "N"; } } } //--> </script> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"> <!-- top START --> <%@ include file = "/include/inc_sub_top.jsp"%> <!-- top END --> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="167" valign="top" > <!-- top START --> <%@ include file = "/include/inc_sub_left_menu_fndt_info_mgt.jsp"%> <!-- top END --> </td> <td width="20" background='/image/new_top/left_line.gif' valign="top"><img src='/image/new_top/left_top.gif' ></td> <td valign="top"> <table border="0" cellPadding="0" cellSpacing="0" width="100%"> <tr> <td bgcolor="E4E3E3" height="1"><img src='/image/new_top/spacer.gif'></td> </tr> <tr> <td height="10"></td> </tr> </table> <table border="0" cellPadding="0" cellSpacing="0"> <tr> <td width="10"></td> <td> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <!--내용시작--> <!--타ì´í‹€--> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#E2F4DD"> <tr bgcolor="FFFFFF" height="30"> <td class="p14" style="padding-top:10" height="45"> <img src="/image/icon/ico_01.gif" width="18" height="11" border="0" align="absmiddle" hspace="3"> <b> ì—…ì²´ì • 보관리</b> </td> </tr> </table> <!--타ì´í‹€--> <!-- help BOX --> <form id="form" name="form" method="post" enctype="multipart/form-data"> <input type="hidden" id="flag" name="flag" value="U"> <input type="hidden" id="cur_page" name="cur_page" value="<%= p_nCurPage %>"/> <input type="hidden" id="list_size" name="list_size" value="<%= p_nListSize %>"/> <input type="hidden" id="slct_flag" name="slct_flag" value="<%= p_sSlct_flag %>"/> <input type="hidden" id="srch_text" name="srch_text" value="<%= p_sSrch_text %>"/> <input type="hidden" id="entp_seq" name="entp_seq" value="<%= p_sEntp_seq %>"/> <input type="hidden" id="slct_entp_idstry" name="slct_entp_idstry" value="<%=p_sSlct_entp_idstry %>"> <input type="hidden" id="slct_entp_dstic" name="slct_entp_dstic" value="<%=p_sSlct_entp_dstic %>"> <!-- 관리ìžì •ë³´ --> <table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="E6E6E6"> <tr bgcolor="FFFFFF"> <td bgcolor="F5F5F5" style="padding:10px; padding-left:20px" nowrap="nowrap">* 산업별</td> <td style="padding:10px" nowrap="nowrap"> <select id="entp_idstry" name="entp_idstry" style="width:230px" hname="산업별" required> <option selected="selected" value="">= ì„ íƒ =</option> </select> </td> </tr> <tr bgcolor="FFFFFF"> <td bgcolor="F5F5F5" style="padding:10px; padding-left:20px" nowrap="nowrap">* 산업별 하위 구분</td> <td style="padding:10px" nowrap="nowrap"> <select id="entp_dstic" name="entp_dstic" style="width:230px" hname="산업별 하위 구분" required> <option selected="selected" value="">= ì„ íƒ =</option> </select> </td> </tr> <tr bgcolor="FFFFFF"> <td bgcolor="F5F5F5" style="padding:10px; padding-left:20px" nowrap="nowrap">* 업체명</td> <td style="padding:10px" nowrap="nowrap"> <input type="text" size="35" value="<%= CommonMethod.nullChk(l_oEntpMgtDTO.getEntp_nm()) %>" id="entp_nm" name="entp_nm" maxlength="50" class="box" hname="업체명" required> </td> </tr> <tr bgcolor="FFFFFF"> <td bgcolor="F5F5F5" style="padding:10px; padding-left:20px" nowrap="nowrap">* íšŒì‚¬ë¡œê³ </td> <td style="padding:10px" nowrap="nowrap"> <img src="/entp_logo_upload/<%= l_oEntpMgtDTO.getEntp_logo_file_nm() %>" width="400" border="0"><br> <input type="file" id="attac_file" name="attac_file" size="75%" onchange="fn_fileCheckInci(this);" class="box" hname="íšŒì‚¬ë¡œê³ " required> </td> </tr> </table> <br> <!-- 관리ìžì •ë³´ --> <p align="center"> <img id="btnInsert" src="/image/button/bu_confirm_gray.gif" style="cursor:hand;"> <img id="btnList" src="/image/button/bu_can_gray.gif" style="cursor:hand;" border="0"> </p> <p> </p> </form> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <form id="form_list" name="form_list" method="post"> <input type="hidden" name="cur_page" name="cur_page" value="<%=p_nCurPage %>"> <input type="hidden" name="list_size" value="<%=p_nListSize %>"> <input type="hidden" name="slct_flag" value="<%=p_sSlct_flag %>"> <input type="hidden" name="srch_text" value="<%=p_sSrch_text %>"> <input type="hidden" name="slct_entp_idstry" value="<%=p_sSlct_entp_idstry %>"> <input type="hidden" name="slct_entp_dstic" value="<%=p_sSlct_entp_dstic %>"> </form> <!-- bottom START --> <%@ include file = "/include/inc_sub_bottom.jsp"%> <!-- bottom END --> </body> </html>