<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="com.Admin.daoimpl.SubTypeDaoImpl" %> <%@ page import="com.Admin.daoimpl.SuperTypeDaoImpl" %> <%@ page import="com.Admin.daoimpl.AdminUserDaoImpl" %> <%@ page import="com.Admin.daoimpl.AdminProdDaoImpl" %> <%@ page import="com.Admin.vo.SubType"%> <%@ page import="com.Admin.vo.SuperType"%> <%@ page import="com.Admin.vo.User"%> <%@ page import="com.Admin.vo.Recommend"%> <%@ page import="java.util.ArrayList"%> <%@ page import="net.sf.json.JSONArray"%> <%@ page import="net.sf.json.JSONObject"%> <%@ page import="com.common.IConstant"%> <%@ page import="com.common.Redis"%> <%@ page import="com.common.ReadDBPropertiesFile"%> <%@ page import="redis.clients.jedis.Jedis"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="cf" uri="/WEB-INF/els.tld" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String realPath = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()+request.getServletPath().substring(0,request.getServletPath().lastIndexOf("/")+1); String context = request.getServletPath().substring(1,request.getServletPath().lastIndexOf("/")); //String apppath = getServletContext().getRealPath("/tpl/nm"); String apppath = getServletContext().getRealPath("/"+context); //System.out.println("app path is "+apppath); String tp = request.getParameter("tp"); if(tp!=null){ apppath = getServletContext().getRealPath("/tpl/"+tp); } response.setCharacterEncoding("utf-8"); request.setCharacterEncoding("utf-8"); String t = request.getParameter("t"); String appid = IConstant.getCurrentAppid(apppath); if(appid!=null) request.getSession().setAttribute(IConstant.CURRENT_APPID,appid); else{ response.sendRedirect(basePath+"app/error.html?c=1"); return; } SuperTypeDaoImpl superTypeDao=new SuperTypeDaoImpl(); SubTypeDaoImpl subTypeDao=new SubTypeDaoImpl(); ArrayList superTypes = superTypeDao.getSuperType(appid); ArrayList subTypes = null; Jedis redis = null; redis = Redis.getReadRedis(); int role = 301; //get data JSONArray catalogs = IConstant.getCatalogs( appid); JSONArray jsonTypes = IConstant.getCacheTypes(redis, appid, role, t); JSONArray products = IConstant.getCacheProducts(redis, appid, role, t); //get notices JSONArray notices = IConstant.getCacheNotices(redis, appid, t); if(notices.size()==0){ notices = IConstant.getCacheNotices(redis, "1", t); } JSONObject jsonUser = null; //get index recommend String type="0"; JSONArray recommends = IConstant.getRecommends(redis, appid, type, t); if(recommends.size()==0){ recommends = IConstant.getRecommends(redis, "1", type, t); } //get app JSONObject app = null; app =IConstant.getAppInfo(appid); if(app==null) { response.sendRedirect(basePath+"app/error.html?c=1"); return; } String email=null; try{ email = app.getString("email"); }catch(Exception ex){ email="bd@andisk.com"; } JSONObject index = JSONObject.fromObject(IConstant.getIndex(appid, t)); JSONArray types = index.getJSONArray("types"); JSONArray recommendproducts = index.getJSONArray("recommends"); JSONArray newproducts = index.getJSONArray("newproducts"); JSONArray hots = index.getJSONArray("hots"); JSONArray frees = index.getJSONArray("frees"); JSONArray lives = index.getJSONArray("lives"); JSONArray recommendLives = index.getJSONArray("recommendLives"); JSONArray vips = index.getJSONArray("vips"); JSONArray questions = index.getJSONArray("questions"); JSONArray trains = index.getJSONArray("trains"); //新闻栏目 JSONArray ts = IConstant.getNewsTypes(redis, appid, t); if(ts.size()==0){ ts = IConstant.getNewsTypes(redis, "1", t); } //get news recommend JSONArray news = IConstant.getRecommendNews(redis, appid, t); if(news.size()==0){ news = IConstant.getRecommendNews(redis, "1", t); } JSONArray roles = IConstant.getCachePriceRoles( appid, t); if(roles.size()==0){ roles = IConstant.getCachePriceRoles( "1", t); } if(redis!=null){ Redis.disconnect(redis); } %> 华筑

BIM热门课程

更多>
    <% String str=""; for(int i=0;i1){ break; } String url = IConstant.toStaticURL("iType.jsp?ar="+sub.getString("subTypeId"), appid); String picture = sub.getString("picture2"); String title=sub.getString("subType"); String tip=sub.getString("tip"); String intro=sub.getString("introduce"); String viewnumber=sub.getString("viewnumber"); String upnumber=sub.getString("upnumber"); String teacher=""; try{ teacher = sub.getString("teacher"); }catch(Exception ex){ } int price=sub.getInt("price"); String vip="公开"; if(price>0){ vip="VIP"; try{ JSONArray attrs = sub.getJSONArray("attrs"); if(attrs!=null){ for(int j=0;j"; str+="

    "+sub.getString("subType")+""+vip+"

    "; str+=""; } out.print(str); %>

BIM资讯

更多>
<%for(int i=0;i=3) break; JSONObject r = notices.getJSONObject(i); String url = IConstant.toStaticURL("n.jsp?id="+r.getString("id"), appid); %> <%=r.getString("title") %> <% } %>

BIM培训招生

更多>
<%for(int i=0;i=3) break; JSONObject ta=trains.getJSONObject(i); String sch = ta.getString("schedule_date"); String start=""; if(sch==null||sch.isEmpty()){ start="每月开班"; } else{ start=sch; } String url=IConstant.toStaticURL("iTrain.jsp?ac="+ta.getString("id")+"&ar="+ta.getString("trainid"), appid); %> <%=ta.getString("classname") %> <%} %>

BIM学习

更多>
<% for(int i=0;i=3) break; JSONObject q = questions.getJSONObject(i); String url = "/andisk/app/sq.html?ar="+q.getString("id"); out.println(""+q.getString("answer")+""); } %>

BIM视频课

更多>
<% JSONObject sub=recommendproducts.getJSONObject(0); str=""; int price=sub.getInt("price"); String vip="免费"; if(price>0) vip ="收费"; String name = "sv.jsp?ar="+sub.getString("productid"); //String url = IConstant.toStaticURL(name, appid); String url = "sv.html?ar="+sub.getString("productid")+"&appid="+appid; str=""; str+="
"; str+=" "; str+="

时间:"+sub.getString("tip")+"

"; str+="
"; str+="
"; str+=" <"+sub.getString("productname")+""; str+=" "+vip+""; str+="
"; out.print(str); %>
<% str=""; for(int i=1;i1){ break; } name = "sv.jsp?ar="+sub.getString("productid"); //url = IConstant.toStaticURL(name, appid); url = "sv.html?ar="+sub.getString("productid")+"&appid="+appid; price=sub.getInt("price"); vip="免费"; if(price>0) vip ="收费"; str+="
"; str+="
"; str+="
"; str+=" "+sub.getString("productname")+""; str+=" "+vip+""; str+="
"; str+="
"; } out.print(str); %>

BIM直播课

更多>
<% str=""; if(recommendLives!=null && recommendLives.size()>0){ sub=recommendLives.getJSONObject(0); price=sub.getInt("price"); vip="免费"; if(price>0) vip =""+sub.getString("price")+"元"; name = "iLive.jsp?ar="+sub.getString("productid"); url = IConstant.toStaticURL(name, appid); str+="
"; str+=" "; str+="

时间:"+sub.getString("tip")+"

"; str+="
"; str+="
"; str+=" <"+sub.getString("productname")+""; str+=" "+vip+""; str+="
"; out.print(str); } %>
<% str=""; for(int i=1;i1){ break; } name = "iLive.jsp?ar="+sub.getString("productid"); url = IConstant.toStaticURL(name, appid); price=sub.getInt("price"); vip="免费"; if(price>0) vip =""+sub.getString("price")+"元"; str+="
"; str+="
"; str+="
"; str+=" "+sub.getString("productname")+""; str+=" "+vip+""; str+="
"; str+="
"; } out.print(str); %>

BIM培训考试

更多>
<% str=""; for(int i=0;i1){ break; } name = "iTrain.jsp?ar="+sub.getString("trainid")+"&ac="+sub.getString("id"); url = IConstant.toStaticURL(name, appid); price=sub.getInt("price"); vip="免费"; if(price>0) vip =""+sub.getString("price")+"元"; if(i%4==0){ str+="
"; str+="
"; str+="
"; str+=" "+sub.getString("title")+""; str+=" "+vip+""; str+="
"; str+="
"; } else{ str+="
"; str+="
"; str+="
"; str+=" "+sub.getString("title")+""; str+=" "+vip+""; str+="
"; str+="
"; } } out.print(str); %>

BIM合作伙伴

更多>
北京轨道交通建设公司
中国电建昆明设计院
北京市政工程设计院
北京设备安装工程集团
中铁建工安装工程公司
中建八局

全国咨询电话:010-57226129

企业邮箱:huazhubim@163.com

企业地址:北京市朝阳区顺白路12号 比目鱼创业园B座2层

COPYRIGHT © 2015 北京华筑建筑科学研究院版权所有 京ICP备16037752号-1