%@ 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{ } %>
价格:¥"+price+"
"); out.println(" 了解详情"); out.println(""+c.getString("content")+"
"); out.println("
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!
华筑的视频真的是太好看了。华筑的老师讲的真的是超级棒我真的好佩服好佩服呀!