credits_up.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>www.mymps.com.cn</title>
  6. <style type="text/css">
  7. <!--
  8. body {
  9. padding: 0px;
  10. margin-top: 1px;
  11. margin-left: 1px;
  12. background:white;
  13. font-size:12px;
  14. background-color:white;
  15. }
  16. #center {
  17. width: auto;
  18. margin-top: 0px;
  19. margin-right: auto;
  20. margin-bottom: 0px;
  21. margin-left: auto;
  22. }
  23. .content {
  24. padding-left: 70px;
  25. }
  26. .content_1 {
  27. float: left;
  28. width: auto;
  29. line-height: 24px;
  30. color: #a7a7aa;
  31. }
  32. .content_1 .hj {
  33. padding-top: 5px;
  34. padding-bottom: 5px;
  35. }
  36. .content_1 strong {
  37. color: #006acd;
  38. }
  39. .content_1 b {
  40. color: #006acd;
  41. }
  42. .content_2 {
  43. line-height: 24px;
  44. float: right;
  45. width: 170px;
  46. padding-right: 15px;
  47. color: #006acd;
  48. margin-top: 20px;
  49. }
  50. .content_2 span {
  51. color: #e91116;
  52. }
  53. .clear {clear:both; height:10px; visibility:hidden; overflow: hidden}
  54. a:hover {
  55. color: #FF0000;
  56. }
  57. .content_11 { float: left;
  58. width: auto;
  59. line-height: 24px;
  60. color: #a7a7aa;
  61. }
  62. .cont {
  63. padding:10px 30px 0 30px;
  64. }
  65. .cont_1 {
  66. width: auto;
  67. line-height: 24px;
  68. color: #a7a7aa;
  69. }
  70. .nr {
  71. height:auto;
  72. overflow:auto
  73. }
  74. .nr span.l{ display:block; width:350px; }
  75. .nr span.r{ display:block; width:350px; }
  76. .nr em {
  77. font-style: normal;
  78. color: #FF0000;
  79. }
  80. .nr b {
  81. color: #006acd;
  82. }
  83. .input0 {
  84. border: 1px solid #b9cde3;
  85. height: 18px;
  86. vertical-align: middle;
  87. width: 150px;
  88. line-height: 18px;
  89. padding-left:5px;
  90. padding-right:5px;
  91. }
  92. textarea {
  93. border: 1px solid #b9cde3;
  94. height: 40px;
  95. width: 436px;
  96. vertical-align: middle;
  97. padding-left:5px;
  98. padding-right:5px;
  99. }
  100. input.submit{border:1px solid;cursor:pointer;border-color:#fff #848484 #848484 #fff !important;background:#1B72AF !important;color:#FFFFFF !important; line-height:20px;}
  101. .mymps{ width:100%}
  102. .mymps td{ border-bottom:1px #eee solid; text-align:center}
  103. .current td{color:#090;border-color:#abdc97;background-color:#f5fff1;}
  104. .current td.icon{background:#f5fff1 url(../member/template/images/valid.gif) no-repeat 5px 4px;}
  105. -->
  106. </style>
  107. <script type="text/javascript">
  108. function $(id) {
  109. return document.getElementById(id);
  110. }
  111. </script>
  112. </head>
  113. <body>
  114. <div id="center">
  115. <form action="box.php" method="post">
  116. <input name="part" value="credits_up" type="hidden">
  117. <input name="action" value="post" type="hidden">
  118. <div class="cont">
  119. <div class="cont_1">
  120. <div class="nr" style="border-bottom:3px #ddd solid"><b>您当前拥有金币 <font color="red"><?=$row['money_own']?></font> <img src="<?=$mymps_global['SiteUrl']?>/member/images/mymps_icon_incomes.gif" align="absmiddle">,信用值 <font color="red" id="scorenow"><?=$row['credit']?></font> <img src="<?=$mymps_global['SiteUrl']?>/images/credit/<?php echo $row['credits']?>.gif" align="absmiddle"></div>
  121. <div>
  122. <table border="0" cellspacing="0" cellpadding="0" class="mymps">
  123. <tr class="firstr"><td colspan="5" style="text-align:left!important">信用等级对照说明</td></tr>
  124. <tr bgcolor="#f5f8ff" style="font-weight:bold"><td>信用等级</td><td>信用度大于</td><td>信用度小于</td><td>等级图标</td></tr>
  125. <?php for($i=1;$i<16;$i++){?>
  126. <tr align="center" bgcolor="white" <?php if($row['credits'] == $i) echo 'class="current"';?>><td class="icon"><?php echo $i; ?></td><td><?php echo $credit_set[rank][$i]?></td><td><?php echo $credit_set[rank][$i+1]?>&nbsp;</td><td><img src="<?=$mymps_global['SiteUrl']?>/images/credit/<?php echo $i; ?>.gif" border="0"></td>
  127. <?php }?>
  128. </table>
  129. </div>
  130. <div class="nr" style=" border-top:3px #ddd solid; padding:8px 5px 5px 5px; color:#000;">我要使用<input name="coin" id="coin" type="text" value="<?=$row['money_own']?>" class="input0" style="width:50px" onKeyUp="if(value><?=$row['money_own']?>)value=<?=$row['money_own']?>;javascript:can_credit();"/>个金币来购买<font id="credit" style="color:red"></font>信用值,总信用值将达到<font id="credit_total" style="color:red"></font> </div>
  131. </div>
  132. <div class="clear"></div>
  133. <div style="width:100%;text-align:left; padding:0 10px"><input type="submit" class="submit" value="确认购买" <?php if(empty($row['money_own'])) echo 'disabled';?>/>
  134. &nbsp;<input type="button" onclick="parent.closeopendiv();" class="submit" value="取消" /></div>
  135. </div>
  136. </form>
  137. <script type="text/javascript">
  138. $('credit').innerHTML = <?php echo $row['money_own'];?>*<?php echo $coin_credit;?>;
  139. $('credit_total').innerHTML = parseInt($('credit').innerHTML)+parseInt(<?php echo $row[credit];?>);
  140. function can_credit(){
  141. $('credit').innerHTML = $('coin').value*<?php echo $coin_credit;?>;
  142. $('credit_total').innerHTML = parseInt($('credit').innerHTML)+parseInt(<?php echo $row[credit];?>);
  143. }
  144. </script>
  145. </div>
  146. </body>
  147. </html>