<%@ page contentType="text/html; charset=utf-8" %> <%@include file="/taglib.jsp"%> <%@ page import="com.kenfor.bbs.Config,java.util.HashMap,java.util.Date" %> <% String template = null; String cLogo = null; String cHeaderPicture = null; String cShowStyle=null; Config cfg = (Config)request.getSession().getAttribute("BBSConfig"); cLogo = cfg.getCLogo(); cHeaderPicture =cfg.getCHeaderPicture(); template =cfg.getCStyle(); int trade_id = cfg.getCTradeID(); cShowStyle =cfg.getCshowStyle(); String logo_url = cfg.getLogo_url(); String header_picture_url = cfg.getHeader_picture_url(); String cFrontPageLink=cfg.getCfrontPageLink(); Short is_use_pass=cfg.getIs_use_pass(); String login_url=cfg.getLogin_url(); String logout_url=cfg.getLogout_url(); String register_url=cfg.getRegister_url(); String lost_pwd_url=cfg.getLost_pwd_url(); String h_ad_url = cfg.getCad(); String h_ad_height = cfg.getCad_height(); String logo_height = cfg.getLogo_height(); String logo_width = cfg.getLogo_width(); String hpic_height = cfg.getHpic_height(); String hpic_width = cfg.getHpic_width(); if(logo_height==null || !logo_height.trim().matches("\\d+")) logo_height = "70"; if(logo_width==null || !logo_width.trim().matches("\\d+")) logo_width = "145"; if(hpic_height==null || !hpic_height.trim().matches("\\d+")) hpic_height = "70"; if(hpic_width==null || !hpic_width.trim().matches("\\d+")) hpic_width = "470"; System.out.println("===is_use_pass=====" + is_use_pass); if(is_use_pass==null) is_use_pass = 0; %> <%System.out.println("error1");%> 论坛首页 -- <%=cfg.getCTitle()%> <%System.out.println("error2");%> <%System.out.println("error3"); System.out.println(new Date());%>
<%if(trade_id == 70){%> '); <%}else if(trade_id == 108){%> '); <%}else if(trade_id == 62){%> '); <%}else if(trade_id==163){ %> <% }else{%> <%}%>
<%if(cLogo!=null && !"".equals(cLogo)){%> id="logohref" target="_blank"> <%}%>
<%if(cHeaderPicture!=null && !"".equals(cHeaderPicture)){%> target="_blank"><%}%>
<% if(cFrontPageLink!=null&&cFrontPageLink.length()!=0){%> 企业首页 <%} %> 查看新贴 | 帮助中心 <%if(trade_id==25){%> | 会员列表 <%}else{%> | 会员列表 <%}%> | <%if (is_use_pass==0){ %> 注册 <%} else{%> 注册 <% } %> | 论坛 | 在线搜索 | <%if(trade_id!=43){%>系统设定<%}else{%>系统设定<%}%> <%if(trade_id==36){%>| 威王QQ群22580602<%}%>
<%if (is_use_pass==0){ %> 用户名:   密码:    | <%} else{%> 登录 <%}if (is_use_pass==0){ %> 忘记密码 <%}else{ %> 忘记密码 <%} %>   已登录     <%if(is_use_pass==0){ %> 退出论坛 <%}else{ %> 退出论坛 <%} %>
deleted=0 and trade_id=<%=trade_id%> order by regtime desc
<%if(trade_id!=25){%>会员总数:deleted=0 and trade_id=<%=trade_id%> 人<%}%> 最新会员:[ ] 帖子总数:isthread!=1 and trade_id=<%=trade_id%>
今日发帖:cr_date>=convert(char(10),getdate(),120) and cr_date< convert(char(10),dateadd(dd,1,getdate()),120) and trade_id=<%=trade_id%> 昨日发帖:cr_date>=convert(char(10),getdate()-1,120) and cr_date< convert(char(10),dateadd(dd,1,getdate()-1),120) and trade_id=<%=trade_id%> 主题总数:isthread=1 and trade_id=<%=trade_id%>
     
trade_id = <%=trade_id%> and deleted<>1 and isShow=1 <% int folder_id = 0; long fid = 0; %> <% HashMap hashMap = (HashMap)pageContext.getAttribute("folder"); int id = (Integer)hashMap.get("folder_id"); long id2 = (Long)hashMap.get("fid"); if(folder_id != id){ folder_id = id; %> <% } if(fid != id2){ fid = id2; %> <%-- <%if (hm!=null) { hm.clear(); hm = null;} %> --%> <%} %>
  
<%--<% HashMap hm = (HashMap)pageContext.getAttribute("folder"); String moder = ""; if(hm!=null){ moder = (String)hm.get("moderator"); if(moder!=null && moder.length()>0){ moder ="'" + moder.replaceAll(",","','")+"'"; } }%> --%>
<%-- add by ukai 2007-07-25 --%> pfid=
        
主题:
回复者:发贴:
日期:
<%}%>
版主: <%-- <%if (moder!=null && moder.length()>0) { %> trade_id = <%=trade_id%> and bas_no in (<%=moder %>) test4444444 <%} %> --%> 文章:    主题:   <%-- 今天主题: deleted=0 and fid ='' and cr_date>=convert(char(10),getdate(),120) and cr_date< convert(char(10),dateadd(dd,1,getdate()),120) 添加查看今日新发帖 add by ukai 2007-07-25 今日回复: cr_date>=convert(char(10),getdate(),120) and cr_date< convert(char(10),dateadd(dd,1,getdate()),120) and fid= --%>
  => 论坛在线情况
当前在线:online_status=1 and trade_id=<%=trade_id%>
您的IP是:
在线会员:online_status=1 and is_guest=0 and trade_id=<%=trade_id%> 操作系统:
在线访客:online_status=1 and is_guest=1 and trade_id=<%=trade_id%> 浏 览 器:
论坛最新状态
deleted=0 and trade_id=<%=trade_id%> order by regtime desc
<%if(trade_id!=25){%>会员总数:deleted=0 and trade_id=<%=trade_id%> 人<%}%> 最新会员:[ ]
今日发帖:cr_date>=convert(char(10),getdate(),120) and cr_date< convert(char(10),dateadd(dd,1,getdate()),120) and trade_id=<%=trade_id%> 主题总数:isthread=1 and trade_id=<%=trade_id%>
昨日发帖:cr_date>=convert(char(10),getdate()-1,120) and cr_date< convert(char(10),dateadd(dd,1,getdate()-1),120) and trade_id=<%=trade_id%> 帖子总数:isthread!=1 and trade_id=<%=trade_id%>