businessEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:5k
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- session="true" errorPage="err.jsp" %><%@
- include file="./GVinc/gvImport.jsp" %><%
- if(gvUserID<=0){
- out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
- out.close();
- if(true)return;
- }
- int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
- if(iPage<1){iPage = 1;}
- byte businessType = ParamUtils.getByteParameter(request,"type");
- ClubRuleItem cri = null;
- com.gamvan.club.ClubRule cr = new com.gamvan.club.ClubRule();
- String crMarks = "";
- String crMoneys = "";
- String crCredits = "";
- cri = cr.ruleInfo();
- if(cri!=null){ crMarks = cri.getCrMark();
- crMoneys = cri.getCrMoney();
- crCredits = cri.getCrCredit();
- }else{
- out.print(prtCenter("系统发生意外错误,基本信息提取失败!","main.jsp",1));
- out.close();
- if(true)return;
- }
- %><html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%=clubTitle%> 交易记录</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="./GVimgs/favicon.ico" rel="Bookmark">
- <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <STYLE type=text/css media=screen>
- @import url(./GVinc/main.css);
- </STYLE>
- </head>
- <body><DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 30%; TEXT-ALIGN: center">
- <TABLE cellPadding=6 border=0>
- <TBODY><TR><TD align=middle>
- <IMG src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
- <BR>
- <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
- <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0 height=0></IFRAME>
- <script type="text/javascript" src="GVscript/GVjumpPage.js"></script>
- <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
- <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__社区交易');
- </script>
- <%@ include file="./GVinc/userMenu.jsp" %>
- <table width="99%" height="25" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1">
- <td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href="businessList.jsp">社区交易</a>>>")%>
- <club:users type="businessType" idIs="<%=businessType%>"/></td>
- </tr></table><%
- com.gamvan.club.user.ClubBusinessEdit cbe = new com.gamvan.club.user.ClubBusinessEdit();
- if(request.getMethod().equals("POST")){
-
- cbe.setBusinessType(businessType);
- cbe.setUserMark(ParamUtils.getDoubleParameter(request,"businessNum"));
- cbe.setUserMoney(ParamUtils.getDoubleParameter(request,"businessNum"));
- cbe.setUserID(gvUserID);
- cbe.businessDo();
- out.print(prtCenter(cbe.getMessage(),"businessList.jsp",2));
- out.print(Gfoot());
- out.close();
- if(true)return;
- }
- %><table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <form name="Gforms" method="post" action="" onSubmit="return postMsg();">
- <tr class="tr">
- <td width="160" height="25"><strong>您要操作的项目是</strong></td>
- <td height="24"><strong><club:users type="businessType" idIs="<%=businessType%>"/></strong></td>
- </tr>
- <tr><td height="25" class="tab2">您的基本信息:</td>
- <td class="tab3">
- <strong>信誉:</strong><%=gvUserCredit%>
-
- <strong>积分:</strong><%=gvUserMark%>
-
- <strong>金币:</strong><%=gvUserMoney%>
-
- <strong>存款:</strong><%=gvUserDeposit%></td></tr>
- <%
- double rate = 0;
- if(businessType==1){
- rate = (ArrayEdit.txtsList(crMarks,17,"|"));
- %>
- <tr><td height="25" class="tab2">
- 当前兑率:
- </td><td class="tab3">
- <span style="color: #3300FF; font-weight: bold;">1</span> 积分 兑换 <span style="color: #FF0000; font-weight: bold;"><%=rate%></span> 个金币
- </td>
- </tr>
- <%}else if(businessType==2){
- rate = (ArrayEdit.txtsList(crMoneys,17,"|"));
- %>
- <tr><td height="25" class="tab2">
- 当前兑率:
- </td><td class="tab3">
- <span style="color: #3300FF; font-weight: bold;">1</span> 个金币 兑换 <span style="color: #FF0000; font-weight: bold;"><%=rate%></span> 积分</td>
- </tr>
- <%}%>
- <tr>
- <td height="25" class="tab2">兑换数目:</td>
- <td class="tab3"><input name="businessNum" type="text" id="businessNum" value="0" size="10" maxlength="10">
- (请填写数字否则无法兑换)</td>
- </tr>
- <tr>
- <td height="25" class="tab2"> </td>
- <td class="tab3">
- <%
- if(rate==0){
- %>
- <span style="color: #FF0000;">此功能暂时关闭</span>
- <%}else{%>
- <input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="确定兑换">
-
- <input name="gvBack" type="hidden" class="btn" id="gvBack">
- <%}%>
- </td>
- </tr>
- </form>
- </table>
- <%=Gfoot()%>
- </body>
- </html>