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

📄 communication_fabu.jsp

📁 多功能学生宿舍管理系统 分布式体系结构
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/st_template.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<%
response.setHeader("Cache-Control","no-store"); 
response.setHeader("Pragrma","no-cache"); 
response.setDateHeader("Expires",0); 
//session.invalidate();
%>
<!-- InstanceBeginEditable name="doctitle" -->
<title>高校公寓综合管理平台</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE5 {color: #333333}
.STYLE9 {
	font-size: 14px;
	line-height: 22px;
	color: #8080FF;
	font-weight: bold;
}
.STYLE10 {font-size: 12px; color: #000000; font-family: Arial, Helvetica, sans-serif; }
.STYLE12 {font-size: 24px}
.STYLE13 {color: #BAD1FC}
.STYLE15 {color: #8080FF}
.STYLE18 {font-size: 16px; line-height: 22px;}
.STYLE19 {font-size: 16px}
.STYLE23 {font-size: 24px; color: #8080FF; }
-->
</style>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
	margin-top: 0px;
	margin-bottom: 0px;
}
#Layer3 {	position:absolute;
	left:798px;
	top:109px;
	width:222px;
	height:15px;
	z-index:2;
}
.STYLE2 {
	font-size: 14px;
	color: #000066;
}
-->
</style></head>
<%@ page import="java.util.Date,java.util.*,java.text.*"%>
<%@page import="myweb.DBContent.DBContent" %>
<body>
<%
if(session.getAttribute("user")==null)
{
 out.print("<script>alert('请先登录!');window.open('../index.jsp','_self')</script>");	 
 }
%>
<jsp:useBean id="db" class="myweb.DBContent.DBContent"></jsp:useBean>
<%
	String dd;
	Date nowdate=new Date();
	int hour=nowdate.getHours();
	if(hour>8&&hour<12)
	{
	dd="上午好,欢迎登陆高校公寓综合管理平台!";
	}
	else
	{
	dd="下午好,欢迎登陆高校公寓综合管理平台!";
	}
	%>
	 <%
String ddate=new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime());
%>
<table width="1024" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" align="center" background="../Templates/image/index_01.jpg"><!-- InstanceBeginEditable name="EditRegion6" -->
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="776" height="120">
        <param name="movie" value="image/xuanjuan1.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <embed src="image/xuanjuan1.swf" width="776" height="120" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
      </object>
    <!-- InstanceEndEditable -->
      <div class="STYLE2" id="Layer3">今天是:
        <%out.println(ddate);%>
    </div></td>
  </tr>
  <tr>
    <td colspan="2"><img src="../Templates/image/index_02.jpg" width="227" height="47" /><img src="../Templates/image/lijianxue11_03.jpg" width="797" height="47" /></td>
  </tr>
  <tr>
    <td width="227" align="left" valign="middle"><span class="STYLE2">
      <marquee scrollAmount=2 onmouseover=stop() onmouseout=start() >
      <%=dd%>
      </marquee>
    </span> </td>
    <td width="797"><!-- InstanceBeginEditable name="EditRegion7" -->
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="../Templates/image/index_056.jpg" width="797" height="25" /></td>
        </tr>
      </table>
    <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td width="227" height="49" background="../Templates/image/index_04.gif">&nbsp;</td>
    <td height="35" rowspan="3" align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion5" -->
<%@page import="myweb.DBContent.DBContent,myweb.bean.News" %>
<jsp:useBean id="ne" class="myweb.bean.News"></jsp:useBean>
<jsp:setProperty name="ne" property="*"/>
<%
String add=request.getParameter("ok")!=null?request.getParameter("ok"):"";
if(add.equals("ok")){
String sql="INSERT INTO news VALUES('"+ne.getNewtitle()+"','"+ne.getNewcontent()+"')";
db.insert(sql);
out.println("<script>alert('发布成功!');</script>");
}
//response.sendRedirect("../admin/communication_fabu.jsp");
%>
      <form id="form1" name="form1" method="post" action="communication_fabu.jsp" onsubmit="return check()">
	  <table width="622" height="360" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#C6D6FD">
        <tr>
          <td width="64" height="20" align="center">            <span class="STYLE10"><span class="STYLE9">新闻标题</span></span></td>
          <td width="552" height="20" align="left" valign="bottom"><input name="newtitle" type="text" id="newtitle" size="77" maxlength="77" /></td>
        </tr>
        <tr>
          <td width="64" height="350" align="center" valign="middle"><p><span class="subtitle STYLE12"> 
            <strong><span class="STYLE5"><br />
            <br />
            <span class="STYLE15">新<br />
            </span></span></strong></span><span class="subtitle STYLE12 STYLE15"><span class="STYLE12 STYLE13  STYLE18"><span class="STYLE19"><br />
              <span class="STYLE23">闻<br />
              <br />
              内<br />
              <br />
                容</span></span></span></span><span class="subtitle STYLE12 STYLE15"><span class="STYLE13 STYLE12  STYLE18"><br />
                </span></span></p>
            <p>
              <input name="ok" type="hidden" id="ok" value="ok" />
              <input name="newcontent"  type="hidden" id="newcontent" />
            </p>
            <p>
              
              
              <input name="Submit" type="submit" class="small" value="发布" />
              </p>
            </p></td>
          <td width="552" height="350" align="left" valign="top"><iframe ID="eWebEditor1" src="editor/ewebeditor.htm?id=newcontent&style=popup" frameborder="0" scrolling="no" width="550" HEIGHT="350"></iframe></td>
        </tr>
      </table>
      </form>
  <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
 
    <td width="227" height="240" align="center" background="../Templates/image/index_06.jpg">
	<style> 
<!-- 
a.parentlink { text-decoration: none; color: #000000; font-size: 14px } 
a.parentlink:hover { color: #ffffff; }
a.childlink:hover { color: #ffcc00; } 
a.childlink,td.childlink { text-decoration: none; color: #333333; font-size: 14px } 
.px7 { font-size: 11px; vertical-align: middle; } 
--> 
    </style> 
    <script language=javascript> 

⌨️ 快捷键说明

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