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

📄 showevent.jsp

📁 事件提醒系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*"  pageEncoding="GBK"%>
<%@ page import="com.myoa.cal.model.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showEvent.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript">
		function addevent(){
			window.open('../event/addEvent.jsp', 'newwindow', 'height=500, width=600, top=150, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no');
			//document.location.href="../event/addEvent.jsp";
		}
	</script>

  </head>
  
  <body>

  <input type="button" name="addEvent" value="添加事件" onclick="JavaScript:addevent()">

  <table width=100% border=1>
  <tr>
  	<th>事件ID</th>
  	<th>事件名</th>
  	<th>事件创建事件</th>
  	<th>事件发生事件</th>
  	<th>事件类型</th>
  	<th>操作</th>
  </tr>
  	<%
  	List<CalEvent> list = (List)request.getAttribute("ls");
	for(int i=0;i<list.size();i++){
		CalEvent event = list.get(i);
	%>
	<tr>
	<td><%=event.getEventid() %></td>
	<td><%=event.getEventname() %></td>
	<td><%=event.getCreatetime() %></td>
	<td><%=event.getOccurtime() %></td>
	<td><%=event.getTypename() %></td>
	<td><a href="">编辑</a>  <a href="">删除</a></td>
	</tr>
	<%
	}
   %>
</table>
  </body>
</html>

⌨️ 快捷键说明

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