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

📄 bottom.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.struts.form.LoginForm"/>
<jsp:directive.page import="com.captainli.dboperation.LoginDA"/>
<jsp:directive.page import="com.captainli.dboperation.MessageDA"/>
<%
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>
    <title>bottom</title>
    <meta http-equiv="refresh" content="23; url=bottom.jsp">
	<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">
	-->
<style type="text/css">
.style1 {
	font-size: 12px;
	color: white;
}
.style2 {
	font-size: 12px;
	color: #FFFFFF;
}
</style>
<script language="javascript" type="text/javascript">
function clockon(bgclock){
	var now=new Date();
	var year=now.getYear();
	var month=now.getMonth();
	var date=now.getDate();
	var day=now.getDay();
	var hour=now.getHours();
	var minu=now.getMinutes();
	var sec=now.getSeconds();
	var week;
	month=month+1;
	if(month<10) month="0"+month;
	if(date<10) date="0"+date;
	if(hour<10) hour="0"+hour;
	if(minu<10) minu="0"+minu;
	if(sec<10) sec="0"+sec;
	var arr_week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	week=arr_week[day];
	var time="";
	time=year+"年"+month+"月"+date+"日 "+week+" "+hour+":"+minu+":"+sec;
	if(document.all){
		bgclock.innerHTML="[ "+time+" ]";
	}
	var timer=setTimeout("clockon(bgclock)",200);
}
function op(){
	window.showModalDialog("message_show.jsp","","dialogWidth=500px;dialogHeight=150px;status=no;help=no");
}
</script>
  </head>
<%
	String l_name = "";
	String s_name = "";
	LoginForm form = (LoginForm)session.getAttribute("users");
	l_name = new LoginDA().readName(form).toString();
	s_name = new LoginDA().readSector(form).toString();
 %> 
<%
	//消息搜索
	int m_reciever = new LoginDA().showL_id(form);
	boolean flag = new MessageDA().showMessage(m_reciever);
 %>
  <body leftmargin="0" rightmargin="0" topmargin="0" onLoad="clockon(bgclock)">
  <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="top"><table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0" bgcolor="#3a6592">
        <tr>
          <TD align="left" valign="middle"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="22%" align="center" valign="middle"><div class="style1" id="bgclock"></div></td>
              <td width="9%"><div align="right"><span class="style2">当前用户:</span></div></td>
              <td width="10%" class="style2"><%= l_name %></td>
              <td width="9%"><div align="right" class="style2">部门:</div></td>
              <td width="33%" class="style2"><%= s_name %></td>
              <td width="17%"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr><%
                	String online = new LoginDA().onLine();
                 %>
                  <td width="56%">&nbsp;</td>
                  <td width="10%"><%if(flag){ %><img src="../images/util/mail.gif" alt="您有新的消息,点击查看!" onclick="op()" style="cursor: hand" width="16" height="16"><%}else{ %><img src="../images/util/nomail.gif" alt="没有消息" style="cursor: hand" width="16" height="16"><%} %></td>
                  <td width="11%"><div align="right"><img src="../images/util/online.gif" alt="当前<%= online %>人在线" style="cursor: hand" width="18" height="16"></div></td>
                  <td width="23%"><img src="../images/util/user.gif" style="cursor: hand" width="16" height="16"></td>
                </tr>
              </table></td>
            </tr>
          </table></TD>
        </tr>
      </table></td>
    </tr>
  </table>
  </body>
</html>

⌨️ 快捷键说明

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