<%@page import="kr.co.kihyun.moumi.MoumiConfig"%>
<%@page import="kr.co.kihyun.beans.totsys.menu.DefaultMenu"%>
<%
/************************************************************@@
  * Program Name	: title.jsp
  * Description		: 로케이션
  * Author			: 기현테크
  * Create Date		: 2010-11-21
  * History			:
@@************************************************************/
%>
<%@page pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"
	import="java.net.URLDecoder"
    import="kr.co.kihyun.lang.Encoder"
        import="kr.co.kihyun.lang.Encoder"
        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 = Encoder.toJava(MString.checkNull(request.getParameter("title")));
String desc = Encoder.toJava(MString.checkNull(request.getParameter("desc")));*/
String reportType = Encoder.toJava(MString.checkNull(request.getParameter("reportType")));
String title=URLDecoder.decode(MString.checkNull(request.getParameter("title")));
//System.out.println("title::::::"+title);
String desc=URLDecoder.decode(MString.checkNull(request.getParameter("desc")));

String flag = request.getParameter("flag");
if(flag==null) flag="00";
DefaultMenu menu = new DefaultMenu(request);
try {
%>
<style type="text/css">
<!--
.trail a:link {
	font-family: "돋움";
	font-size: 15px;
	font-style: normal;
	line-height: normal;
	color: #004080;
	text-decoration: none;
}

.trail a:visited {
	font-family: "돋움";
	font-size: 15px;
	font-style: normal;
	line-height: normal;
	color: #3366CC;
	text-decoration: none;
}

.trail a:active {
	font-family: "돋움";
	font-size: 15px;
	font-style: normal;
	line-height: normal;
	color: #535353;
	text-decoration: none;
}

.trail a:hover {
	font-family: "돋움";
	font-size: 15px;
	font-style: normal;
	line-height: normal;
	color: #FF6600;
	text-decoration: underline;
}
-->
</style>

<tr>
	<td style="padding-bottom: 0">
<table width="100%" height="47" border="0" cellpadding="0"
		cellspacing="0" style="margin-top:14px">
<% if(flag.equals("99")) { %>
<tr>
  <td width="15" valign="top" style="padding-top: 15px"><img src="/totsys/common/images/title_circle.gif" border=0>&nbsp;</td>
  <td align="left"> <b><span> <%=title%> </span></b></td>
		</tr>
            <% } 
            else
             { %>
		<tr>
			<td width="10" valign="top" style="padding-top: 15px"><img
				src="/totsys/common/images/title_circle.gif" border=0>&nbsp;</td>
			<td align="left"> <b><span class="trail"><% if(MString.isNull(title) || !MString.isNull(title)) { %>
                        <trail:trailMenu /><font size='3' face='굴림'>
                            <%if("READY".equals(reportType)){%>
                             승인결재대기
                           <%}else if("COMPLETE".equals(reportType)){%>
                              승인결제완료
                           <%}%>
                         <% } %><% if(!MString.isNull(desc)) { if(!desc.equals(menu.getDocName())){%>
			       <%= " / "+desc  %> <% }} %> </fonr></span></b>
            </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{
}
%>
