📄 content_update.jsp
字号:
<%@ 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.*" %>
<%@ page import="com.icss.cnpc.msgnote.util.CommonUtil" %>
<html xmlns="http:/www.w3.org/1999/xhtml">
<head>
<title>日记</title>
<script language="JavaScript" src="<%=request.getContextPath()%>/include/common.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
<!--
function checkform(url)
{
if (document.formriji.subject.value == "")
{
alert('请填写主题以便以后阅读!');
document.formriji.subject.focus();
return false;
}
if(getLength(document.formriji.content.value) > 800){
alert("输入内容不能超过400个汉字!");
return false;
}
else{
document.formriji.action=url+"/servlet/UpdateJournalServlet";
document.formriji.submit();
}
//location.href='javascript:history.go(-1)';
}
function rewrite(){
document.formriji.subject.value="";
document.formriji.content.value="";
return false;
}
/-->
</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 content=vo.getRjContent();
%>
<input type=hidden name="id1" value="<%=vo.getRjId()%>">
<input type=hidden name="date1" value="<%=vo.getRjDate()%>">
<input type=hidden name="weather" value="<%=vo.getRjWeather()%>">
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr>
<td bgcolor="#a6d0f2" colspan="2" align="center" height="24">日记</td>
</tr>
<tr bgcolor="#EEF4FF">
<td height="22" colspan="2"> 日期:<%=formatTime%></td>
</tr>
<tr bgcolor="#EEF4FF">
<td> 主题:
<input name="subject" type="text" size="40" value="<%=vo.getRjHeadline()%>"/>
</td>
<td align="left" width="50%"> 天气:<%=vo.getRjWeather()%></td>
</tr>
<tr>
<td width="100%" bgcolor="#EEF4FF" align="left" colspan="2">
<textarea name="content" cols=84 rows=16><%=CommonUtil.unformathtm(content)%></textarea>
</td>
</tr>
<tr height="24">
<td colspan="2" align="left" bgcolor="#EEF4FF"> 日记内容长度限制:中文不能超过400字,英文不超过800个字符
</td>
</tr>
</table>
<br><br>
<center>
<tr>
<td align="center">
<img src="<%=request.getContextPath()%>/images/save.gif" onclick="checkform('<%=request.getContextPath()%>');" style="cursor:hand">
<img src="<%=request.getContextPath()%>/images/clean.gif" onclick="rewrite();" style="cursor:hand">
<img src="<%=request.getContextPath()%>/images/return.gif" onclick="location.href='javascript:history.go(-1)'" style="cursor:hand">
</td>
</tr>
</center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -