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

📄 backemail.jsp

📁 教师办公管理系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.sql.*"%>
<%@ page import="to.model.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="to.model.Login.*"%>
<%@ page import="to.model.Email.*"%>
<%@ page import="to.model.People.*"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>发送新邮件</title>
    <style type="text/css">
    table{font-size:13px}
    </style>
  </head>
  <body>
    <form action="AddEmailAction.do" method="post">
      <table cellspacing="3" cellpadding="2" border="0" width="950" align="center">
        <%
          loginItem li=(loginItem)session.getAttribute("user");
          String name=request.getParameter("name");
          if(li==null)
          {
            response.sendRedirect("OfficeLogin.jsp");
          }
          EmailBean eb=new EmailBean();
          PeopleItem pi=eb.getPeopleID(name);
        %>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr bgcolor="#006699">
          <th colspan="4" align="center"><font color="White">发送信件窗口</font></th>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <%
          java.text.SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
          String date=format.format(new java.util.Date());
        %>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">收件人:</td>
          <td width="795">
          <select name="Embracer">
            <%
                ResultSet rs=null;
                CollegeBean cb=new CollegeBean();
                rs=cb.getPeople(li.getPeopleName());
                while(rs.next())
                {
                  int PeopleID=rs.getInt("PeopleID");
                  String PeopleName=rs.getString("PeopleName");
                  if(PeopleID==pi.getPeopleID())
                  {
                    %>
                    <option value="<%=PeopleID%>" selected="selected"><%=PeopleName%></option>
                    <%
                  }
                  else
                  {
                    %>
                    <option value="<%=PeopleID%>"><%=PeopleName%></option>
                    <%
                  }
                  
                }
              %>
          </select>
          </td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">信件标题:</td>
          <td width="795">
            <input type="text" size="50" name="EmailT"/>
          </td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">信件内容:</td>
          <td width="795">
            <textarea cols="70" rows="15" name="EmailC"></textarea>
          </td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72"><input type="hidden" name="Promulgator" value="<%=li.getPeopleName()%>" /></td>
          <td width="795"><input type="hidden" name="AddD" value="<%=date%>" /></td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">
            <input type="submit" value="确定回复"/>
            <input type="reset" value="重新填写"/>
          </td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
        <tr>
          <td width="9">&nbsp;</td>
          <td width="72">&nbsp;</td>
          <td width="795">&nbsp;</td>
          <td width="9">&nbsp;</td>
        </tr>
      </table>
    </form>
  </body>
</html>

⌨️ 快捷键说明

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