score_coin.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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-left: 30px;
  64. padding-top:10px;
  65. }
  66. .cont_1 {
  67. width: auto;
  68. line-height: 24px;
  69. color: #a7a7aa;
  70. }
  71. .nr {
  72. height:auto;
  73. overflow:auto
  74. }
  75. .nr span.l{ display:block; width:350px; }
  76. .nr span.r{ display:block; width:350px; }
  77. .nr em {
  78. font-style: normal;
  79. color: #FF0000;
  80. }
  81. .nr b {
  82. color: #006acd;
  83. }
  84. .input0 {
  85. border: 1px solid #b9cde3;
  86. height: 18px;
  87. vertical-align: middle;
  88. width: 150px;
  89. line-height: 18px;
  90. padding-left:5px;
  91. padding-right:5px;
  92. }
  93. textarea {
  94. border: 1px solid #b9cde3;
  95. height: 40px;
  96. width: 436px;
  97. vertical-align: middle;
  98. padding-left:5px;
  99. padding-right:5px;
  100. }
  101. input.submit{border:1px solid;cursor:pointer;border-color:#fff #848484 #848484 #fff !important;background:#1B72AF !important;color:#FFFFFF !important; line-height:20px;}
  102. -->
  103. </style>
  104. <script type="text/javascript">
  105. function $(id) {
  106. return document.getElementById(id);
  107. }
  108. </script>
  109. </head>
  110. <body>
  111. <div id="center">
  112. <form action="box.php" method="post">
  113. <input name="part" value="score_coin" type="hidden">
  114. <input name="action" value="post" type="hidden">
  115. <div class="cont">
  116. <div class="cont_1">
  117. <div class="nr"><b>您当前拥有积分 <font color="red" id="scorenow"><?=$row['score']?></font> 分,可兑换 <font color="red" id="cancoin"></font>金币</b></div>
  118. <div class="nr">
  119. <span class="r">我要使用<input name="score" id="score" type="text" value="<?=$row['score']?>" class="input0" style="width:50px" onKeyUp="if(value><?=$row[score]?>)value=<?=$row[score]?>;javascript:can_coin();"/>个积分来兑换 <font id="coin"></font> 金币</span>
  120. </div>
  121. </div>
  122. <div class="clear"></div>
  123. <div style="width:100%;text-align:left;"><input type="submit" class="submit" value="确认兑换" <?php if(empty($row['score'])) echo 'disabled';?>/>
  124. &nbsp;<input type="button" onclick="parent.closeopendiv();" class="submit" value="取消" /></div>
  125. </div>
  126. </form>
  127. <script type="text/javascript">
  128. $('coin').innerHTML = $('cancoin').innerHTML = Math.floor($('scorenow').innerHTML/<?php echo $mymps_global["cfg_score_fee"];?>);
  129. function can_coin(){
  130. $('coin').innerHTML = Math.floor($('score').value/<?php echo $mymps_global["cfg_score_fee"];?>);
  131. }
  132. </script>
  133. </div>
  134. </body>
  135. </html>