You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
9.0 KiB
190 lines
9.0 KiB
|
|
<% /** |
|
* **********************************************************@@ 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<String, List<Byte>> 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"%><html> |
|
<head> |
|
<title>자료입력시 작성요령</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> |
|
<script src="/totsys/common/js/jquery-1.6.2.min.js"></script> |
|
<script type="text/javascript"> |
|
$(document).ready(function() { |
|
// 팝업 창 사이즈 조절(2014.09.04 by youngjun cho) |
|
resizeTo(637, 393); |
|
}); |
|
</script> |
|
</head> |
|
|
|
<body style='' bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
|
<table width="600" border="0" cellspacing="0" cellpadding="0" height="350"> |
|
<tr> |
|
<td width="29"> |
|
<img src="images/popupt_top_left.gif" width="29" height="19"> |
|
</td> |
|
<td background="images/popupt_top_center.gif" height="19"> </td> |
|
<td width="30"> |
|
<img src="images/popupt_top_right.gif" width="30" height="19"> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td background="images/popupt_center_left.gif"> </td> |
|
<td valign="top"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
|
<!--타이틀--> |
|
<tr> |
|
<td style="padding-top: 10px; padding-bottom: 10px"> |
|
<table width="100%" height="29" border="0" cellpadding="0" |
|
cellspacing="0"> |
|
<tr> |
|
<td width="39" background="images/title1.gif"> </td> |
|
<td class="kecttep_title" background="images/titlebg.gif"><%= 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")%></td> |
|
<td width="13" background="images/title2.gif"> </td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
<!--타이틀 끝--> |
|
|
|
|
|
<tr> |
|
<td height="66" valign="top" style="padding-left: 10; padding-right: 10;"> |
|
<table width="100%" height="210px" border="0" cellspacing="0" cellpadding="0"> |
|
<!---- 작성자 정보 시작 ----> |
|
|
|
<tr> |
|
<td style="padding-left: 0px"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
<tr> |
|
<td colspan="3"> |
|
<textarea class="body" readonly style="padding-left: 0px; border: 1px solid #ccc; width: 520px; height: 100px; height: 15em; white-space: normal; overflow-y: auto;"><%=MString.checkNull(boardContents)%> |
|
</textarea> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td height="20" style="padding-left: 20"></td> |
|
</tr> |
|
|
|
<tr> |
|
<td class="body" height="17" |
|
style="padding-left: 20; padding-top: 4"> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
<% int i = 0; |
|
|
|
for (i = 0; i < svrFilenameList.length; i++) { |
|
if (svrFilenameList[i] != null && !svrFilenameList[i].equals("")) { |
|
%> |
|
<font color="#FF6600"> |
|
<b>+</b><%= Moumi.getMessageBundle().getString("moumi.message.tot_doc.add")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.file")%> |
|
<%= (i + 1)%> |
|
</font> |
|
<a href="/servlet/kr.co.kihyun.text.html.HttpViewer?saveAs=<%=URLEncoder.encode(usrFilenameList[i], "UTF-8")%>&fileName=<%=URLEncoder.encode(svrFilenameList[i], "UTF-8")%>&docID=<%=docID%>" target="hiddenIframe"> |
|
<%= usrFilenameList[i]%> |
|
</a><br /> |
|
|
|
<% } |
|
} |
|
%> |
|
<!---- 내용 끝 ----> |
|
<br> |
|
<!---- 확인,취소버튼 테이블 시작 ----> |
|
<table border="0" cellspacing="0" cellpadding="0" align="center"> |
|
<tr> |
|
<td> |
|
<a href="javascript:self.close();"> |
|
<img name="bt_enter" border="0" src="/totsys/common/images/bt_ok.gif"> |
|
</a> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
<td background="images/popupt_center_right.gif"> </td> |
|
</tr> |
|
<tr> |
|
<td><img src="images/popupt_bottom_left.gif" width="29" height="24"></td> |
|
<td background="images/popupt_bottom_center.gif" height="24"> </td> |
|
<td><img src="images/popupt_bottom_right.gif" width="30" height="24"></td> |
|
</tr> |
|
</table> |
|
<iframe name="hiddenIframe" width="0" height="0" style="display: none;"></iframe> |
|
</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';")); |
|
} |
|
%> |