<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="com.Admin.daoimpl.AdminUserDaoImpl" %> <%@ page import="com.Admin.daoimpl.AdminProdDaoImpl" %> <%@ page import="com.Admin.vo.AppType"%> <%@ page import="net.sf.json.JSONArray"%> <%@ page import="net.sf.json.JSONObject"%> <%@ page import="com.Admin.vo.App"%> <%@ page import="com.Admin.vo.User"%> <%@ page import="com.Admin.vo.AppUser"%> <%@ page import="java.util.ArrayList"%> <%@ page import="java.util.List"%> <%@ page import="java.net.URLDecoder"%> <%@ page import="com.common.IConstant"%> <%@ 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); //userid = URLDecoder.decode(userid,"utf-8"); User user = (User)request.getSession().getAttribute(IConstant.CURRENT_USER); AdminUserDaoImpl au = new AdminUserDaoImpl(); if(user==null){ request.getSession().setAttribute(IConstant.CURRENT_PAGE,"cms/tech_task.jsp");//保留准备访问的页面 response.sendRedirect(basePath+"cms/login.html"); return; } if(!au.checkUserValidate(user)){ response.sendRedirect(basePath+"cms/userinfo.jsp"); return; } int percent = au.getUserInfoPercent(user); AppUser appuser = au.getUserAPPUser(user); JSONObject app = user.getAppInfo(); long diskspace = 0;//单位G try{ diskspace = app.getLong("diskspace")/1000; }catch(Exception e){ } String apptype = null; int t=0; if(app!=null){ t = app.getInt("apptype"); } if(t==0){ apptype="基础版"; } else if(t==1){ apptype="专业版"; } else if(t==2){ apptype="企业版"; } else if(t==3){ apptype="电子书"; } else{ apptype="购买服务器"; } String expire = null; try{ expire = app.getString("expiredate"); }catch(Exception e){ expire = ""; } String start = null; try{ start = app.getString("startdate"); }catch(Exception e){ start = ""; } int licensenum=0; try{ licensenum = app.getInt("licensenum"); }catch(Exception e){ } //get apptype AppType at = new AdminProdDaoImpl().getAppType(IConstant.enumAppType.TYPE_EXTRA_SMS); if(at==null){ //您购买的套餐类型不存在 response.sendRedirect(basePath+"/noService.jsp"); return; } %> andisk-常见问题-布置作业
云产品
- 免费版
- 电子书交易版
- 企业内训版
- 培训专业版
- 教学云搭建
- 基础版套餐
- 专业版套餐
- 企业版套餐
解决方案
- 大、中、小学
- 培训机构
- 政企事业单位
- 跨区域企业
- 电子书出版机构
- 医学医疗行业
常见问题
- 如何设置筛选
- 如何设置学习路径
- 如何设置同步播放
- 如何布置作业
- 如何快捷布置作业
- 如何监控学习进度
联系我们
- 代理招商
- 联系我们
- 工作机会
- 公司简介
- 合作伙伴
- 用户反馈
关注我们
公众帐号
联系方式
研发基地:北京市海淀区上地永丰产业基地丰惠中路7号。 客服中心:北京市石景山区万达商务中心907室. 联系电话:010-88182873 商务QQ:85356494 商务email:bd@andisk.com