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

📄 write1_calendar.jsp

📁 java jsp教程
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>





<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>写日记</title>
<SCRIPT language=JavaScript>
<!--

function checkform(url)
{
	if (document.formriji.subject.value == "")
	{			
		alert('请填写主题以便以后阅读!');
		document.formriji.subject.focus();
		return false;
	}
	if (document.formriji.content.value == "")
	{			
		alert('请填写内容以便以后阅读!');
		document.formriji.content.focus();
		return false;
	}
	document.formriji.action=url+"/servlet/AddJournalServlet";
	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()%>/include/style.css" rel="stylesheet" type="text/css">
</head>

<body  background="<%=request.getContextPath()%>/images/bg-08.gif" marginwidth="0" 
marginheight="0">
<br>
<form name="formriji"  action='' method='POST'>
<%
   String formatTime=(String)request.getAttribute("date");
  //Date now=new Date();
 // SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
 // String formatTime = formatter.format(now);
  //int year=now.getYear()+1900;
  //int month=now.getMonth()+1;
  //int day=now.getDate();
   
%>
  <input name=time type=hidden value="<%=formatTime%>">
  <table width="75%" border="0" align="center" cellpadding="2" cellspacing="1">
    <tr>
      <td align="center">
	    <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="3%" background="images/bg-12.gif"><img src="<%=request.getContextPath()%>/images/bg-10.gif" width="28" height="23"></td>
          <td background="<%=request.getContextPath()%>/images/bg-12.gif" class="title-05" >写日记</td>
          <td width="2%"><div align="right"><img src="<%=request.getContextPath()%>/images/bg-11.gif" width="16" height="23"></div></td>
        </tr>
      </table>
	  <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="2" background="<%=request.getContextPath()%>/images/bg-21.gif"><img src="<%=request.getContextPath()%>/images/bg-21.gif" width="2" height="4"></td>
          <td width="100%">
		    <table width="100%"  border="0" align="center" cellpadding="1" cellspacing="0">
              <tr>
                <td background="<%=request.getContextPath()%>/images_new/bg-09.jpg" bgcolor="#D8EAF8" colspan="2">日期:<%=formatTime%></td>
              </tr>
			  <tr>
                      <td background="<%=request.getContextPath()%>/images/bg-13.gif" class="text-01" height="1" colspan="2"></td>
              </tr>
			  <tr>
                <td background="<%=request.getContextPath()%>/images_new/bg-09.jpg" bgcolor="#D8EAF8">主题:<input name="subject" type="text"  size="50" /></td>
				<td width="35%" bgcolor="#D8EAF8"> 天气 
            <select name="weather" >
              <option value="晴" selected>晴</option>
              <option value="阴" >阴</option>
              <option value="多云" >多云</option>
              <option value="晴转多云" >晴转多云</option>
              <option value="小雨" >小雨</option>
              <option value="中雨" >中雨</option>
              <option value="大雨" >大雨</option>
              <option value="阵雨" >阵雨</option>
              <option value="小雪" >小雪</option>
              <option value="中雪" >中雪</option>
              <option value="大雪" >大雪</option>
              <option value="冰雹" >冰雹</option>
              <option value="大风" >大风</option>
            </select>
          </td>
              </tr>
			  <tr>
                      <td background="<%=request.getContextPath()%>/images/bg-13.gif" class="text-01" height="1" colspan="2"></td>
              </tr>
			  
			  <tr>
                <td bgcolor="#D8EAF8" align="left" colspan="2">
	              <textarea name="content" cols=84 rows=20></textarea>
                        <br>
                        
                </td>
              </tr>
			  <tr>
                      <td background="<%=request.getContextPath()%>/images/bg-13.gif" class="text-01" height="1" colspan="2"></td>
              </tr>
			  
            </table>
		  </td>
          <td width="2" background="<%=request.getContextPath()%>/images/bg-22.gif"><img src="<%=request.getContextPath()%>/images/bg-22.gif" width="2" height="4"></td>
        </tr>
</table>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td width="1%"><img src="<%=request.getContextPath()%>/images/bg-21.jpg" width="10" height="21"></td>
						  <td width="97%" background="<%=request.getContextPath()%>/images/bg-23.jpg" class="text-01" align="center">
   						       
                             </td>
						  
						  <td width="2%" background="<%=request.getContextPath()%>/images/bg-23.jpg"><div align="right"><img src="<%=request.getContextPath()%>/images/bg-22.jpg" width="11" height="21"></div></td>
						</tr>
			    </table>
	  
	  </td>
    </tr>
	<tr>
    <td align="center">
	  <img src="<%=request.getContextPath()%>/images/baocun.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/botton-return.gif" onclick="location.href='javascript:history.go(-1)'" style="cursor:hand"> 
	</td>
    
  </tr>
    
  
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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