businessEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2.  session="true" errorPage="err.jsp" %><%@ 
  3.  include file="./GVinc/gvImport.jsp" %><%
  4. if(gvUserID<=0){
  5. out.print(prtCenter("您尚未登陆,无权进行此项操作!","userLogin.jsp",1));
  6. out.close();
  7. if(true)return;
  8. }
  9. int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
  10. if(iPage<1){iPage = 1;}
  11. byte businessType = ParamUtils.getByteParameter(request,"type");
  12. ClubRuleItem cri = null;
  13. com.gamvan.club.ClubRule cr = new com.gamvan.club.ClubRule();
  14. String crMarks = "";
  15. String crMoneys = "";
  16. String crCredits = "";
  17. cri = cr.ruleInfo();
  18. if(cri!=null){ crMarks = cri.getCrMark();
  19. crMoneys = cri.getCrMoney();
  20. crCredits = cri.getCrCredit();
  21. }else{
  22. out.print(prtCenter("系统发生意外错误,基本信息提取失败!","main.jsp",1));
  23. out.close();
  24. if(true)return;
  25. }
  26. %><html xmlns="http://www.w3.org/1999/xhtml">
  27. <head>
  28. <title><%=clubTitle%>  交易记录</title>
  29. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  30. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  31. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  32. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  33. <STYLE type=text/css media=screen>
  34. @import url(./GVinc/main.css);
  35. </STYLE>
  36. </head>
  37. <body><DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 30%; TEXT-ALIGN: center">
  38. <TABLE cellPadding=6 border=0>
  39. <TBODY><TR><TD align=middle>
  40. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  41. <BR>
  42. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  43. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  44. <script type="text/javascript" src="GVscript/GVjumpPage.js"></script>
  45. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  46. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  47. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  48. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  49. <script language="javascript" type="text/javascript">
  50. prtie2('<%=clubTitle%>__社区交易');
  51. </script>
  52. <%@ include file="./GVinc/userMenu.jsp" %>
  53. <table width="99%" height="25" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  54. <tr class="tab1">
  55. <td>
  56. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("<a href="businessList.jsp">社区交易</a>&gt;&gt;")%>
  57. <club:users type="businessType"  idIs="<%=businessType%>"/></td>
  58. </tr></table><%
  59. com.gamvan.club.user.ClubBusinessEdit cbe = new com.gamvan.club.user.ClubBusinessEdit();
  60. if(request.getMethod().equals("POST")){
  61. cbe.setBusinessType(businessType);
  62. cbe.setUserMark(ParamUtils.getDoubleParameter(request,"businessNum"));
  63. cbe.setUserMoney(ParamUtils.getDoubleParameter(request,"businessNum"));
  64. cbe.setUserID(gvUserID);
  65. cbe.businessDo();
  66. out.print(prtCenter(cbe.getMessage(),"businessList.jsp",2));
  67. out.print(Gfoot());
  68. out.close();
  69. if(true)return;
  70. }
  71. %><table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  72. <form name="Gforms" method="post" action="" onSubmit="return postMsg();">
  73. <tr class="tr">
  74. <td width="160" height="25"><strong>您要操作的项目是</strong></td>
  75. <td height="24"><strong><club:users type="businessType"  idIs="<%=businessType%>"/></strong></td>
  76. </tr>
  77. <tr><td height="25" class="tab2">您的基本信息:</td>
  78. <td class="tab3">
  79. <strong>信誉:</strong><%=gvUserCredit%>
  80. &nbsp;&nbsp;
  81. <strong>积分:</strong><%=gvUserMark%>
  82. &nbsp;&nbsp;
  83. <strong>金币:</strong><%=gvUserMoney%>
  84. &nbsp;&nbsp;
  85. <strong>存款:</strong><%=gvUserDeposit%></td></tr>
  86. <%
  87. double rate = 0;
  88. if(businessType==1){
  89. rate = (ArrayEdit.txtsList(crMarks,17,"|"));
  90. %>
  91. <tr><td height="25" class="tab2">
  92. 当前兑率:
  93. </td><td class="tab3">
  94. <span style="color: #3300FF; font-weight: bold;">1</span> 积分 兑换 <span style="color: #FF0000; font-weight: bold;"><%=rate%></span> 个金币
  95. </td>
  96. </tr>
  97. <%}else if(businessType==2){
  98. rate = (ArrayEdit.txtsList(crMoneys,17,"|"));
  99. %>
  100. <tr><td height="25" class="tab2">
  101. 当前兑率:
  102. </td><td class="tab3">
  103. <span style="color: #3300FF; font-weight: bold;">1</span> 个金币 兑换 <span style="color: #FF0000; font-weight: bold;"><%=rate%></span> 积分</td>
  104. </tr>
  105. <%}%>
  106. <tr>
  107.   <td height="25" class="tab2">兑换数目:</td>
  108.   <td class="tab3"><input name="businessNum" type="text" id="businessNum" value="0" size="10" maxlength="10">
  109.     (请填写数字否则无法兑换)</td>
  110. </tr>
  111. <tr>
  112. <td height="25" class="tab2">&nbsp;</td>
  113. <td class="tab3">
  114. <%
  115. if(rate==0){
  116. %>
  117. <span style="color: #FF0000;">此功能暂时关闭</span>
  118. <%}else{%>
  119. <input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="确定兑换">
  120. &nbsp;&nbsp;&nbsp;&nbsp;
  121. <input name="gvBack" type="hidden" class="btn" id="gvBack">
  122. <%}%>
  123. </td>
  124. </tr>
  125. </form>
  126. </table>
  127. <%=Gfoot()%>
  128. </body>
  129. </html>