%@ 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);
User user = null;
try{
user = (User)request.getSession().getAttribute(IConstant.CURRENT_USER);
}catch(Exception ex){
} AdminUserDaoImpl au = new AdminUserDaoImpl();
if(user==null){
request.getSession().setAttribute(IConstant.CURRENT_PAGE,"cms/rent_book.jsp");//保留准备访问的页面
if(basePath.contains("localhost")){
response.sendRedirect(basePath+"cms/login.html");
}
else
{
response.sendRedirect("http://www.andisk.com/andisk/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_RENT_BOOK);
if(at==null){
//您购买的套餐类型不存在
response.sendRedirect(basePath+"/noService.jsp");
return;
}
%>
andisk-租用电子书包
租用电子书系统
|
|
4000元即可 |
性价比最高(推荐) |
|
|
个人版 0元/年 |
基础版 4000元/年 |
专业版 15000元/每年 |
企业版 25000元/每年 |
使用版本 |
电子书交易版 |
培训专业版 |
培训专业版 |
培训专业版 |
广告 |
推送消息 |
推送消息 |
推送消息 |
推送消息 |
用户数 |
20 |
100 |
500 |
1000 |
在线交易 |
按每笔交易10%提成。 |
按每笔交易10%提成。 |
按每笔交易10%提成。 |
按每笔交易10%提成。 |
空间 |
10G |
100G |
100G |
100G |
短信增值费:每1000条95元。空间增值费:每增加10G收费100元/年 |
如需开通请致电 010-80445680 功能详情 |
|
|
|
|
|