apzl_leasing/WebContent/AppMain/Welcome/ShowBankNotice.jsp
2018-06-03 22:26:41 +08:00

48 lines
1.9 KiB
Plaintext

<%@page import="java.util.Date"%>
<%@page import="jbo.sys.BOARD_LIST"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%><%
String boardNo = CurPage.getParameter("BoardNo");
BizObjectManager boardManager = JBOFactory.getBizObjectManager(BOARD_LIST.CLASS_NAME);
BizObject board = boardManager.createQuery("boardno=:boardno ").setParameter("boardno",boardNo).getSingleResult(false);
String boardText = board.getAttribute("boardtext").getString();
String boardTitle = board.getAttribute("boardtitle").getString();
String publishTime = "";
String publishUserId = "";
String updateTime = board.getAttribute("updatetime").getString();
String updateUserId = board.getAttribute("updateuserid").getString();
if(updateTime==null || updateTime.equals("")){
publishTime=board.getAttribute("inputtime").getString();
}else{
publishTime=updateTime;
}
if(updateUserId==null || updateUserId.equals("")){
publishUserId=board.getAttribute("inputuserid").getString();
}else{
publishUserId=updateUserId;
}
String publishUser= NameManager.getUserName(publishUserId);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date publishDate = sdf.parse(publishTime);
SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
publishTime = format.format(publishDate);
%>
<body >
<div style='width:719px;'>
<h2 style="text-align:center"><%=boardTitle%></h2>
<p style="color:#CCC;font-size:8px;text-align:center">创建人:<%=publishUser%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建时间:<%=publishTime%></p>
<br/>
<br/>
<div class='nicEdit-main'></div>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
$('.nicEdit-main').css('overflow','scroll');
$('.nicEdit-main').css('height','90%');
$('.nicEdit-main').html('<%=boardText%>');
});
</script>
<%@ include file="/IncludeEnd.jsp"%>