
<%
/************************************************************@@
  * Program Name	: doc_list.jsp
  * Description		: /집계자/내문서함/진행함/보고문서 목록
  * Author			: 강원중
  * Create Date		: 2004.10.11
  * History			:
@@************************************************************/
%>

<%@ page contentType="text/html; charset=UTF-8"
	import="java.net.URLEncoder" import="kr.co.kihyun.lang.Encoder"
	import="kr.co.kihyun.beans.user.HttpSSOLogin"
	import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.moumi.Moumi"
	import="kr.co.kihyun.lang.MInteger"
	import="kr.co.kihyun.moumi.doc.MDoc"
	import="kr.co.kihyun.moumi.report.MReport"%>

<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>

<%
  try{
	/********** session내의 userId **********/
	String usID = HttpSSOLogin.getLoginID(request);

	/****** Parameter ******/
	Long docID  = MLong.parseLong(request.getParameter("docID"),null);
	int listType = MReport.ALL_LIST;
	if( ! (clearXSS(request.getParameter("listType"),"").equals("")) ){
		listType = MInteger.parseInt(request.getParameter("listType"));
	}
	String strPage = clearXSS(request.getParameter("strPage"),"");
	String findOption = clearXSS(request.getParameter("findOption"),"");
	String findWord = clearXSS(request.getParameter("findWord"),"");
	String accAuth = clearXSS(request.getParameter("accAuth"),"");

	String subFindOption = clearXSS(request.getParameter("subFindOption"),"");
	String subFindWord = clearXSS(request.getParameter("subFindWord"),"");
%>

<HTML>
<HEAD>
<TITLE><%=Moumi.getTitle()%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link rel="stylesheet" href="/totsys/common/css/text.css"
	type="text/css">
<script src="/totsys/common/js/rollover.js"></script>
<script src="/totsys/common/js/popup.js"></script>
<link rel="stylesheet" href="/totsys/common/css/kecttep.css"
	type="text/css">
<link rel="stylesheet" href="/totsys/common/css/tabs.css"
	type="text/css">
<script>
			function showMSG(){
				if(form1.subFindOption.value == "regDate"){
					msg.style.display="block";
				}else{
					msg.style.display="none";
				}
			}
		
			function modify(){
				location.href="/totsys/sysadm/prssbox/doc_modify.jsp?docID=<%= docID %>&url=mmprss";
			}
		
			function formView(){
				location.href="/totsys/sysadm/prssbox/doc_form_view.jsp?docID=<%=docID%>";
			}
		
			function reports(){
				location.href="/totsys/sysadm/prssbox/reports/report_list.jsp?docID=<%= docID %>";
			}
		
			function totReports(){
				location.href="/totsys/sysadm/prssbox/tot_reports/total_reports.jsp?docID=<%= docID %>";
			}
		
			function totReport(){
				location.href="/totsys/sysadm/prssbox/tot_report/total_report.jsp?docID=<%= docID %>";
			}
		</script>
</HEAD>

<body style='' BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0"
	MARGINWIDTH="0" MARGINHEIGHT="0">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<!---- top menu 시작 ---->
	<jsp:include page="/totsys/common/inc/totper/top/top.jsp" flush="true" />
	<jsp:include page="/totsys/common/inc/title/title.jsp" flush="true" />
</table>
</div>

<div id="header">
<ul id="primary">
	<li><a href="#" onclick="modify();">기본정보</a></li>
	<li><a href="#" onclick="formView();">양식정보</a></li>
	<li><span class="kecttep_menu_focous">제출현황</span></li>
	<li><a href="#" onclick="totReports();">집계현황</a></li>
	<li><a href="#" onclick="totReport();">집계표</a></li>
</ul>
</div>

<div id="main">
<div id="contents">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<!--  문서 내용 -->
	<jsp:include page="/totsys/common/inc/documents/report/report_list.jsp"
		flush="true">
		<jsp:param name="docID" value="<%= docID %>" />
		<jsp:param name="strPage" value="<%= strPage %>" />
		<jsp:param name="findOption" value="<%= findOption %>" />
		<jsp:param name="findWord" value="<%= findWord %>" />
		<jsp:param name="listType" value="<%= listType%>" />
		<jsp:param name="subFindOption" value="<%= subFindOption %>" />
		<jsp:param name="subFindWord" value="<%= subFindWord %>" />
		<jsp:param name="prssENG" value="<%= MDoc.PRSS %>" />
	</jsp:include>
	<!--  문서 내용 끝 -->
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<!---- 검색 시작 ---->
		<td width="330">
		<form name="form1" method="post" action="./report_list.jsp"><input
			type="hidden" name="docID" value="<%= docID %>"> <input
			type="hidden" name="listType" value="<%= listType %>"> <select
			name="subFindOption" class="inputtxt" onchange="showMSG()">
			<option value="deptName">제출부서</option>
			<option value="userName">제출자</option>
			<option value="partName">제출기관</option>
			<option value="regDate">제출일</option>
		</select> <input name="subFindWord" type="text" class="inputtxt" size="30"
			maxlength="30" value="<%=Encoder.toJava(subFindWord)%>"><a
			href="#" onclick="submit();">&nbsp;<img
			src="/totsys/common/images/bt_search.jpg" align="absmiddle"
			style="MARGIN: 2px 0px 0px 0px"></a> <!---- 검색 끝 ----></form>
		</td>
		<td>
            <font color="#3c64ab"><span id="msg"
			style='display: none; padding-top: 5'>&nbsp;&nbsp;&nbsp;날짜 검색시
		08-12-01 형식으로 입력</span></font></td>
	</tr>
</table>
</div>
</div>

<!--검색후 검색조건 선택하기위한 스크립트(히든값포함)-->
<input type="hidden" name="tmpFind" value="<%=subFindOption%>">
<script>
				if(tmpFind.value == "userName"){
					form1.subFindOption.selectedIndex=1;
				}else if(tmpFind.value == "partName"){
					form1.subFindOption.selectedIndex=2;
				}else if(tmpFind.value == "regDate"){
					form1.subFindOption.selectedIndex=3;
				}
			</script>
<!--검색후 검색조건 선택하기위한 스크립트 끝-->

<!------------------------------- bottombar start ------------------------------->
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%>
<!------------------------------- bottombar end ------------------------------->
</table>
</BODY>
</HTML>
<%
}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{
}
%>
