⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upgrade.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="igec.site.base.bean.SitePara"%>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	if(checkPv(strMenuId,"",user)<0){
		noPv(out);
		return;
	}
%>
<%
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
	String tryFlg="0"; // 试用标志 0: 没有试用直接升级 1:有试用纪录,只开通试用服务
	//获取试用申请标志
	tryFlg=igec.site.base.business.DataUtilBusiness.getFieldValue("HASTRY","TAB_MEBFZINFO","WHERE MEBID='" + user.getStrUserId() + "'");
	String disabledStr="";
	if(!tryFlg.equals("1")){
		tryFlg="0";
	}else{
		disabledStr="checked";
	}
	int servNoneys=0;
	int newsTypeMoneys=0;
	int smsMoneys=0;									
	String strTemtMsgNum=igec.site.base.business.DataUtilBusiness.getFieldValue("MONEY","TAB_IGECMEBSEV","WHERE ID='S00019'");
	// 判断是否已经升级
	//String isReg=igec.site.base.business.DataUtilBusiness.getFieldValue("count(id)","TAB_IGECMEBPV","WHERE MEBID='" + user.getStrUserId() + "'");
	String isReg=igec.site.base.business.DataUtilBusiness.getFieldValue("count(id)","TAB_MEBUPREG","WHERE MEBID='" + user.getStrUserId() + "' and TYPE='2'");
		//if(Integer.parseInt(isReg)>0){user.getStrRoleId();
		if("S0002".equals(user.getStrRoleId())){
%>
		<script language="javascript">
			//parent.location.target="_self";
			window.location.href="<%=site.bean.SitePara.strVirtualName%>/sysmsg/user_upgrade_wrong.jsp";
		</script>
<%
			//actionForward = mapping.findForward("user_wrong");
		}// 判断结束

		// 判断使用申请是否批准
		String typPass=igec.site.base.business.DataUtilBusiness.getFieldValue("count(id)","TAB_MEBUPREG","WHERE MEBID='" + user.getStrUserId() + "' and TYPE='2' and DNFLAG='0'");
		if(Integer.parseInt(typPass)>0){
			tryFlg="0";
			disabledStr="";
%>
		<script language="javascript">
			//parent.location.target="_self";
			//alert("对不起,你的申请还没有批准!");
			//history.back();
			//window.location.href="<%=site.bean.SitePara.strVirtualName%>/sysmsg/user_upgrade_wrong.jsp";
		</script>
<%
			//actionForward = mapping.findForward("user_wrong");
		}// 判断结束
%>
<!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(1==<%=tryFlg%>){
			alert("对不起,试用后不允许修改!");
			for(i=0;i<varChkObj.length;i++){
				varChkObj[i].checked=true;
			}
			return false;
		}
		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="28" 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); PADDING-TOP: 3px" width="9%">升级申请 </td>
                          <td class="s" style="PADDING-LEFT: 14px; COLOR: rgb(64,136,189); PADDING-TOP: 3px" width="50%">
						  <%
						  	String tsInfo="请选择您要使用的服务,申请成功后即可生效!";
						  	if(tryFlg.equals("1")){
								tsInfo="您试用的服务如下,升级成功后即可生效!";
							}
						  %>
						  <%=tsInfo%>						  </td>
                          <td class="s" style="PADDING-LEFT: 14px; COLOR: rgb(64,136,189); PADDING-TOP: 3px" width="41%"><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="28" src="<%=strOfficeStyle%>/images/image002_1190008790403.gif" width="10" /></td>
                </tr>
              </tbody>
            </table>
            <table cellspacing="0" cellpadding="0" width="777" align="center" border="0">
              <tbody>
                <tr>
                  <td style="BORDER-RIGHT: rgb(204,204,204) 1px solid; BORDER-LEFT: rgb(204,204,204) 1px solid; BORDER-BOTTOM: rgb(204,204,204) 1px solid">
                  	<table cellspacing="0" cellpadding="0" width="100%" border="0">
                      <tbody>
                        <tr>
                          <td align="middle">
                            <table class="S" cellspacing="0" cellpadding="4" width="100%" align="center" border="0">
                          <form action="<%=site.bean.SitePara.strVirtualName%>/member/upgrade.do?action=real&iid=<%=strMenuId%>" method="post" name="aform" id="aform" onsubmit="return isSelectService(this);">
                              <tbody>  
                                <tr>
                                  <td colspan="3">&nbsp;</td>
                                </tr>                            
                                <tr>
                                  <td colspan="3" class="m" style="PADDING-RIGHT: 14px" align="center">系统收费服务</td>
                                </tr>
                                <tr>
                                  <td colspan="3"><hr width="650" color="#cccccc" size="1" /> </td>
                                </tr>                                
                                <tr>
                                	<td width="5%">&nbsp;</td>
                                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <%
								  //System.out.println("******************************");
								  	String servSql="";
									String sqlTemp="select a.menuid from TAB_IGECMEBPVXN a,TAB_MEBUPREG b where a.regid=b.id and b.MEBID='"+user.getStrUserId()+"' and b.TYPE='1' and b.DNFLAG='1' and a.menuid not in ('S00001','S00020')";
									if(tryFlg.equals("1")){
										if("0".equals(user.getStrUserType())){ //个人会员
											servSql="SELECT ID,NAME,MONEY FROM TAB_IGECMEBSEV WHERE FLAG LIKE '1%' and id in("+sqlTemp+") ORDER BY XH";
										}else{
											servSql="SELECT ID,NAME,MONEY FROM TAB_IGECMEBSEV WHERE FLAG LIKE '_1%'  and id in("+sqlTemp+") ORDER BY XH";
										}
									}else{
										if("0".equals(user.getStrUserType())){ //个人会员
											servSql="SELECT ID,NAME,MONEY FROM TAB_IGECMEBSEV WHERE FLAG LIKE '1%' AND ID NOT IN ('S00001','S00019','S00020') ORDER BY XH";
										}else{
											servSql="SELECT ID,NAME,MONEY FROM TAB_IGECMEBSEV WHERE FLAG LIKE '_1%' AND ID NOT IN ('S00001','S00019','S00020') ORDER BY XH";
											
										}
									}
									//System.out.println("servSql 1:"+servSql);
                                  	String strService[][] = null;
                                  	strService = igec.site.base.business.DataUtilBusiness.getValues(servSql);
                                  	
	                                 if(strService!=null){
	                                  for(int i=0;i<strService.length;){
	                                  	out.println("<tr align=\"left\">");
	                                  	for(int n=0;n<4;n++){
	                                  		if(i<strService.length){
	                                  				//if("S00019".equals(strService[i][0])){
	                                  				//	out.println("<td><input type=\"Checkbox\" name=\"service\" value=\"" + strService[i][0] + "\" money=\"" + strService[i][2] + "\" onclick=\"javascript:countCost(this);\"> " + strService[i][1] + "(" + strService[i][2] + "元/1000条)</td>");
	                                  				//}else{
	                                  					out.println("<td><input type=\"Checkbox\" name=\"service\" value=\"" + strService[i][0] + "\" money=\"" + strService[i][2] + "\" onclick=\"javascript:countCost('service');\" "+disabledStr+"> " + strService[i][1] + "(" + strService[i][2] + "元/年)</td>");

														

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -