Advertisement
Guest User

Ranking

a guest
Jul 3rd, 2015
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.15 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3.  
  4. <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  5.  
  6. <head>
  7.  
  8. <meta http-equiv="content-type" content="text/html; charset=UTF-8"><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(n,t,e){function r(e){if(!t[e]){var o=t[e]={exports:{}};n[e][0].call(o.exports,function(t){var o=n[e][1][t];return r(o?o:t)},o,o.exports)}return t[e].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<e.length;o++)r(e[o]);return r}({QJf3ax:[function(n,t){function e(n){function t(t,e,a){n&&n(t,e,a),a||(a={});for(var u=c(t),f=u.length,s=i(a,o,r),p=0;f>p;p++)u[p].apply(s,e);return s}function a(n,t){f[n]=c(n).concat(t)}function c(n){return f[n]||[]}function u(){return e(t)}var f={};return{on:a,emit:t,create:u,listeners:c,_events:f}}function r(){return{}}var o="nr@context",i=n("gos");t.exports=e()},{gos:"7eSDFh"}],ee:[function(n,t){t.exports=n("QJf3ax")},{}],gos:[function(n,t){t.exports=n("7eSDFh")},{}],"7eSDFh":[function(n,t){function e(n,t,e){if(r.call(n,t))return n[t];var o=e();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(n,t,{value:o,writable:!0,enumerable:!1}),o}catch(i){}return n[t]=o,o}var r=Object.prototype.hasOwnProperty;t.exports=e},{}],D5DuLP:[function(n,t){function e(n,t,e){return r.listeners(n).length?r.emit(n,t,e):(o[n]||(o[n]=[]),void o[n].push(t))}var r=n("ee").create(),o={};t.exports=e,e.ee=r,r.q=o},{ee:"QJf3ax"}],handle:[function(n,t){t.exports=n("D5DuLP")},{}],XL7HBI:[function(n,t){function e(n){var t=typeof n;return!n||"object"!==t&&"function"!==t?-1:n===window?0:i(n,o,function(){return r++})}var r=1,o="nr@id",i=n("gos");t.exports=e},{gos:"7eSDFh"}],id:[function(n,t){t.exports=n("XL7HBI")},{}],loader:[function(n,t){t.exports=n("G9z0Bl")},{}],G9z0Bl:[function(n,t){function e(){var n=v.info=NREUM.info;if(n&&n.licenseKey&&n.applicationID&&f&&f.body){c(d,function(t,e){t in n||(n[t]=e)}),v.proto="https"===l.split(":")[0]||n.sslForHttp?"https://":"http://",a("mark",["onload",i()]);var t=f.createElement("script");t.src=v.proto+n.agent,f.body.appendChild(t)}}function r(){"complete"===f.readyState&&o()}function o(){a("mark",["domContent",i()])}function i(){return(new Date).getTime()}var a=n("handle"),c=n(1),u=window,f=u.document,s="addEventListener",p="attachEvent",l=(""+location).split("?")[0],d={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-515.min.js"},v=t.exports={offset:i(),origin:l,features:{}};f[s]?(f[s]("DOMContentLoaded",o,!1),u[s]("load",e,!1)):(f[p]("onreadystatechange",r),u[p]("onload",e)),a("mark",["firstbyte",i()])},{1:11,handle:"D5DuLP"}],11:[function(n,t){function e(n,t){var e=[],o="",i=0;for(o in n)r.call(n,o)&&(e[i]=t(o,n[o]),i+=1);return e}var r=Object.prototype.hasOwnProperty;t.exports=e},{}]},{},["G9z0Bl"]);</script>
  9. <title>Ranking Players - GTA:A</title>
  10. <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,400italic|Oswald">
  11. <link rel="stylesheet" type="text/css" href="css/style-v2.css">
  12. <link rel="stylesheet" type="text/css" href="css/icons.css">
  13. <link rel="stylesheet" type="text/css" href="css/lol.css">
  14.  
  15.  
  16. <style type="text/css">
  17. .stats-table img {float:left; margin-right: 4px;}
  18. .stats-table td:nth-child(n+2) {text-align: center; font-size: 16px;}
  19. .stats-table td:first-child {line-height: 48px;}
  20. .stats-table .perfomance {background: #dbdfe0;
  21. alignment-baseline:central; width: 120px; height: 24px; position: relative;}
  22. .stats-table .perfomance div {
  23.  
  24. position: absolute;
  25. -moz-box-shadow: inset 0px -10px 10px #3772DF;
  26. -webkit-box-shadow: inset 0px -10px 10px #3772DF;
  27. box-shadow: inset 0px -10px 10px #3772DF;
  28. background: #3C8ADC;
  29. height: 24px;
  30. min-width: 5px;
  31. }
  32. </style>
  33.  
  34. </head>
  35.  
  36. <body>
  37.  
  38. <div class="main-wrapper">
  39.  
  40. <br />
  41. <nav>
  42. <ul>
  43. <li><a href="#">Ranking</a></li>
  44. </ul>
  45. </nav>
  46.  
  47. <div class="clearfix">
  48. <section class="container">
  49.  
  50. <div class="side-column">
  51. <hr>
  52. <hr>
  53.  
  54. <ul>
  55.  
  56. <li class="active">Players</li>
  57.  
  58. </ul>
  59.  
  60.  
  61. <div id="loved" class="block">
  62. </div>
  63.  
  64. </div>
  65.  
  66. <div class="content">
  67.  
  68.  
  69.  
  70. <div class="block big">
  71. <h3>Players</h3>
  72. <table id="stats" class="stats-table">
  73. <thead>
  74. <tr>
  75. <th style="text-align:center">Nome</th>
  76. <th style="text-align:center">Matou</th>
  77. <th style="text-align:center">Morreu</th>
  78. <th style="text-align:center">Media</th>
  79. <th style="text-align:center">Duelos Ganhos</th>
  80. <th style="text-align:center">Duelos Perdidos</th>
  81. <th style="text-align:center">Pontos de Rachas</th>
  82. <th style="text-align:center">Nivel</th>
  83. <th style="text-align:center">Status</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87.  
  88.  
  89. <?php
  90.  
  91. // Seleciona o Banco de Dados
  92.  
  93. require_once('config.php');
  94. //query SQL
  95. $strSQL = "SELECT * FROM `contas` ORDER BY `Kills` DESC LIMIT 0,15 ";
  96.  
  97. // Executa a query (o recordset $rs contém o resultado da query)
  98. $rs = mysql_query($strSQL);
  99.  
  100. // Loop pelo recordset $rs
  101. // Cada linha vai para um array ($row) usando mysql_fetch_array
  102. $cont = 0;
  103. $listar = 15;
  104. while($row = mysql_fetch_array($rs)) {
  105.  
  106. // Escreve o valor da coluna FirstName (que está no array $row)
  107. $cont ++;
  108. $listar++;
  109.  
  110.  
  111. echo "<tr><td style='text-align: center'>".$row['Username']."</td>
  112. <td style='text-align: center'>".$row['Kills']."</td>
  113. <td style='text-align: center'>".$row['Deaths']."</td>
  114. <td style='text-align: center'>".$row['Ratio']."</td>
  115. <td style='text-align: center'>".$row['DuelsWon']."</td>
  116. <td style='text-align: center'>".$row['DuelsLost']."</td>
  117. <td style='text-align: center'>".$row['RacePoints']."</td>
  118. <td style='text-align: center'>".$row['Level']."</td>
  119. <td style='text-align: center'>".$row['StatsLine']."</td>
  120.  
  121. </tr>
  122.  
  123.  
  124. "; } // Encerra a conexão mysql_close(); ?>
  125.  
  126. <!-- "<td style="text-align:center">Ahri</td><td style="text-align:center">1</td><td style="text-align:center">1</td><td><div align="center"><div class="perfomance"><div style="width:11.1%"></div></div></div><span class="hidden">0.5</span></td>
  127. <td style="text-align:center">25</td><td style="text-align:center">6</td><td style="text-align:center">8.5</td><td style="text-align:center">184.5</td>
  128. <td style="text-align:center">Online</td>--> </tbody>
  129. </table>
  130. </div>
  131.  
  132. </div>
  133. </section>
  134. </div>
  135.  
  136. <footer>
  137. &copy; GTA Adrenaline.
  138. </footer>
  139.  
  140. </div>
  141.  
  142. <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"beacon-2.newrelic.com","licenseKey":"d4d346e6d9","applicationID":"4639818","transactionName":"Y1MBbEICXxcFUkNZVloZNkpZTEIRCVxYXlxGGRNKXwVYCAEcRERYQF8QTFkAQkoUWUc=","queueTime":0,"applicationTime":50,"atts":"TxQCGgoYTBk=","errorBeacon":"bam.nr-data.net","agent":"js-agent.newrelic.com\/nr-515.min.js"}</script></body>
  143. <script type="text/javascript">adblock=true;</script>
  144. <script src="js/jquery-2.1.1.min.js"></script>
  145. <script src="js/jquery.tablesorter.min.js"></script>
  146. <script src="js/jquery.cookie.min.js"></script>
  147. <script type="text/javascript">
  148. var a = "br",
  149. b = "k1Ng",
  150. x = "-history",
  151. u = $.cookie,
  152. e = u(a + x),
  153. f = e ? e.split(",") : [],
  154. z = encodeURIComponent,
  155. w = decodeURIComponent,
  156. y = "-love",
  157. v = '<a href="/player/resume/';
  158. for (g in f)
  159. if (0 == b.localeCompare(f[g])) {
  160. f.splice(g, 1);
  161. break
  162. }
  163. 3 == f.length && f.shift();
  164. f.push(b);
  165. u(a + x, f.join(","), {
  166. expires: 365,
  167. path: "/"
  168. });
  169. for (var g in f) $(v + a + "/" + z(f[g]) + '">' + w(f[g]) + "</a></span><br/>").appendTo("#historic");
  170.  
  171. function d() {
  172. var c = u(a + y),
  173. c = c ? c.split(",") : [];
  174. $("#loved").empty();
  175. for (var h in c) $('<span><i class="icon-heart" style="color: #C4B430;margin-right: 5px;"></i>'+ v + a + "/" + z(c[h]) + '">' + w(c[h]) + '</a></span><br/>').appendTo("#loved").hide().fadeIn("medium"), 0 == b.localeCompare(c[h])
  176. }
  177.  
  178. $("#love-check").click(function() {
  179. var c = u(a + y),
  180. c = c ? c.split(",") : [];
  181. for (h in c)
  182. if (0 == b.localeCompare(c[h])) {
  183. c.splice(h, 1);
  184. break
  185. }
  186. $("#love-icon").hasClass("icon-heart-empty") && $("#love-icon").addClass("icon-heart").removeClass("icon-heart-empty") && c.push(b) || $("#love-icon").removeClass("icon-heart").addClass("icon-heart-empty");
  187. u(a + y, c.join(","), {
  188. expires: 365,
  189. path: "/"
  190. });
  191. d()
  192. });
  193. d();
  194.  
  195. var c = u(a + y), c = c ? c.split(",") : [];
  196. for (h in c) if (0 == b.localeCompare(c[h])) {$("#love-icon").addClass("icon-heart").removeClass("icon-heart-empty");break}
  197.  
  198. ((adblock) && ($('.sustain').html('<a href="//teemo.com.br/adblock"><img src="//static.teemo.com.br/teemo/sustain.gif" class="sustain-blocked"/></a>')));
  199.  
  200. var _gaq = _gaq || [];
  201. _gaq.push(['_setAccount', 'UA-43435133-1']);
  202. _gaq.push(['_trackPageview']);
  203. (function() {
  204. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  205. ga.src = ('https:' == document.location.protocol ? 'https://' : '//') + 'stats.g.doubleclick.net/dc.js';
  206. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  207. })();
  208.  
  209. // add parser through the tablesorter addParser method
  210. $.tablesorter.addParser({
  211. // set a unique id
  212. id: 'champion',
  213. is: function(s) {
  214. return false;
  215. },
  216. format: function(s) {
  217. return s.toLowerCase();
  218. },
  219.  
  220. type: 'text'
  221. });
  222. $.tablesorter.addParser({
  223. // set a unique id
  224. id: 'winrate',
  225. is: function(s) {
  226. return false;
  227. },
  228. format: function(s) {
  229. return s;
  230. },
  231.  
  232. type: 'numeric'
  233. });
  234.  
  235.  
  236. $(function() {
  237. $("#stats").tablesorter({
  238. headers: {
  239. 0: {
  240. sorter:'champion'
  241. },
  242. 3: {
  243. sorter:'winrate'
  244. }
  245. }
  246. });
  247. });
  248.  
  249. </script>
  250. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement