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

📄 onlinepaydet.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="MD5" scope="request" class="beartool.MD5"/>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
	
	//验证页面的提交来源
	int g_iPageCheck = igec.site.base.business.PurviewBusiness.checkComeFrom(request);
	if(g_iPageCheck<0){
		showMsg("禁止从站外提交数据!",request,response);
		return;
	}	
	
	String strMoney = igec.util.Tool.getStr(request.getParameter("money"));
	if(!igec.util.Tool.IsInStr(strMoney,"0123456789",false)){
		showMsg("请检查充值资金的录入!",request,response);
		return;
	}
	//生成一个不会重复的支付编号
	site.bean.OnlinePayObj pay = new site.bean.OnlinePayObj();
	pay.setStrMebId(user.getStrUserId());
	pay.setStrUserIp(request.getRemoteAddr());
	pay.setStrMoney(strMoney);
	int iFlag = site.business.UserSysBusiness.saveOnlinePay(pay);
	if(iFlag<0){
		showMsg("提交您的充值信息出现异常,请稍后重试!",request,response);
		return;
	}
	String strMoneyType = "CNY";
	String strRecUrl = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/chinabank/online_pay_rec.jsp";	
	igec.util.Log.println("在线支付","返回地址为:" + strRecUrl);
	String text = pay.getStrMoney() + strMoneyType + pay.getStrId() + site.bean.SitePara.strChargeTradeCode + strRecUrl + site.bean.SitePara.strChargeMd5Code;   // 拼凑加密串
	String v_md5info = MD5.getMD5ofStr(text);                          // 网银支付平台对MD5值只认大写字符串,所以小写的MD5值得转换为大写
%>
<!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/xmlhttp.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/public.js"></script>
<script language="javascript">
<!--
//-->
</script>
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
</head>  

  <body onLoad="javascript:document.E_FORM.submit();">
<%@ include file="../top.jsp"%>
    <div  id="screen">
		<!--content-->
		<div id="contentfloat">
		  <div id="content">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="TableTopLine"></td>
    </tr>
  </table>
<table border="0" name="objBody" id="objBody" width="100%" cellpadding="2" cellspacing="1" align="center" class="TableContent">
    <tr>
      <td colspan="2" valign="middle" ><span class="TableHeader"> <img src="<%=strOfficeStyle%>/images/tit.gif" width="35" height="35" align="absmiddle">在线充值</span></td>
      </tr>
    <tr height="30">
      <td nowrap width="10%" class="TableLabel"> 在线支付方式:</td>
      <td class="TableData">网银在线支付系统</td>
    </tr>
    <tr>
      <td nowrap class="TableLabel"> 支付金额:</td>
      <td class="TableData"><%=pay.getStrMoney()%>元(人民币)</td>
    </tr>  
    <tr>
      <td nowrap class="TableLabel"> 支付编号:</td>
      <td class="TableData"><%=pay.getStrId()%></td>
    </tr>    
    <tr>
      <td nowrap class="TableData"> </td>
      <td class="TableData">
       <p>请在弹出窗口中完成在线支付,完成之后请返回“资金活动明细”页面察看入账情况。<br>
								如果新窗口没有弹出,<a class="brownface" href="JavaScript:document.E_FORM.submit();"><b>请点击这里</b></a>。</p>
      </td>
    </tr>
  </table>  
<form action="https://pay3.chinabank.com.cn/PayGate" method="post" name="E_FORM" id="E_FORM" target="_blank">
<input type="hidden" name="v_md5info"    value="<%=v_md5info%>" size="100">
<input type="hidden" name="v_mid"        value="<%=site.bean.SitePara.strChargeTradeCode%>">
<input type="hidden" name="v_oid"        value="<%=pay.getStrId()%>">
<input type="hidden" name="v_amount"     value="<%=pay.getStrMoney()%>">
<input type="hidden" name="v_moneytype"  value="<%=strMoneyType%>">
<input type="hidden" name="v_url"        value="<%=strRecUrl%>"> 
 
<!--以下几项项为网上支付完成后,随支付反馈信息一同传给信息接收页 -->

<input type="hidden"  name="remark1" value="">
<input type="hidden"  name="remark2" value="">

<!--以下几项只是用来记录客户信息,可以不用,不影响支付 -->

<input type="hidden"  name="v_rcvname"      value="">
<input type="hidden"  name="v_rcvaddr"      value="">
<input type="hidden"  name="v_rcvtel"       value="">
<input type="hidden"  name="v_rcvpost"      value="">
<input type="hidden"  name="v_rcvemail"     value="">
<input type="hidden"  name="v_rcvmobile"    value="">
<input type="hidden"  name="v_ordername"    value="<%=user.getStrNickName()%>">
<input type="hidden"  name="v_orderaddr"    value="<%=igec.site.base.business.DataUtilBusiness.getFieldValue("DWDZ","TAB_IGECMEBADV","WHERE MEBID='" + user.getStrUserId() + "'")%>">
<input type="hidden"  name="v_ordertel"     value="">
<input type="hidden"  name="v_orderpost"    value="">
<input type="hidden"  name="v_orderemail"   value="">
<input type="hidden"  name="v_ordermobile"  value="">
</form>
<br />
 <br />
		  </div>
		</div>
		<!--end/content-->				
		<!--left-->
<div id="leftmenu">			
	<!--menu-->
	  <div id="tree1"></div>
	<!--end/menu-->
	</div>
		<!--end/left-->
	</div>	
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=request.getParameter("iid")%>"></script>
<script type="text/javascript">treeInit();</script>
<%@ include file="../bot.jsp"%>
  </body>
 </html>

⌨️ 快捷键说明

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