%
/**********************************************************************************
ÇÁ·Î±×·¥¸í : dept_view.jsp
ÇÁ·Î±×·¥¼³¸í :
ÀÛ ¼º ÀÚ : Á¶¿ëÁØ
ÀÛ ¼º ÀÏ : 04.07.06
ÃֽꝰæÀÏ :
***********************************************************************************/
%>
<%@ page contentType="text/html; charset=euc-kr" %>
<%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin" %>
<%@ page import="kr.co.kihyun.text.html.ServletUtil" %>
<%@ page import="kr.co.kihyun.lang.Encoder" %>
<%@ page import="kr.co.kihyun.moumi.Moumi" %>
<%@ page import="kr.co.kihyun.lang.MString"%>
<%@ page import="java.net.URLEncoder" %>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp" %>
<%
try{
/***** user Login check *****************/
if(!HttpSSOLogin.isLogin(request)){
String connURL="parent.location='/totsys/login/login.jsp';";
out.println(ServletUtil.getJavaScript(connURL));
return;
}
/********** session³»ÀÇ userId **********/
String usID = "";
usID = HttpSSOLogin.getLoginID(request);
/****** Parameter ******/
String deptID = "";
String findOption = "";
String findWord = "";
String dirPath = URLEncoder.encode("ºÎ¼°ü¸®");
String uri = URLEncoder.encode("./dept_list.jsp?findOption="+findOption+"&findWord="+findWord);
deptID = clearXSS(Encoder.toJava(request.getParameter("deptID")),"");
/****** dept modify data get ******/
String[] distIDList = null;
String name = "";
String addr = "";
String phone = "";
String passcode = "";
String recoImg = "";
String partID = "";
String upperName = "";
String location = "";
partRegist.executeQuery();
distIDList = partRegist.getDistIDList();
//v2. 13.SQL »ðÀÔ : deptView.executeQuery()¿¡¼ prepare SQL ¹®À¸·Î µÇ¾î ÀÖ´Ù.
deptView.executeQuery(deptID);
//================
name = deptView.getName();
addr = MString.checkNull(deptView.getAddr());
phone = MString.checkNull(deptView.getPhone());
passcode = deptView.getPasscode();
recoImg = MString.checkNull(deptView.getRecoImg());
upperName = deptView.getUpperDeptName();
location = MString.checkNull(deptView.getLocation(),"mnd");
if(location.equals("1")) location="mnd";
else if(location.equals("2")) location="jcs";
%>
<%=Moumi.getTitle()%>
|
|
|
<%@ include file="/totsys/common/inc/buttom/buttom.jsp" %>
<%
}catch(Exception ex){
//38.¿À·ù¸Þ¼¼Áö¸¦ ÅëÇÑ Á¤º¸ ³ëÃâ(getMessage)_CWE-209 : Update by YOUNGJUN,CHO
ex.printStackTrace();
//out.println(ex);
//out.println("Can't contact servlet runner
Message : "+ex.getMessage()+"");
//out.println("");
//================================================
}finally{
}
%>