<%@ 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("/"+context); 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 ct = request.getParameter("ct"); String sup = request.getParameter("ar"); String pn1 = request.getParameter("pn"); 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; } JSONObject app = null; JSONArray types = null; String supertype = null; String subtype = null; String template = null; String email=null; JSONArray catalogs = null; JSONArray subs = new JSONArray(); JSONArray comments = new JSONArray(); JSONArray ts = new JSONArray(); int role = 301; int pn=0; int pagenum=12; int pagecount=0;//计算页码 try{ if(pn1!=null){ try{ pn= Integer.valueOf(pn1); }catch(Exception ex){ pn=0; } } //get app app =IConstant.getAppInfo(appid); if(app==null){ response.sendRedirect(basePath+"app/error.html?c=5"); return; } template = app.getString("template"); email=null; try{ email = app.getString("email"); }catch(Exception ex){ email="bd@andisk.com"; } catalogs = IConstant.getCatalogs( appid); if(catalogs.size()==0){ response.sendRedirect(basePath+"app/error.html?c=5"); return; } //get data types = IConstant.getTypes(appid, "301"); if(types.size()==0){ response.sendRedirect(basePath+"app/error.html?c=5"); return; } //根据ct,sup,pn获取最新的课程 JSONObject rtn = IConstant.getCacheLives(appid,ct,sup,pn,"1"); if(rtn==null){ response.sendRedirect(basePath+"app/error.html?c=5"); return; } comments = rtn.getJSONArray("comments"); subs = rtn.getJSONArray("subs"); pagecount = rtn.getInt("pagecount"); //获得最新的评论 }catch(Exception ex){ ex.printStackTrace(); response.sendRedirect(basePath+"app/error.html?c=5"); return; }finally{ } %> 华筑
<% for(int i=0;i0){ vip="VIP"; try{ JSONArray attrs = sub.getJSONArray("attrs"); if(attrs!=null){ for(int j=0;j"); out.println("
"); out.println(""); out.println(""+vip+""); out.println("

"); out.println("
"); out.println("
"); out.println("
"); out.println(" "+title+""); out.println(" "+teacher+""+viewnumber+"人"); out.println("
"); out.println(" "+tip+""); out.println("

价格:¥"+price+"

"); out.println(" 了解详情"); out.println("
"); out.println("
"+intro+"
"); out.println("
"); out.println(""); } %>

课程评价

<% if(comments.size()>0){ for(int i=0;i"); out.println("
"+c.getString("productname")+"
"); out.println("
"); out.println("
"); out.println(" /"); out.println("

"+c.getString("username")+"

"); out.println("
"); out.println("

"+c.getString("content")+"

"); out.println("
"); out.println(" "); } } else{ %>
全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

全国BIM技能等级认证考试的第一选择
/

林思文

华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!

<% } %>

全国咨询电话:4008091886

企业邮箱:huazhubim@163.com

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

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