
<%
/************************************************************@@
  * Program Name	: doc_view.jsp
  * Description		: /집계자/진행함/기본정보 보기
  * Author				: 강원중
  * Create Date		: 2004.10.11
  * History				:
@@************************************************************/
%>

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

<%@ 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);
	Long deptID = MLong.parseLong(request.getParameter("deptID"),null);
	String url = "mmprss";
	%>
<HTML>
<HEAD>
<TITLE><%=Moumi.getTitle()%></TITLE>
<link rel="stylesheet" href="/totsys/common/css/text.css"
	type="text/css">
<link rel="stylesheet" href="/totsys/common/css/kecttep.css"
	type="text/css">
<script src="/totsys/common/js/rollover.js"></script>
<link rel="stylesheet" href="/totsys/common/css/tabs.css"
	type="text/css">
<script language="javascript">
			function cancle(){
					var frm = document.docCancle;
					if(confirm('집계취소 하시겠습니까?')){
							frm.submit();
					}
			}
	
			function modify(){
				location.href="/totsys/sysadm/prssbox/doc_view.jsp?docID=<%= docID %>";
			}
	
			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 %>";
			}
			
			function leftAnc(){
				top.frames['left'].div1.style.display="none";//이 부분
				top.frames['left'].div2.style.display="block";
				top.frames['left'].div3.style.display="none";
				top.frames['left'].div4.style.display="none";
				top.frames['left'].div5.style.display="none";
				for(var i=1; i<=19; i++){
					top.frames['left'].document.all["link"+i].style.fontWeight="";
				}
				top.frames['left'].link7.style.fontWeight="bold"//이 부분
		
				for(var i=1; i<=4; i++){
					top.frames['left'].document.all["img"+i].src="/totsys/common/images/leftmenu_topicon1.gif";
				}
				top.frames['left'].img2.src="/totsys/common/images/leftmenu_topicon0.gif";//이 부분
		
			}
		</script>
</HEAD>

<body style='' BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0"
	MARGINWIDTH="0" MARGINHEIGHT="0" onload="">
<FORM name="docCancle"
	action="/servlet/kr.co.kihyun.beans.totsys.totper.HttpDocCancle"
	method="post"><INPUT type="hidden" name="docID"
	value="<%= docID %>"> <INPUT type="hidden" name="userID"
	value="<%= usID %>"> <INPUT type="hidden" name="url"
	value="<%=url%>"></FORM>

<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<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><span class="kecttep_menu_focous">기본정보</span></li>
	<li><a href="#" onclick="formView();">양식정보</a></li>
	<li><a href="#" onclick="reports();">제출현황</a></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">
	<tr class="toolbar">
		<td align="left"><a
			href="./doc_modify.jsp?docID=<%= docID %>&url=<%=url%>"><img
			src="/totsys/common/images/bt_doc_modify.gif" border="0"></a> <a
			href="#" onclick="javascript:cancle();"><img
			src="/totsys/common/images/bt_tot_cancel.gif" border="0"></a></td>
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<!---- 내용---->
		<td height="31" valign="top">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">

			<tr nowrap height="10">
				<td height="10"></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>

			<!------------------------------- 문서 기본정보 시작 ------------------------------->
			<jsp:include
				page="/totsys/common/inc/documents/tot_doc/totper_base_info.jsp"
				flush="true">
				<jsp:param name="docID" value="<%= docID %>" />
				<jsp:param name="deptID" value="<%= deptID %>" />
			</jsp:include>
			<!------------------------------- 문서 기본정보 끝 ------------------------------->

			<tr>
				<td height="20"></td>
			</tr>
			<!------------------------------- 선택부서/기관 시작 ------------------------------->
			<jsp:include
				page="/totsys/common/inc/documents/tot_doc/totper_selected_info.jsp"
				flush="true">
				<jsp:param name="docID" value="<%= docID %>" />
				<jsp:param name="deptID" value="<%= deptID %>" />
			</jsp:include>
			<!------------------------------- 선택부서/기관 끝 ------------------------------->

			<tr>
				<td height="20"></td>
			</tr>

			<!------------------------------- 입력시 주의사항 목록 시작 ------------------------------->
			<%
							session.setAttribute("writeTargetURI","opener.location='/totsys/totper/mydocbox/prssbox/doc_view.jsp?docID="+docID+"'");
							session.setAttribute("delTargetURI","opener.location='/totsys/totper/mydocbox/prssbox/doc_view.jsp?docID="+docID+"'");
							session.setAttribute("modifyTargetURI","parent.opener.opener.location.replace('/totsys/totper/mydocbox/prssbox/doc_view.jsp?docID="+docID+"')");
							%>
			<jsp:include page="/totsys/common/inc/board/doc/list2.jsp"
				flush="true">
				<jsp:param name="docID" value="<%= docID %>" />
				<jsp:param name="url" value="<%= url %>" />
			</jsp:include>
			<!------------------------------- 입력시 주의사항 목록 끝 ------------------------------->
		</table>
		</td>
	</tr>
</table>
</div>
</div>
<!------------------------------- top menu start ------------------------------->
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%>
<!------------------------------- top menu end ------------------------------->
</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{
}
%>
