📄 default.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ include file="inc/conn.jsp"%>
<%
String lk1,lk2;
String n=null;
String id=request.getParameter("id");
String a=request.getParameter("a");
String b=request.getParameter("b");
n=request.getParameter("n");
String opentree ="bbs/bbsleft.jsp";
String urlfile="bbs/main.jsp";
if(id!=null){
urlfile="bbs/ftbbs.jsp?id="+id;
}
if(n!=null){
if(n.equals("login")){
urlfile="bbs/userlogin.jsp";
}
if(n.equals("help")){
urlfile="bbs/help.jsp";
}
if(n.equals("userinfo")){
urlfile="bbs/moduserinfo.jsp";
}
if(n.equals("friend")){
urlfile="bbs/myfriend.jsp";
}
if(n.equals("sms")){
urlfile="bbs/mysms.jsp";
}
if(n.equals("ext")){
urlfile="bbs/main.jsp?ext=y";
}
if(n.equals("myself")){
urlfile="bbs/main.jsp?searchkind=name&searchcontent=";
}
if(n.equals("favorties")){
urlfile="bbs/myfavorties.jsp";
}
if(n.equals("fbht")){
urlfile="bbs/fbht.jsp?layer_1="+a+"&layer_2="+b;
}
}
else
{
if(a!=null){
urlfile="bbs/main.jsp?layer_1="+a;
}
if(a!=null&&b!=null){
urlfile="bbs/main.jsp?layer_1="+a+"&layer_2="+b;
}
}
String sql="select top 1 * from ftbbsconfig where id=1";
ResultSet rs=stmt.executeQuery(sql);
rs.next();
%>
<HTML>
<HEAD>
<TITLE><%=rs.getString("bbs_name")%></TITLE>
<META content="text/html; charset=gbk" http-equiv=Content-Type>
<script language=javascript src="inc/cookies.js"></script>
<script>
function defaultCssStyle()
{
var sCssType =<%=rs.getString("defaultcss")%>; //默认的样式值
setCookie("STYLESHOW", sCssType);
}
</script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
//stylecook=1;
defaultCssStyle();
stylecook=<%=rs.getString("defaultcss")%>+1;
}
else
{
stylecook++;
}
style="main0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\" rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>
<SCRIPT>
if(self!=top){top.location=self.location;}
function switchSysBar(){
if (switchPoint.innerText==4){
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}else{
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}}
</SCRIPT>
<STYLE type=text/css>.navPoint {
COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}
</STYLE>
<META content="MSHTML 5.00.3700.6699" name=GENERATOR></HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<BODY scroll=no style="MARGIN: 0px">
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var tmpstylecook;
function setcookies()
{
tmpstylecook = stylecook;
}
function reloadcook()
{
var scooks = getCookie("STYLESHOW");
if(scooks != tmpstylecook)
{
window.location.reload();
}
}
setcookies();
setInterval('reloadcook()',1000);
</script>
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
<TBODY>
<TR>
<TD align=middle id=frmTitle noWrap vAlign=center>
<IFRAME frameBorder=0 id=left name=left scrolling=yes src="<%=opentree%>"
style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 140px; Z-INDEX: 2">
</IFRAME></TD>
<TD class=nar>
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%">
<TBODY>
<TR>
<TD onclick=switchSysBar()
style="HEIGHT: 100%"><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><SPAN
class=navPoint id=switchPoint
title=关闭/打开左栏>4</SPAN><BR><BR><BR><BR><BR><BR><BR><BR></TD></TR></TBODY></TABLE></TD>
<TD style="WIDTH: 100%">
<IFRAME frameBorder=0 id=main name=main scrolling=yes src="<%=urlfile%>"
style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1">
</IFRAME></TD></TR></TBODY></TABLE>
<SCRIPT>
if(window.screen.width<'1024'){switchSysBar()}
</SCRIPT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -