⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content_update.jsp

📁 java jsp教程
💻 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.memo.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"></script>
<SCRIPT language=JavaScript>
<!--
function checkform(url)
{
	if (document.formmemo.subject.value == "")
	{			
		alert('请填写主题以便以后阅读!');
		document.formmemo.subject.focus();
		return false;
	}
	if (document.formmemo.content.value == "")
	{			
		alert('请填写内容以便以后阅读!');
		document.formmemo.content.focus();
		return false;
	}
	if(getLength(document.formmemo.content.value) > 400){
	  alert("输入内容不能超过200个汉字!");
	  document.formmemo.content.focus();
	  return false;
	   }
	else{
	  document.formmemo.action=url+"/servlet/UpdateMemoServlet";
	  document.formmemo.submit();
	}
	 
	//location.href='javascript:history.go(-1)';
}

function rewrite(){
	
	document.formmemo.subject.value="";
	document.formmemo.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="formmemo"  action='' method='POST'>
<%
   OfficeMemoVO vo=(OfficeMemoVO)request.getAttribute("vo");
   Long date1=vo.getMemoTime();
   long date2=date1.longValue();
   Date date=new Date(date2);
   SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd ' 'HH:mm  ");
   String formatTime = formatter.format(date);
   
   String content=vo.getMemoContent();
   String cont=content;
%>
  <input type=hidden name="id1" value="<%=vo.getMemoId()%>">
  <input type=hidden name="date1" value="<%=vo.getMemoTime()%>">  
  <table width="75%" align="center" cellpadding="0" cellspacing="0" bordercolordark="#DFDFFF" bordercolorlight="#003366"  bgcolor="#EEF4FF" border="1">
    <tr>
          <td align="center"  bgcolor="#a6d0f2" height="24" colspan="2">备忘录</td>
    </tr>
	<tr>
          <td width="100%" background="<%=request.getContextPath()%>/images_new/bg-09.jpg" bgcolor="#D8EAF8">
          <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr bgcolor="#EEF4FF">
                <td width="50%" height="22">&nbsp;时间:<%=formatTime%></td>
                <td height="22">&nbsp;</td>
              </tr>
			  <tr >
                <td background="<%=request.getContextPath()%>/images/bg-13.gif" class="text-01" height="1" colspan="2"></td>
              </tr>
			  <tr bgcolor="#EEF4FF">
                <td height="22">&nbsp;主题:<input name="subject" type="text"  size="40" value="<%=vo.getMemoHeadline()%>"/></td>
				<td width="50%"> &nbsp;</td>
              </tr>
			  <tr bgcolor="#EEF4FF">
                      <td background="<%=request.getContextPath()%>/images/bg-13.gif" class="text-01" height="1" colspan="2"></td>
              </tr>
			  
			  <tr valign="top" bgcolor="#EEF4FF">
                <td align="left" colspan="2"><div>
                    <textarea name="content" cols=74 rows=8><%=CommonUtil.unformathtm(cont)%></textarea>
                        <br>
                </div></td>
              </tr>
              <tr>
				<td width="" bgcolor="#EEF4FF" align="left" valign="middle" colspan="2">&nbsp;&nbsp;说明:备忘录内容不能超过200字</td>              
              </tr>
              <tr>
              </tr>
			  
			  
            </table>		  </td>
                  </tr>
</table>
	  
<br>
<br>
<center>
	  <img src="<%=request.getContextPath()%>/images/save.gif" onclick="checkform('<%=request.getContextPath()%>');" style="cursor:hand">&nbsp;&nbsp;&nbsp;&nbsp;
	  <img src="<%=request.getContextPath()%>/images/clean.gif" onclick="rewrite();" style="cursor:hand"> &nbsp;&nbsp;&nbsp;&nbsp;
	  <img  src="<%=request.getContextPath()%>/images/return.gif" onclick="location.href='javascript:history.go(-1)'" style="cursor:hand">
</center>

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

⌨️ 快捷键说明

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