<% /** * **********************************************************@@ Program Name * : popup_content_write.jsp Description : /º¸°íÀÚ/³»¹®¼­ÇÔ/Àӽú¸°íÇÔ/Àӽú¸°í Author : * ±âÇöÅ×Å© Create Date : 2010-11-27 History : * @@*********************************************************** */ %> <%@ page contentType="text/html; charset=euc-kr"%> <%@ 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.beans.entity.TotDoc"%> <%@ page import="java.util.Map.Entry"%> <%@ page import="java.util.List"%> <%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> <% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); Transaction tx = pm.currentTransaction(); try { Long docID = MLong.parseLong(request.getParameter("docID")); String boardGroupID = Category.ID_TOT_DOC_COMMENT; String url = clearXSS(request.getParameter("url"), ""); TotDoc totDoc = pm.getObjectById(TotDoc.class, docID); if (url == null) { url = ""; } String boardTitle = ""; String boardContents = ""; String usrFilenames = ""; String svrFilenames = ""; int visit = 0; Board totperComment = totDoc.getBoard(); if (totperComment != null) { // tx.begin(); boardTitle = totperComment.getTitle(); boardContents = TagFilter.convertSpace(totperComment.getContents()); for (Entry> entry : totperComment.getAttachments().entrySet()) { usrFilenames += entry.getKey() + ";"; svrFilenames += entry.getKey() + ";"; } // visit = totperComment.getVisit(); // totperComment.setVisit(visit + 1); // pm.makePersistent(totperComment); // tx.commit(); } String[] usrFilenameList = usrFilenames.split(";"); String[] svrFilenameList = svrFilenames.split(";"); %> <%@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")%>  
<% int i = 0; for (i = 0; i < svrFilenameList.length; i++) { if (svrFilenameList[i] != null && !svrFilenameList[i].equals("")) { %> +<%= Moumi.getMessageBundle().getString("moumi.message.tot_doc.add")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.file")%> <%= (i + 1)%>    &fileName=<%=URLEncoder.encode(svrFilenameList[i], "UTF-8")%>&docID=<%=docID%>" target="hiddenIframe"> <%= usrFilenameList[i]%>
<% } } %>
 
 
<% } catch (Exception ex) { ex.printStackTrace(); out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';")); } %>