treasure_show.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8" %>
  2. <%@ page import="java.util.*"%>
  3. <%@ page import="cn.js.fan.db.Conn"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <%@ page import="cn.js.fan.web.*"%>
  6. <%@ page import="com.redmoon.forum.person.*"%>
  7. <%@ page import="com.redmoon.forum.plugin.*"%>
  8. <%@ page import="com.redmoon.forum.plugin.entrance.*"%>
  9. <%@ page import="com.redmoon.forum.*"%>
  10. <%@ page import="com.redmoon.forum.treasure.*"%>
  11. <%@ page import="com.redmoon.forum.plugin.base.*"%>
  12. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  13. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  14. <%
  15. String skincode = UserSet.getSkin(request);
  16. if (skincode.equals(""))
  17. skincode = UserSet.defaultSkin;
  18. SkinMgr skm = new SkinMgr();
  19. Skin skin = skm.getSkin(skincode);
  20. if (skin==null)
  21. skin = skm.getSkin(UserSet.defaultSkin);
  22. String skinPath = skin.getPath();
  23. %>
  24. <html><head>
  25. <meta http-equiv="pragma" content="no-cache">
  26. <link href="<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
  27. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  28. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  29. <title><lt:Label res="res.label.forum.treasure" key="treasure_show"/> - <%=Global.AppName%></title>
  30. <script language="JavaScript">
  31. <!--
  32. //-->
  33. </script>
  34. <style type="text/css">
  35. <!--
  36. .style1 {
  37. font-size: 14px;
  38. font-weight: bold;
  39. }
  40. -->
  41. </style>
  42. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  43. <%@ include file="inc/header.jsp"%>
  44. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  45. <%
  46. if (!privilege.isUserLogin(request)) {
  47. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, SkinUtil.ERR_NOT_LOGIN)));
  48. return;
  49. }
  50. String code = ParamUtil.get(request, "code");
  51. if (code.equals("")) {
  52. out.print(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "res.label.forum.treasure", "need_code")));
  53. return;
  54. }
  55. TreasureMgr tmr = new TreasureMgr();
  56. TreasureUnit tu = tmr.getTreasureUnit(code);
  57. String userName = privilege.getUser(request);
  58. %>
  59. <br>
  60. <table width="98%" height="227" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  61.   <tr> 
  62.     <td height=20 align="center" class="thead"><span class="style1"><lt:Label res="res.label.forum.treasure" key="treasure_show"/></span></td>
  63.   </tr>
  64.   <tr> 
  65.     <td valign="top"><br>
  66.       <br>
  67.       <table width="43%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#EFEFEF">
  68.         <tr>
  69.           <td height="24" colspan="2" align="center" class="td_title"><font color=white><%=tu.getName()%></font></td>
  70.         </tr>
  71.         <tr align="center">
  72.           <td height="22" colspan="2" bgcolor="#FFFFFF"><%=tu.getDesc()%></td>
  73.         </tr>
  74.         <tr>
  75.           <td width="48%" height="130" rowspan="2" align="center" bgcolor="#FFFFFF"><img src="<%=tu.getImage()%>"> </td>
  76.           <td width="52%" height="55" valign="top" bgcolor="#FFFFFF"><lt:Label res="res.label.forum.treasure" key="buy_point"/>
  77.             <br>
  78.               <%
  79.   Vector pricev = tu.getPrice();
  80.   Iterator pir = pricev.iterator();
  81.   ScoreMgr sm = new ScoreMgr();
  82.   while (pir.hasNext()) {
  83.    TreasurePrice tp = (TreasurePrice)pir.next();
  84.    ScoreUnit su = sm.getScoreUnit(tp.getScoreCode());
  85.   %>
  86.               <%=su.getName()%>&nbsp;<%=tp.getValue()%>&nbsp;
  87.   <%}%>   
  88.               <br>
  89.           <lt:Label res="res.label.forum.treasure" key="day_count"/>
  90.           <%=tu.getDay()%> </td>
  91.         </tr>
  92.         <tr>
  93.           <td height="22" bgcolor="#FFFFFF"><lt:Label res="res.label.forum.treasure" key="store_count"/>
  94.             <%=tu.getCount()%></td>
  95.         </tr>
  96.       </table></td>
  97.   </tr>
  98. </table>
  99. </td> </tr>             
  100.       </table>                                        
  101.        </td>                                        
  102.      </tr>                                        
  103.  </table> 
  104.  <%@ include file="inc/footer.jsp"%>                                       
  105. </body>                                        
  106. </html>                            
  107.