Guest User

Untitled

a guest
Oct 21st, 2016
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. <?php include_once "config.php";?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  7. <link rel="stylesheet" type="text/css" href="css/styles.css">
  8. <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
  9. <script type="text/javascript" src="js/bootstrap.min.js"></script>
  10. <script type="text/javascript" src="js/paginator3000.js"></script>
  11. <script type="text/javascript">
  12. function showstat(serverID, playerID) {
  13. if(serverID && playerID)
  14. window.location = "?category=playerstat&sid="+serverID+"&pid="+playerID;
  15. else
  16. window.location = "?category=serverstat&sid="+serverID;
  17. }
  18. function showtopmenu(serverID) {
  19. window.location = "?category=showtopmenu&sid="+serverID;
  20. }
  21. function showweapons(serverID) {
  22. window.location = "?category=showweapons&sid="+serverID;
  23. }
  24. function topweapon(serverID,weaponNAME) {
  25. window.location = "?category=topweapon&sid="+serverID+"&weapon="+weaponNAME;
  26. }
  27. function topkills(serverID) {
  28. window.location = "?category=topkills&sid="+serverID;
  29. }
  30. function topacuracity(serverID) {
  31. window.location = "?category=topacuracity&sid="+serverID;
  32. }
  33. function toponline(serverID) {
  34. window.location = "?category=toponline&sid="+serverID;
  35. }
  36. </script>
  37. <title>Статистика ироков CityLine</title>
  38. </head>
  39. <body>
  40. <div id="main">
  41. <div class="navbar navbar-default" role="navigation">
  42. <div class="navbar-header">
  43. <a class="navbar-brand" href="<?php echo ROOT_URL; ?>">Статистика ироков CityLine</a>
  44. </div>
  45. <div class="navbar-collapse collapse">
  46. <ul class="nav navbar-nav navbar-right">
  47. <?php if(isset($_GET['category'])) { ?>
  48. <li>
  49. <form class="navbar-form navbar-right" role="form" method="get" action="index.php">
  50. <div class="form-group">
  51. <input type="hidden" name="category" value="search">
  52. <input type="hidden" name="sid" value=<?php echo $_GET['sid']; ?>>
  53. <input type="text" name="search" required="required" placeholder="SteamID / Nickname" class="form-control">
  54. </div>
  55. <button type="submit" class="btn btn-primary">Поиск</button>
  56. </form>
  57. </li>
  58. <?php } ?>
  59. </ul>
  60. </div>
  61. </div>
  62. </div>
  63.  
  64.  
  65.  
  66. <?php
  67. if ($_GET['category'] != 'playerstat')
  68. include_once 'graph.php';
  69. ?>
  70.  
  71.  
  72.  
  73. <div id="info">
  74. <?php
  75. if(isset($_GET['category']) && ($_GET['category'] == 'showweapons' || $_GET['category'] == 'topweapon' || $_GET['category'] == 'topkills' || ($_GET['category'] == 'topacuracity') || $_GET['category'] == 'toponline' || $_GET['category'] == 'serverstat' || $_GET['category'] == 'pagination'))
  76. {
  77. if(isset($_GET['sid']))
  78. $bd_table = "rankme".$_GET['sid'];
  79. $page = 'top.php';
  80. }
  81. else if(isset($_GET['category']) && ($_GET['category'] == 'showtopmenu'))
  82. {
  83. echo '<div style="padding-left: 35%;padding-right: 35%;padding-bottom:10px;padding-top:10px;">
  84. <table class="table table-striped table-bordered">
  85. <tr><th colspan="2" style="text-align:center;">Выберите категорию</th></tr>
  86. <tr><td style="text-align:center;" onclick="showweapons('.$_GET['sid'].');"><a style="color:#ff6c24;" href="#">ТОП по оружию</a></td><td style="text-align:center;" onclick="topkills('.$_GET['sid'].');"><a style="color:#ff6c24;" href="#">ТОП по убийствам</a></td></tr>
  87. <tr><td style="text-align:center;" onclick="topacuracity('.$_GET['sid'].');"><a style="color:#ff6c24;" href="#">ТОП по меткости</a></td><td style="text-align:center;" onclick="toponline('.$_GET['sid'].');"><a style="color:#ff6c24;" href="#">ТОП по онлайну</a></td></tr>';
  88. echo '</table></div>';
  89. }
  90. else if(isset($_GET['category']) && ($_GET['category'] == 'search'))
  91. {
  92. if(isset($_GET['sid']))
  93. $bd_table = "rankme".$_GET['sid'];
  94. $page = 'search.php';
  95. }
  96. else if (isset($_GET['category']) && ($_GET['category'] == 'playerstat'))
  97. {
  98. if(isset($_GET['sid']))
  99. $bd_table = "rankme".$_GET['sid'];
  100. $page = 'showplayer.php';
  101. }
  102. else
  103. {
  104. $i=0;
  105. echo '<div class="players table-responsive"><table class="table table-striped table-hover">
  106. <tr><th style="width:75%;">Серверы</th><th>ТОП по очкам</th><th>Расширенный ТОП</th></tr>';
  107. foreach($server_names as $names) {
  108. $i++;
  109. echo'<tr><td style="color:#5147E2;">';echo $names; echo'</td><td onclick="showstat(';echo $i; echo ',0);"><a style="color:#ff6c24;" href="#">Просмотреть</a></td></td><td onclick="showtopmenu(';echo $i; echo ');"><a style="color:#ff6c24; href="#">Подробнее</a></td></tr>';
  110. }
  111. echo '</table></div>';
  112. }
  113. include_once $page;
  114. ?>
  115. <?php if($_GET['category'] == 'playerstat') { ?>
  116. <div style="clear:both;margin-bottom:-15px"></div>
  117. <?php } ?>
  118. </div>
  119. <div class="footer">
  120. <p>&copy;&nbsp;CityLine. WEB статистика игроков RankME. <a style="color:blue;font-weight:bold;">by Cronos</a></p>
  121. </div>
  122. </body>
  123. </html>
Add Comment
Please, Sign In to add comment