<% /** * **********************************************************@@ Program Name * : popup_content_write.jsp Description : /보고자/내문서함/임시보고함/임시보고 Author : * 기현테크 Create Date : 2010-11-27 History : * @@*********************************************************** */ %> <%@ page contentType="text/html; charset=UTF-8"%> <%@ page import="java.net.URLEncoder"%> <%@ page import="javax.jdo.PersistenceManager"%> <%@ page import="javax.jdo.Transaction"%> <%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin"%> <%@ page import="kr.co.kihyun.lang.MString"%> <%@ page import="kr.co.kihyun.util.MUtil"%> <%@ page import="kr.co.kihyun.moumi.Moumi"%> <%@ page import="kr.co.kihyun.text.html.TagFilter"%> <%@ page import="kr.co.kihyun.beans.entity.Category"%> <%@ page import="kr.co.kihyun.beans.entity.Board"%> <%@ page import="kr.co.kihyun.beans.entity.util.*"%> <%@ page import="kr.co.kihyun.lang.StringConverter"%> <%@ page import="kr.co.kihyun.beans.entity.TotDoc"%> <%@ page import="kr.co.kihyun.db.CommonDBManager"%> <%@ page import="java.util.ArrayList"%> <%@ page import="kr.co.kihyun.io.FileUtil"%> <%@ page import="kr.co.kihyun.prop.QueryStringList"%> <%@ page import="java.sql.ResultSet"%> <%@ page import="java.util.Map.Entry"%> <%@ page import="java.util.List"%> <%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> <% CommonDBManager db = new CommonDBManager(); ResultSet rs = null; try { boolean isAttach = false; Long boardID = MLong.parseLong(request.getParameter("docID"), null); String boardTitle = null; String boardContents = null; String boardType = ""; String sql = QueryStringList.NoticeWithOutFileSql; rs = db.execQuery(sql, boardID); System.out.println("rs === " + rs); if(rs.next()){ ArrayList fns = FileUtil.getBoardAttachmentsFileNames(boardID, request, false); System.out.println("fns === " + fns); if(fns != null && fns.size()>0) isAttach = true; boardTitle = rs.getString("TITLE"); boardContents = StringConverter.toHtmlBr(rs.getString("CONTENTS")); boardContents = TagFilter.unconvertedMeta(boardContents); boardType = Moumi.getMessageBundle().getString("moumi.message.board.notice"); } %> <%@page import="kr.co.kihyun.lang.MLong"%> 자료입력시 작성요령
테두리   테두리
 
  <%= Moumi.getMessageBundle().getString("moumi.message.tot_report.make")%><%= Moumi.getMessageBundle().getString("moumi.message.tot_doc.trick")%> <%= Moumi.getMessageBundle().getString("moumi.message.tot_doc.and")%> <%= Moumi.getMessageBundle().getString("moumi.message.button_small.totperInfo")%>  
<%=MString.checkNull(boardContents)%>
<%-- <% if (board.getAttachments().size() == 0) {%> --%> <% if (!isAttach) {%>   <%} else {%> <%}%>
+<%= Moumi.getMessageBundle().getString("moumi.message.file")%>

 
 
<% } 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{ if (null != rs) { rs.close(); } db.execClose(); } %>