<%@page import="kr.co.kihyun.beans.totsys.menu.DefaultMenu"%>
<%
/************************************************************@@
  * Program Name	: title.jsp
  * Description		: 로케이션
  * Author			: 기현테크
  * Create Date		: 2010-11-21
  * History			:
@@************************************************************/
%>
<%@ page contentType="text/html; charset=UTF-8"
	import="java.net.URLDecoder" import="kr.co.kihyun.lang.MString"%>
<%// trail메뉴를 보여주는 페이지.
	// title매개변수를 이용해 trail메뉴 대신 다른 내용을 보여줄 수 있으며, 
	// desc매개변수로 추가 메시지를 덧붙일 수 있다.%>
<%//@ taglib prefix="trail" uri="http://www.kihyun.co.kr/taglibs/trail" %>
<%@ taglib prefix="trail" uri="/WEB-INF/tlds/TrailTagLib.tld"%>
<%
    String title = URLDecoder.decode(MString.checkNull(request.getParameter("title")), "UTF-8");
    String desc = URLDecoder.decode(MString.checkNull(request.getParameter("desc")), "UTF-8");
    String docName = URLDecoder.decode(MString.checkNull(request.getParameter("docName")), "UTF-8");
    String flag = request.getParameter("flag");
    if(flag==null) {
        flag="00";
    }
//    DefaultMenu menu = new DefaultMenu(request);
//    String docName=menu.getDocName();
//    if(docName==null) {
//        docName="";
//    }
//    menu=null;
    
    try {
%>
<tr>
    <td style="padding-bottom: 0">
	<table class="titleTable">
            <% if(flag.equals("99")) { %>
            <tr>
                <td>
                    <img alt="글머리" align="middle" src="/totsys/common/images/title_circle.gif" border="0" style="margin:0 5px 0 0;">
                </td>
                <td>
                    <span class="bold"> <%=title%> </span>
                </td>
            </tr>
            <% 
            } else { 
            %>
            <tr>
                <td>
                    <img alt="글머리" src="/totsys/common/images/title_circle.gif">
                </td>
                <td>
	                <span class="trail bold">
	                    <% if(MString.isNull(title)|| !MString.isNull(title)) { %>
	                        <trail:trailMenu />
	                    <% } %>
	                    <% if(!MString.isNull(desc)) { 
	                           //if(!desc.equals(docName)) {
	                                out.println(" / "+desc);
	                            //}
	                    }
	                    %>
	                </span>
                </td>
            </tr>
       <% } %>
	</table>
	</td>
</tr>
<!--tr>
	<td height="15"></td>
</tr-->
<%
}catch(Exception ex){
	ex.printStackTrace();
	out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';"));
}finally{
}
%>
