<th scope="col" class="czas" abbr="czas">Czas</th> <th scope="col" class="poprawne" abbr="poprawne">Odp. pop.</th> <th scope="col" class="procent" abbr="procent">%</th> </tr> </thead> <tbody> <?php $i = 1; foreach ($players as $player) { echo "<tr title=\"{$i}\" id=\"{$player->id}\""; echo " class=\""; echo isset($last_id) && $last_id == $player->id ? "newRecord " : false; echo $i % 2 != 0 ? "odd" : "even"; echo "\">"; echo "<td class=\"position\">{$i}</td>"; $grav = GravatarClass::get_gravatar_hashed($player->hashed_email, 30); // small gravatar echo "<td class=\"gravatar\" title=\"gravatar\"><a href=\"http://pl.gravatar.com\" target=\"_blank\"><img src=\"" . $grav . "\" /></a></td>"; echo "<td class=\"tla\" title=\"{$player->user_name}\">"; //if(User::find_user($player->user_name)) { // // echo "<a href=\"" . SITE_URL . "gracze?nick=" . urlencode($player->user_name); // //echo "&gravatar=" . urlencode($lg = GravatarClass::get_gravatar_hashed($player->hashed_email, 120)); // large gravatar for profile page // echo "\" target=\"_self\">{$player->user_name}</a></td>"; // // } echo $player->user_name . "</td>"; echo "<td title=\"points\">{$player->points}</td>"; echo "<td title=\"czas\">{$player->czas} sek.</td>"; echo "<td title=\"poprawne\">{$player->poprawne} </td>"; echo "<td title=\"procent\">{$player->procent} </td>";
$wiek = "ukryty"; if ($current_user->show_wiek != 0) { $wiek = date("Y", time()) - date("Y", strtotime($current_user->birthday)); } $miasto = "ukryte"; if ($current_user->city != "") { $miasto = $current_user->city; } $degree = "ukryte"; if ($current_user->degree != "") { $degree = $current_user->degree; } if (isset($_GET['gravatar'])) { $glink = $_GET['gravatar']; } elseif (isset($_SESSION['hashed_email'])) { $glink = GravatarClass::get_gravatar_hashed($_SESSION['hashed_email'], 120); } else { $glink = "http://www.gravatar.com/avatar/"; } $percent = round($current_user->total_correct_answers * 100 / $current_user->total_questions, 0); $percent_last_game = round($current_user->last_number_correct * 100 / $current_user->last_number_questions, 1); $average_ppg = round($current_user->total_points / $current_user->started_quizes, 1); $average_pps = round($current_user->total_points / $current_user->total_time, 2); // poziom counting $level = ""; $stars = 1; $cufq = $current_user->finished_quizes; // this switch determines how many stars are shown next to users poziom(level) switch ($cufq) { case $cufq >= 10 && $cufq < 50: $level = "kapujący";