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

📄 displaymessage.jsp

📁 教师办公管理系统
💻 JSP
字号:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.sql.*"%>
<%@ page import="to.model.*"%>
<%@ page import="java.util.*"%>
<%@ page import="to.model.Login.*"%>
<%@ page import="to.model.Message.*"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>通讯信息浏览</title>
    <style type="text/css">
      table{font-size:13px}
      <!--
        a:link { text-decoration: none;color: black} 
        a:active { text-decoration:blink;} 
        
        a:hover {text-decoration: underline;position: relative; top: 3px; left: 3px; color: red}  
        a:visited { text-decoration:none;color: black}   
        -->
    </style>
  </head>
  <body>
    <form action="FindMessageAction.do" method="get">
      <table cellspacing="1" cellpadding="1" border="0" width="800" align="center">
      <%
        loginItem li=(loginItem)session.getAttribute("user");
        if(li==null)
        {
          response.sendRedirect("OfficeLogin.jsp");
        }
      %>
       
        <tr>
          <td colspan="6" height="1"><hr/></td>
        </tr>
        <tr>
          <th colspan="5" align="center">已有通讯信息列表</th>
          <td colspan="1" align="center" width="113"><font color="Red"><img src="image/arr.gif"/><a href="newMessage.jsp"/>添加新通讯</font></td>
        </tr>
        <tr bgcolor="#006699">
          <th width="133" align="center"><font color="White">姓名</font></th>
          <th width="133" align="center"><font color="White">联系电话</font></th>
          <th width="133" align="center"><font color="White">移动电话</font></th>
          <th width="133" align="center"><font color="White">E-Mail</font></th>
          <th width="133" align="center"><font color="White">地址</font></th>
          <th width="133" align="center"><font color="White">操作</font></th>
        </tr>
        <%
            try
            {
                  MessageBean mb=new MessageBean();
                  Collection cl=(Collection)mb.getMessage(li.getPeopleID());
                  Iterator it=cl.iterator();
                  while(it.hasNext())
                  {
                    MessageItem mi=(MessageItem)it.next();
                    %>
                      <tr bgcolor="#ddddee">
                        <td width="133" align="center"><%=mi.getMessageName()%></td>
                        <td width="133" align="center"><%=mi.getMessageD()%></td>
                        <td width="133" align="center"><%=mi.getMessageS()%></td>
                        <td width="133" align="center"><%=mi.getMessageMail()%></td>
                        <td width="133" align="center"><%=mi.getMessageAddr()%></td>
                        <td width="133" align="center"><font color="Blue"><img src="image/arr.gif"/><a href="updateMessage.jsp?id=<%=mi.getMessageID()%>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image/arr.gif"/><a href="DeleteMessageAction.do?id=<%=mi.getMessageID()%>">删除</a></font></td>
                      </tr>
                    <%
                  }
            }
            catch(Exception e)
            {
              e.printStackTrace();
            }
        %>
        <tr>
          <td colspan="6" height="1" >输入姓名:<input type="text" name="MessageName"/><input type="submit" value="搜索"/></td>
        </tr>
        <tr>
          <td colspan="6" height="1"><hr/></td>
        </tr>
      </table>
    </form>
  </body>
</html>

⌨️ 快捷键说明

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