📄 buy.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
if(checkPv(strMenuId,"",user)<0){
noPv(out);
return;
}
if("S0001".equals(user.getStrRoleId())){
%>
<script language="javascript">
alert("对不起,你还不是VIP会员!");
window.location="<%=igec.site.base.bean.SitePara.strVirtualName%>/member/process.do?iid=A0076";
</script>
<%
return;
}
%>
<%
String strMobile_dy=igec.util.Tool.getStr(request.getParameter("mobile"));
String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
//获取试用申请标志
String disabledStr="";
String strTemtMsgNum=igec.site.base.business.DataUtilBusiness.getFieldValue("MONEY","TAB_IGECMEBSEV","WHERE ID='S00019'");
String strService[][] = null;
String servSql="";
String sqlTemp="";
String strSmsServiceNum=igec.site.base.business.DataUtilBusiness.getFieldValue("count(a.id)","TAB_IGECMEBPV a,TAB_MEBUPREG b","where a.MEBID=b.MEBID and b.MEBID='"+user.getStrUserId()+"' and b.TYPE='2' and a.menuid='S00020'");
if(igec.util.Tool.IsEmpty(strSmsServiceNum)){
strSmsServiceNum="0";
//System.out.println("strSmsServiceNum ="+strSmsServiceNum);
}
int intTemp=java.lang.Integer.parseInt(strSmsServiceNum);
String strFormAction=site.bean.SitePara.strVirtualName+"/member/upgrade.do?action=real&iid="+strMenuId;
if(intTemp>0){
strFormAction=site.bean.SitePara.strVirtualName+"/member/upgrade.do?action=pay&iid="+strMenuId;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title> 会员办公室--<%=site.bean.SitePara.strWebTitle%> </title>
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/tree.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/mainframe.css" type="text/css" />
<script type="text/javascript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/tree.jsp?baseurl=<%=strOfficeStyle%>"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
<style type="text/css">
<!--
.button1 { BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BACKGROUND: url(<%=strOfficeStyle%>/images/cxt_zc_image0022.gif); BORDER-BOTTOM-WIDTH: 0px; MARGIN: 0px; WIDTH: 118px; CURSOR: pointer; HEIGHT: 31px; BORDER-RIGHT-WIDTH: 0px
}
.STYLE2 {color: #FF0000}
-->
</style>
<script language="javascript">
<!--
var allSltMoneys=0;
var servMoneys=0;
var newstypeMoneys=0;
var smsMoneys=0;
function countCost(servtype){
var varChkObj=document.getElementsByName(servtype);
// 服务
if(servtype=="service"){
servMoneys=0;
for(i=0;i<varChkObj.length;i++){
if(varChkObj[i].checked==true){
servMoneys=servMoneys+parseInt(varChkObj[i].money);
}
}
}
// 信息
if(servtype=="newstype"){
newstypeMoneys=0;
for(i=0;i<varChkObj.length;i++){
if(varChkObj[i].checked==true){
newstypeMoneys=newstypeMoneys+parseInt(varChkObj[i].money);
}
}
}
// 短信
if(servtype=="sms"){
smsMoneys=0;
for(i=0;i<varChkObj.length;i++){
if(varChkObj[i].checked==true){
smsMoneys=smsMoneys+parseInt(varChkObj[i].money);
}
}
}
//alert(servMoneys+newstypeMoneys+smsMoneys);
allSltMoneys=(servMoneys+newstypeMoneys+smsMoneys);
document.all["allMoneys"].value=allSltMoneys*parseInt(document.all["BuyYear"].value)+parseInt(<%=strTemtMsgNum%>)*parseInt(document.all["BuySmsNum"].value);
}
function yearNum(yearNum){
document.all["allMoneys"].value=allSltMoneys*parseInt(document.all[yearNum].value)+parseInt(<%=strTemtMsgNum%>)*parseInt(document.all["BuySmsNum"].value);
}
function siteMsgNum(varMsgNum,yuan){ document.all["allMoneys"].value=allSltMoneys*parseInt(document.all["BuyYear"].value)+parseInt(<%=strTemtMsgNum%>)*parseInt(document.all[varMsgNum].value);
}
//-->
</script>
</head>
<body>
<%@ include file="../top.jsp"%>
<div id="screen">
<!--content-->
<div id="contentfloat">
<div id="content">
<table cellspacing="0" cellpadding="0" width="778" align="center" border="0">
<tbody>
<tr>
<td width="10"><img height="31" src="<%=strOfficeStyle%>/images/image001_1190008723700.gif" width="10" /></td>
<td style="BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 60px; PADDING-TOP: 3px; BORDER-BOTTOM: rgb(204,204,204) 1px solid" align="left" bgcolor="#f5fafd">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td class="m" style="COLOR: rgb(64,136,189); " width="12%">购买/续费 </td>
<td class="s" style="PADDING-LEFT: 14px; COLOR: rgb(64,136,189);" width="50%">
<%
String tsInfo="请选择您要购买/续费的服务,购买/续费成功后即可生效!";
%>
<%=tsInfo%> </td>
<td class="s" style="PADDING-LEFT: 14px; COLOR: rgb(64,136,189); PADDING-TOP: 3px" width="38%"><span class="STYLE2">费用:</span>
<input name="allMoneys" type="text" value="0" size="10" maxlength="10" readonly />
<span class="STYLE2">元</span>(人民币)</td>
</tr>
</tbody>
</table></td>
<td width="11"><img height="31" src="<%=strOfficeStyle%>/images/image002_1190008790403.gif" width="10" /></td>
</tr>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="777" align="center" border="0">
<tbody>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -