member.htm 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!--{template common/header}-->
  2. <div id="pt" class="bm cl">
  3. <div class="z">
  4. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
  5. <a href="misc.php?mod=ranklist">{lang ranklist}</a> <em>&rsaquo;</em>
  6. {lang ranklist_member}
  7. </div>
  8. </div>
  9. <style id="diy_style" type="text/css"></style>
  10. <!--[diy=diyranklisttop]--><div id="diyranklisttop" class="area"></div><!--[/diy]-->
  11. <div id="ct" class="ct2_a wp cl">
  12. <div class="mn">
  13. <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
  14. <div class="bm bw0">
  15. <h1 class="mt">{lang ranklist_member}</h1>
  16. <ul class="tb cl">
  17. <li{$a_actives[show]}><a href="misc.php?mod=ranklist&type=member">{lang auction_ranking}</a></li>
  18. <li{$a_actives[beauty]}><a href="misc.php?mod=ranklist&type=member&view=beauty">{lang ranklist_beauty}</a></li>
  19. <li{$a_actives[handsome]}><a href="misc.php?mod=ranklist&type=member&view=handsome">{lang ranklist_handsome}</a></li>
  20. <li{$a_actives[credit]}><a href="misc.php?mod=ranklist&type=member&view=credit">{lang credit_ranking}</a></li>
  21. <li{$a_actives[friendnum]}><a href="misc.php?mod=ranklist&type=member&view=friendnum">{lang friend_num_ranking}</a></li>
  22. <li{$a_actives[invite]}><a href="misc.php?mod=ranklist&type=member&view=invite">{lang ranklist_invite}</a></li>
  23. <li{$a_actives[post]}><a href="misc.php?mod=ranklist&type=member&view=post">{lang ranklist_post_num}</a></li>
  24. <!--{if helper_access::check_module('blog')}-->
  25. <li{$a_actives[blog]}><a href="misc.php?mod=ranklist&type=member&view=blog">{lang ranklist_blog}</a></li>
  26. <!--{/if}-->
  27. <li{$a_actives[onlinetime]}><a href="misc.php?mod=ranklist&type=member&view=onlinetime">{lang ranklist_onlinetime}</a></li>
  28. </ul>
  29. <script type="text/javascript">
  30. function checkCredit(id) {
  31. var maxCredit = parseInt($space[credit]);
  32. var idval = parseInt($(id).value);
  33. if(/^(\d+)$/.test(idval) == false) {
  34. showDialog('{lang credit_is_not_number}', 'notice', '{lang reminder}', null, 0);
  35. return false;
  36. } else if(idval > maxCredit) {
  37. showDialog('{lang credit_title_message}', 'notice', '{lang reminder}', null, 0);
  38. return false;
  39. } else if(idval < 1) {
  40. showDialog('{lang credit_title_error}', 'notice', '{lang reminder}', null, 0);
  41. return false;
  42. }
  43. if(id == 'showcredit') {
  44. var price = parseInt($('unitprice').value);
  45. if(/^(\d+)$/.test(price) == false) {
  46. showDialog('{lang unitprice_is_not_number}', 'notice', '{lang reminder}', null, 0);
  47. return false;
  48. } else if(price < 1) {
  49. showDialog('{lang unitprice_title_error}', 'notice', '{lang reminder}', null, 0);
  50. return false;
  51. } else if(price > idval+parseInt($myallcredit)) {
  52. showDialog('{lang price_can_not_be_higher_than_the_total}', 'notice', '{lang reminder}', null, 0);
  53. return false;
  54. }
  55. }
  56. return true;
  57. }
  58. </script>
  59. <!--{if $creditsrank_change}-->
  60. <p id="orderby" class="tbmu">
  61. <a href="misc.php?mod=ranklist&type=member&view=credit&orderby=all" id="all"{if $now_choose == 'all'} class="a"{/if}>{lang all}</a>
  62. <!--{if $extcredits}-->
  63. <!--{loop $extcredits $key $credit}-->
  64. <span class="pipe">|</span><a href="misc.php?mod=ranklist&type=member&view=credit&orderby=$key" id="$key"{if $now_choose == $key} class="a"{/if}>{$credit[title]}</a>
  65. <!--{/loop}-->
  66. <!--{/if}-->
  67. </p>
  68. <!--{/if}-->
  69. <!--{if $now_pos >= 0}-->
  70. <div class="tbmu">
  71. <!--{if $_GET[view]=='show'}-->
  72. <h3 class="mbn">{lang friend_top_note}:</h3>
  73. <!--{if $space[unitprice]}-->
  74. {lang your_current_bid}: $space[unitprice] {$extcredits[$creditid][unit]},{lang current_ranking} <span style="font-size:20px;color:red;">$now_pos</span> ,{lang make_persistent_efforts}!
  75. <!--{else}-->
  76. {lang ranking_message_0}
  77. <!--{/if}-->
  78. <br />{lang ranking_message_1}
  79. <br />{lang ranking_message_2}
  80. <!--{else}-->
  81. <!--{if $_GET[view]=='credit'}-->
  82. <a href="home.php?mod=spacecp&ac=credit">{lang self_current_credit}<!--{if $now_choose=='all'}-->{lang credits}<!--{else}-->{$extcredits[$now_choose][title]}<!--{/if}-->: $mycredits</a>
  83. <!--{elseif $_GET[view]=='friendnum'}-->
  84. <a href="home.php?mod=space&do=friend">{lang self_current_friend_num}: $space[friends]</a>
  85. <!--{/if}-->
  86. ,{lang current_ranking} <span style="font-size:20px;color:red;">$now_pos</span> ,{lang make_persistent_efforts}!
  87. <!--{/if}-->
  88. <!--{if $cache_mode}-->
  89. <p>
  90. {lang top_100_update}
  91. </p>
  92. <!--{/if}-->
  93. </div>
  94. <!--{if $_GET[view]=='show' && $_G[uid]}-->
  95. <!--{if $creditid}-->
  96. <div class="tbmu mbm pbw cl">
  97. <form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=top" onsubmit="return checkCredit('showcredit');" class="z">
  98. <table>
  99. <caption><h3 class="mbn">{lang i_ranking}</h3></caption>
  100. <tr>
  101. <th class="pbn">
  102. {lang my_ranking_declaration}
  103. <p class="xg1">{lang max_char_ranking}</p>
  104. </th>
  105. <th class="pbn">
  106. {lang show_unitprice}
  107. <p class="xg1"><!--{if $_G[uid]}--><a href="home.php?mod=spacecp&ac=common&op=modifyunitprice" id="a_modify_unitprice" onclick="showWindow(this.id, this.href, 'get', 0);">({lang edit_price})</a><!--{/if}--></p>
  108. </th>
  109. <th class="pbn">
  110. {lang increase_bid}{$extcredits[$creditid][title]}
  111. <p class="xg1">{lang not_exceed}{$extcredits[$creditid][title]} $space[credit] {$extcredits[$creditid][unit]}</p>
  112. </th>
  113. </tr>
  114. <tr>
  115. <td><input type="text" name="note" class="px" value="" size="25" /></td>
  116. <td>
  117. &nbsp;<input type="text" id="unitprice" name="unitprice" class="px vm" value="1" size="7" onblur="checkCredit('showcredit');" />
  118. </td>
  119. <td>
  120. &nbsp;<input type="text" id="showcredit" name="showcredit" class="px vm" value="100" size="7" onblur="checkCredit('showcredit');" />&nbsp;
  121. <button type="submit" name="show_submit" class="pn vm"><em>{lang increase}</em></button>
  122. </td>
  123. </tr>
  124. </table>
  125. <input type="hidden" name="showsubmit" value="true" />
  126. <input type="hidden" name="formhash" value="{FORMHASH}" />
  127. </form>
  128. <form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=top" onsubmit="return checkCredit('stakecredit');" class="y">
  129. <table>
  130. <caption><h3 class="mbn">{lang help_friend_in_top}</h3></caption>
  131. <tr>
  132. <td class="pbn">
  133. {lang friend_need_help}
  134. <p class="xg1">{lang please_input_friend_name}</p>
  135. </td>
  136. <td class="pbn">
  137. {lang handsel_bid}{$extcredits[$creditid][title]}
  138. <p class="xg1">{lang not_exceed}{$extcredits[$creditid][title]} $space[credit] {$extcredits[$creditid][unit]}</p>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td><input type="text" name="fusername" class="px" value="" size="15" /></td>
  143. <td>
  144. &nbsp;<input type="text" name="stakecredit" id="stakecredit" class="px vm" value="20" size="7" onblur="checkCredit('stakecredit');" />&nbsp;
  145. <button type="submit" name="friend_submit" class="pn vm"><em>{lang handsel}</em></button>
  146. </td>
  147. </tr>
  148. </table>
  149. <input type="hidden" name="friendsubmit" value="true" />
  150. <input type="hidden" name="formhash" value="{FORMHASH}" />
  151. </form>
  152. </div>
  153. <!--{else}-->
  154. <div class="mbm bbda emp">{lang close_ranking_note}</div>
  155. <!--{/if}-->
  156. <!--{/if}-->
  157. <!--{/if}-->
  158. <!--{template ranklist/member_list}-->
  159. </div>
  160. <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
  161. </div>
  162. <div class="appl">
  163. <!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
  164. <!--{subtemplate ranklist/side_left}-->
  165. <!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
  166. </div>
  167. </div>
  168. <!--[diy=diyranklistbottom]--><div id="diyranklistbottom" class="area"></div><!--[/diy]-->
  169. <!--{template common/footer}-->