content_riji.jsp

来自「java jsp教程」· JSP 代码 · 共 73 行

JSP
73
字号
<%@ page contentType="text/html; charset=GBK"%>
<%
String jspURL = request.getRequestURI();
if(jspURL.indexOf("jsp")!=-1)
  jspURL = jspURL.substring(jspURL.indexOf("jsp")-1);
if(jspURL.indexOf("?")!=-1)
  jspURL = jspURL.substring(0,jspURL.indexOf("?")-1);
%>
<!-- 个人日记查看页面 <%=jspURL%> edited by Ray 2005-11-17 -->
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.icss.cnpc.netoffice.journal.vo.*" %>
<html xmlns="http:/www.w3.org/1999/xhtml">
<head>
<title>日记</title>
<SCRIPT language=JavaScript>
<!--

/-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css">
</head>

<body  background="<%=request.getContextPath()%>/images/grid.gif" marginwidth="0" 
marginheight="0">
<br />
<form name="formriji"  action='' method='POST'>
<%
   OfficeJournalVO vo=(OfficeJournalVO)request.getAttribute("vo");
   Long date1=vo.getRjDate();
   long date2=date1.longValue();
   Date date=new Date(date2);
   SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
   String formatTime = formatter.format(date);
   String cont=vo.getRjContent(); 
%>
  <table width="75%" border="0" align="center" cellpadding="0" cellspacing="1"  bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
        <tr>
          <td height="24" colspan="5" align="center"  bgcolor="#a6d0f2">日记</td>
        </tr>
        <tr bgcolor="#EEF4FF">
          <td width="50%" height="22" colspan="2">&nbsp;日期:<%=formatTime%></td>
        </tr>
		<tr bgcolor="#EEF4FF">
          <td height="22">&nbsp;主题:<%=vo.getRjHeadline()%></td>
		  <td width="50%"> 天气:<%=vo.getRjWeather()%></td>
        </tr>
		<tr valign="top" bgcolor="#EEF4FF">
          <td height=150 colspan="2" align=left><div align="center">
           <table width="100%"  border="0" cellspacing="0" cellpadding="8">
             <tr>
               <td class="unnamed1"><%=cont%></td>
             </tr>
           </table>
                </div>
		  </td>
        </tr>
	</table>		  
	
	<br>
	<br>

	<center>
	<td align="center">
	  <img  src="<%=request.getContextPath()%>/images/return.gif" onclick="location.href='javascript:history.go(-1)'" style="cursor:hand">
	</td>
	</center>

</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?