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

📄 in.jsp

📁 BBS-CS 天乙社区 是采用JSP+JavaBean+Servlet、Struts的MVC框架开发的一套网络虚拟社区系统。文件解压缩后有详细文件说明。
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page import="com.laoer.bbscs.sysinfo.*"%>
<%@ page import="com.laoer.bbscs.bbs.business.*"%>
<%@ page import="com.laoer.bbscs.servlet.*"%>
<%@ page import="com.laoer.bbscs.util.*"%>
<%@ page import="java.util.*"%>
<%
String sid = (String)request.getAttribute("sid");
UserSessionCheck myUserSessionCheck = (UserSessionCheck)request.getAttribute("myUserSessionCheck");
String[] weburl = (String[])request.getAttribute("weburl");
String[] olevel = (String[])request.getAttribute("olevel");
String[] myguestbook = (String[])request.getAttribute("myguestbook");
String[] myfriend = (String[])request.getAttribute("myfriend");
String[] useronlinenum = (String[])request.getAttribute("useronlinenum");
String inheadadv = (String)request.getAttribute("inheadadv");
String bullstr = (String)request.getAttribute("bullstr");
String commend = (String)request.getAttribute("commend");
String starpic = (String)request.getAttribute("starpic");
String staruser = (String)request.getAttribute("staruser");
String userexp = (String)request.getAttribute("userexp");
String boardslist = (String)request.getAttribute("boardslist");
String newpost = (String)request.getAttribute("newpost");
long mystyle = myUserSessionCheck.getUser().getUserInfo().getStyle();
CSSInfo aCSSInfo = null;
aCSSInfo = (CSSInfo)Sys.CSSHT.get(String.valueOf(mystyle));
if (aCSSInfo == null) {
 mystyle = 0;
}
%>
<html:html locale="true">
<head>
<title><%=Sys.WEBSITE[0]%></title>
<link rel=stylesheet type="text/css" href="css/<%=myUserSessionCheck.getUser().getUserInfo().getStyle()%>/css2.css">
<%//=Sys.getCSS(myUserSessionCheck.getUser().getUserInfo().getStyle(),2)%>
<script>
<!--
function xishu() {
var mess1="";
document.write("")
day = new Date( )
hr = day.getHours( )
if (( hr >= 0 ) && (hr <= 4 ))
mess1="深夜了,注意身体,该休息了!"
if (( hr >= 4 ) && (hr < 7))
mess1="清晨好,这麽早就上网呀?!"
if (( hr >= 7 ) && (hr < 9))
mess1="早上好,一天之际在于晨,又是美好的一天!"
if (( hr >= 9 ) && (hr < 12))
mess1="当心,老板来了!"
if (( hr >= 12) && (hr < 13))
mess1="该吃午饭啦!有什麽好吃的?"
if (( hr >= 13) && (hr < 15))
mess1="上上社区,别打瞌睡哦:)"
if (( hr >= 15) && (hr < 17))
mess1="再坚持一下,就快要下班了!"
if (( hr >= 17) && (hr < 18))
mess1="太阳落山了!快看看夕阳吧!"
if ((hr >= 18) && (hr < 19))
mess1="吃过晚饭了吗?"
if ((hr >= 19) && (hr <= 23))
mess1="一天过的可真快!今天过的好吗?"
document.write(mess1)
document.write("")
}
-->
</script>
<script language=javascript>
<!--
//******************************默认设置定义******************************
tPopWait=50;		//停留tWait豪秒后显示提示
tPopShow=6000;		//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=90;		//提示框的透明度,百分比
fontcolor="#000000";
bgcolor="<%=aCSSInfo.getTabletintcolor()%>";
bordercolor="<%=aCSSInfo.getTablemaincolor()%>";
//bgcolor="#EDEDED";
//bordercolor="#007db5";

//******************************内部变量定义******************************
sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: " + bgcolor + ";color:" + fontcolor + "; border: 1px " + bordercolor + " solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");

function showPopupText()
{
  var o=event.srcElement;MouseX=event.x;MouseY=event.y;
  if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
    if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
  if(o.dypop!=sPop)
  {
    sPop=o.dypop;clearTimeout(curShow);clearTimeout(tFadeOut);clearTimeout(tFadeIn);clearTimeout(tFadeWaiting);
    if(sPop==null || sPop=="")
    {
      dypopLayer.innerHTML="";dypopLayer.style.filter="Alpha()";dypopLayer.filters.Alpha.opacity=0;
    }
    else
    {
      if(o.dyclass!=null) popStyle=o.dyclass
      else popStyle="cPopText";
        curShow=setTimeout("showIt()",tPopWait);
    }
  }
}

function showIt()
{
  dypopLayer.className=popStyle;dypopLayer.innerHTML=sPop;
  popWidth=dypopLayer.clientWidth;popHeight=dypopLayer.clientHeight;
  if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
  else popLeftAdjust=0;
  if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
  else popTopAdjust=0;
  dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  dypopLayer.style.filter="Alpha(Opacity=0)";fadeOut();
}

function fadeOut()
{
  if(dypopLayer.filters.Alpha.opacity<popOpacity)
  { dypopLayer.filters.Alpha.opacity+=showPopStep;tFadeOut=setTimeout("fadeOut()",1); }
  else
  { dypopLayer.filters.Alpha.opacity=popOpacity;tFadeWaiting=setTimeout("fadeIn()",tPopShow); }
}

function fadeIn()
{
  if(dypopLayer.filters.Alpha.opacity>0)
  { dypopLayer.filters.Alpha.opacity-=1;tFadeIn=setTimeout("fadeIn()",1); }
}
document.onmouseover=showPopupText;
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="93%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td height="20">
      <div align="center"><span class='bt'>
      <%=inheadadv%>
      </span>
      </div>
    </td>
  </tr>
  <tr>
    <td>
      <div align="center"><%=Adv.getAdv()%></div>
    </td>
  </tr>
  <tr>
    <td class='T1' height="2"></td>
  </tr>
  <tr>
    <td class='T2'>
      <div align="center"><bean:message key="in.welcome" arg0="<%=weburl[0]%>"/></div>
    </td>
  </tr>
  <tr>
    <td class='T1' height="2"></td>
  </tr>
</table>

<table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="23%" valign="top" class='T2'>
      <div align="center">
<%
if (myUserSessionCheck.getUser().getUserInfo().getHavePic() == 1) {
out.println("<a href='"+Util.getUserImgSrcPath(myUserSessionCheck.getUserName(),myUserSessionCheck.getUserID(),myUserSessionCheck.getUser().getUserInfo().getPicFileName())+"' target='_blank'><img src='"+Util.getUserImgSrcPath(myUserSessionCheck.getUserName(),myUserSessionCheck.getUserID(),myUserSessionCheck.getUser().getUserInfo().getPicFileName())+"' width=200 height=150 border=0></a>");
}
else {
  out.print("<img src='images/photo.gif'>");
}
%>
</div>
    </td>
    <td width="40%" valign="top" class='T2'>
      <table width="100%" border="0" cellpadding="2" cellspacing="2">
        <tr>
          <td><b><span class='bt'><%=myUserSessionCheck.getUserName()%>(<%=myUserSessionCheck.getNickName()%>)</span></b></td>
        </tr>
        <tr>
          <td><bean:message key="in.lastlongintime"/><font color="#ff0000"><%out.print(myUserSessionCheck.getLogintime());%></font></td>
        </tr>
        <tr>
          <td><bean:message key="in.listlevel"/> <font color="#FF0000"><%=myUserSessionCheck.getUser().getUserInfo().getExp()%></font> (<%=olevel[0]%>)
          </td>
        </tr>
        <tr>
          <td><bean:message key="in.power"/><font color="#FF0000"><%=myUserSessionCheck.getUser().getUserInfo().getPower()%>/<%=olevel[1]%></font>
          </td>
        </tr>
        <tr>
          <td><bean:message key="in.myguestbook" arg0="<%=myguestbook[0]%>" arg1="<%=myguestbook[1]%>" arg2="<%=myguestbook[2]%>" arg3="<%=myguestbook[3]%>" /></td>
        </tr>
        <tr>
          <td><bean:message key="in.myfriend" arg0="<%=myfriend[0]%>" arg1="<%=myfriend[1]%>" arg2="<%=myfriend[2]%>" arg3="<%=myfriend[3]%>" /></td>
        </tr>
        <tr>
          <td><bean:message key="in.useronlinenum" arg0="<%=useronlinenum[0]%>" arg1="<%=useronlinenum[1]%>" arg2="<%=useronlinenum[2]%>" arg3="<%=useronlinenum[3]%>" /></td>
        </tr>
      </table>
    </td>
    <td rowspan="2" valign="top" width="30%" class='T2'>
      <table width="100%" border="0" cellpadding="1" cellspacing="1">
      <tr><td><bean:message key="showdoc.commgg"/> <%if (myUserSessionCheck.isSuperAdmin()) {%><a href='bullAction.do?sid=<%=sid%>&action=bulllist&isbull=0'>-></a><%}%></td></tr>
      <%=bullstr%>
      </table>
    </td>
  </tr>
  <tr>
    <td width="23%" valign="top" class='T2'>
      <div align="center"><a href="<%=Sys.getURL()%>cpasswdAction.do?sid=<%=sid%>&action=show"><img src="images/passwd.gif" width="34" height="22" border="0" title="<bean:message key="in.changepasswdtitle"/>"></a>
        <a href="<%=Sys.getURL()%>userDetailAction.do?sid=<%=sid%>&action=show"><img src="images/pinfo.gif" width="34" height="22" border="0" title="<bean:message key="bbscs.myinfo"/>"></a> <a href="<%=Sys.getURL()%>friendAction.do?sid=<%=sid%>&action=show"><img src="images/friends.gif" width="34" height="22" border="0" title="<bean:message key="bbscs.setfriend"/>"></a>
        <a href="<%=Sys.getURL()%>signAction.do?sid=<%=sid%>&action=show"><img src="images/sig.gif" width="34" height="22" border="0" title="<bean:message key="bbscs.setsign"/>"></a> <a href="<%=Sys.getURL()%>noteAction.do?sid=<%=sid%>&action=show"><img src="images/pnote.gif" width="34" height="22" border="0" title="<bean:message key="bbscs.guestbook"/>"></a></div>
    </td>
    <td width="40%" valign="middle" class='T2'><font color="#FF0000"><bean:message key="in.sec"/></font>
<marquee width='250'>
<script language="JavaScript">
xishu()
</script>
</marquee>
    </td>
  </tr>
</table>

<table width="93%" border="0" cellpadding="1" cellspacing="1" align="center">
  <tr>
    <td width="63%" height="3"></td>
    <td width="30%" height="3"></td>
  </tr>
  <tr class='T1'>
    <td width="63%" height="20"><b><font color="#FFFFFF"><span class="bt"><bean:message key="commend.topic"/></span></font></b> <%if (myUserSessionCheck.isSuperAdmin()) {%><a href='bullAction.do?sid=<%=sid%>&action=bulllist&isbull=1'><font color="#ffffff">-></font></a><%}%></td>
    <td width="30%" height="20"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.hotboards"/></span></font></b></td>
  </tr>
  <tr class='T2'>
    <td width="63%" valign="top">
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
    <%=commend%>
     </table>
    </td>
    <td width="30%" valign="top" class='T2'>
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
    <%=boardslist%>
    </table>
    </td>
  </tr>
</table>

<table width="93%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td width="30%" height="3"></td>
    <td width="33%" height="3"></td>
    <td width="30%" height="3"></td>
  </tr>
  <tr>
    <td width="30%" class='T1' height="22"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.userlist"/></span></font></b></td>
    <td width="33%" class='T1' height="22"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.newart"/></span></font></b></td>
    <td width="30%" class='T1' height="22"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.viewinfo"/></span></font></b></td>
  </tr>
  <tr >
    <td width="30%" class='T2' valign="top">
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
    <%=userexp%>
    </table>
    </td>
    <td width="33%" class='T2' valign="top">
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
    <%=newpost%>
    </table>
    </td>
    <td width="30%" valign="top" class='T2'>
    <table width="100%" border="0" cellpadding="1" cellspacing="1">
    <tr>
    <td>
    <bean:message key="in.yourip"/><%=request.getRemoteAddr()%><br>
    <bean:message key="in.yourbrowser"/><%=request.getHeader("User-Agent")%>
    </td>
    </tr>
    </table>
    </td>
  </tr>
</table>

<table width="93%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr class='T1'>
    <td height="21" width="30%"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.star"/></span></font></b></td>
    <td height="21" width="33%">&nbsp;</td>
    <td height="21" width="30%"><b><font color="#FFFFFF"><span class="bt"><bean:message key="in.conn"/></span></font></b></td>
  </tr>
  <tr>
    <td width="30%"  valign="top" class='T2'>
<%=starpic%>
    </td>
    <td width="33%" valign="top" class='T2'>
<%=staruser%>
    </td>
    <td width="30%"  valign="top" class='T2'>
<jsp:include page='links.html' flush="true"></jsp:include>
    </td>
  </tr>
</table>
<hr width="93%">
<div align=center><br>
<font color="#D40000"><font  face=Tahoma size=1>&copy;</font><b> <%=Sys.WEBSITE[0]%><br><font  face=Tahoma size=1><%=Sys.WEBSITE[1]%></font></b></font>
<br>
<b><font  face=Tahoma size=1 color=#A0A0A4>Powered By <a href='http://www.laoer.com' target='_blank'><font  face=Tahoma size=1 color=#808080>BBS-CS[<bean:message key="bbscs"/>]</font></a> V<%=Sys.SYSINFO.VERSION%> &copy; 2003<br>
BBS-CS Author: <a href='mailto:laoer@vip.163.com' title='QQ:20896'><font  face='Tahoma' size=1 color=#808080>laoer</font></a></font></b>
</div>
<%
sid = null;
myUserSessionCheck = null;
weburl = null;
olevel = null;
myguestbook = null;
myfriend = null;
useronlinenum = null;
inheadadv = null;
bullstr = null;
commend = null;
starpic = null;
staruser = null;
userexp = null;
boardslist = null;
newpost = null;
%>
</body>
</html:html>

⌨️ 快捷键说明

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