<?php while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { $hero = strtoupper($row["hero"]); $heroName = convEnt2($row["heroname"]); $itemName = convEnt2($Item["shortname"]); $itemName2 = convEnt2($Item["shortname"]); $totals = $row["total"]; ?> <a href="<?php echo $website; ?> ?hero=<?php echo $hero; ?> " <?php echo ShowToolTip($heroName . " used " . $itemName2 . " " . $totals . "x", "", 200, 21, 15); ?> ><img width="48" height="48" src="<?php echo $website; ?> img/heroes/<?php echo $hero; ?> .gif" alt="<?php echo $heroName; ?> " /></a> <?php } $db->free($result); ?>
function OS_RatePlayer($Player, $Slot, $PlayersList, $PlayerRate = 0, $voted = 0, $TotalVotes = 0) { if (isset($_GET["game"]) and os_is_logged() and isset($_SESSION["bnet_username"]) and $voted == 0) { $gid = (int) $_GET["game"]; foreach ($PlayersList as $player) { if (trim(strtolower($player)) == strtolower($_SESSION["bnet_username"])) { $CanRate = 1; } else { $voted = 1; } } if (strtolower($_SESSION["bnet_username"]) != strtolower($Player)) { if (isset($CanRate)) { $voted = 0; ?> <div id="ratings-<?php echo $Slot; ?> "> <!-- <input type="button" class="RatingStar" <?php echo ShowToolTip("Rate 1: NOOB!", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> onclick="showhide('comment-<?php echo $Slot; ?> ')"/> --> <a class="RatingStar" href="javascript:;" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '1', '<?php echo $Slot; ?> ')" <?php echo ShowToolTip("Rate 1: NOOB!", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> ></a> <a class="RatingStar" href="javascript:;" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '2', '<?php echo $Slot; ?> ')" <?php echo ShowToolTip("Rate 2: Bad player", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> ></a> <a class="RatingStar" href="javascript:;" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '3', '<?php echo $Slot; ?> ')" <?php echo ShowToolTip("Rate 3: Not bad", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> ></a> <a class="RatingStar" href="javascript:;" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '4', '<?php echo $Slot; ?> ')" <?php echo ShowToolTip("Rate 4: Good player", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> ></a> <a class="RatingStar" href="javascript:;" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '5', '<?php echo $Slot; ?> ')" <?php echo ShowToolTip("Rate 5: Awesome player", OS_THEME_PATH . 'images/star-1.png', 200, 32, 32); ?> ></a> <span id="rate-<?php echo $Slot; ?> "></span> <div id="comment-<?php echo $Slot; ?> " style="display:none;"> <textarea style="width: 200px; height:60px;" id="rateComment-<?php echo $Slot; ?> " maxlength="255"></textarea> <input type="button" value="Submit" class="menuButtons" onclick="RatePlayer('<?php echo $Player; ?> ', '<?php echo $gid; ?> ', '<?php echo $rate; ?> ', '<?php echo $slot; ?> ', 'test' )" /> </div> </div> <?php } } else { ?> <div>It's you, nab! :-)</div><?php } } $PlayerRate = ROUND($PlayerRate); if ($voted == 1) { $LeftStars = 5 - $PlayerRate; if ($TotalVotes >= 1) { for ($x = 1; $x <= $PlayerRate; $x++) { ?> <img src="<?php echo OS_THEME_PATH; ?> images/star-1.png" width="24" height="24" alt="rating star" /><?php } } if ($LeftStars >= 1 and $TotalVotes >= 1) { for ($x = 1; $x <= $LeftStars; $x++) { ?> <img src="<?php echo OS_THEME_PATH; ?> images/star-0.png" width="24" height="24" alt="rating star" /> <?php } } if ($TotalVotes >= 1) { ?> ( votes: <?php echo $TotalVotes; ?> )<?php } } }
echo $lang["score"]; ?> </th> <th width="70"><?php echo $lang["games"]; ?> </th> <th width="40"><span <?php echo ShowToolTip($lang["longest_streak"] . " / " . $lang["losing_streak"], OS_HOME . 'img/winner.png', 230, 32, 32); ?> ><img src="<?php echo OS_HOME; ?> img/streak.gif" width="20" /></span></th> <th width="30"><span <?php echo ShowToolTip($lang["zero_deaths"], OS_HOME . 'img/winner.png', 210, 32, 32); ?> ><img src="<?php echo OS_HOME; ?> img/winner.png" width="20" /></span></th> <th width="90"><?php echo $lang["wld"]; ?> </th> <th width="70"><?php echo $lang["wl_percent"]; ?> </th> <th width="120"><?php echo $lang["kda"];
><b><?php echo $lang["stayratio"]; ?> :</b></span></td> <td width="160"><?php echo $User["stayratio"]; ?> % <?php echo OS_StayRatioIcon($User["stayratio"]); ?> (<?php echo $User["totalstayratio"]; ?> %)</td> <td class="padLeft" width="60"><span <?php echo ShowToolTip($lang["longest_streak"], OS_HOME . 'img/streak.gif', 190, 24, 24); ?> ><b><?php echo $lang["streak"]; ?> :</b></span></td> <td width="160"><?php echo $User["maxstreak"]; ?> (<?php echo $User["totalstreak"]; ?> )</td> </tr> </table>
$banned = ""; } if ($row["leaver"] >= 1) { $col = 'red'; } else { $col = '#000'; } if ($row["forced_gproxy"] >= 1) { $GProxy = '(G)'; } else { $GProxy = ''; } ?> <tr class="row"> <td><img <?php echo ShowToolTip($Country, OS_HOME . 'img/flags/' . $Letter . '.gif', 130, 21, 15); ?> class="imgvalign" width="21" height="15" src="<?php echo OS_HOME; ?> img/flags/<?php echo $Letter; ?> .gif" alt="" /> <a target="_blank" href="<?php echo OS_HOME; ?> ?u=<?php echo $row["id"]; ?> "><?php
$xstyle = ''; } if (isset($PlayersData[1]) and $PlayersData[1] == 1 and !isset($team)) { ?> | <?php $team = 1; } $TooltipData = "<strong>" . $PlayersData[3] . " (" . $PlayersData[5] . "ms)</strong><div>" . $country . "</div><div>" . $PlayersData[4] . "</div>"; if ($PlayersData[2] >= 6) { $fixslot = 1; } else { $fixslot = 0; } ?> <a <?php echo ShowToolTip($TooltipData, OS_HOME . 'img/flags/' . $letter . '.gif', 210, 21, 15); ?> target="_blank" href="<?php echo OS_HOME; ?> ?u=<?php echo $PlayersData[3]; ?> " onclick="hidetooltip();" > <span class="col<?php echo $PlayersData[2] - $fixslot; ?> " style="font-size:11px;<?php echo $xstyle; ?> "><?php
<div><?php echo OS_is_ban_perm($Ban["expiredate"], $lang["permanent_ban"]); ?> </div> <div><?php echo OS_ban_expired($Ban["expiredate"], "", ""); ?> </div> </td> <td width="180" class="font12"> <b><?php echo $Ban["gamename"]; ?> </b> <div><span <?php echo ShowToolTip($Ban["reason_full"], '', 180, 0, 0); ?> ><?php echo $Ban["reason"]; ?> </span> </div> </td> <td width="130" class="font12"> <?php echo $Ban["date"]; ?> </td> <td width="120" class="font12"><?php echo $Ban["admin"]; ?> </td>
</table> <?php } ?> <h4 class="padLeft"><?php echo $lang["latest_comments"]; ?> </h4> <table> <?php foreach ($MemberComments as $Comments) { ?> <tr> <td width="220"><a <?php echo ShowToolTip($Comments["text"], OS_HOME . 'img/arrow.png', 290, 21, 15); ?> href="<?php echo OS_HOME; ?> ?post_id=<?php echo $Comments["post_id"]; ?> #comments"><?php echo $Comments["news_title"]; ?> </a></td> <td><?php echo $Comments["date"]; ?> </td>
echo ShowToolTip($lang["denies_per_game"], OS_HOME . 'img/winner.png', 180, 32, 32); ?> ><b><?php echo $lang["cdpg"]; ?> :</b></span></td> <td><?php echo $Player["cd"]; ?> <?php echo OS_CheckValue($MostCD, $Player["player"]); ?> </td> </tr> <tr> <td><span <?php echo ShowToolTip($lang["neutrals_per_game"], OS_HOME . 'img/winner.png', 180, 32, 32); ?> ><b><?php echo $lang["npg"]; ?> :</b></span></td> <td><?php echo $Player["ne"]; ?> <?php echo OS_CheckValue($MostNE, $Player["player"]); ?> </td> </tr> </table> </div> <?php
if ($row["stats"] == 1) { ?> <img <?php echo ShowToolTip('<div>Ranked game</div>', OS_HOME . 'adm/ranked.png', 100, 16, 16); ?> src="<?php echo OS_HOME; ?> adm/ranked.png" width="16" height="16" class="imgvalign" alt="ranked" /><?php } ?> <?php if ($row["stats"] == 0) { ?> <img <?php echo ShowToolTip('<div>Unranked game</div>', OS_HOME . 'adm/ranked.png', 100, 16, 16); ?> src="<?php echo OS_HOME; ?> adm/unranked.png" width="16" height="16" class="imgvalign" alt="ranked" /><?php } ?> <a href="<?php echo OS_HOME; ?> adm/?games&edit=<?php echo $row["id"]; ?> "><span class="winner<?php echo $row["winner"];
</th> <th width="180"><?php echo $lang["kda"]; ?> </th> </tr> <?php foreach ($SearchData as $Search) { ?> <tr class="row"> <td width="180" class="padLeft font12"> <?php if (isset($Search["letter"])) { ?> <img <img <?php echo ShowToolTip($Search["country"], OS_HOME . 'img/flags/' . strtoupper($Search["letter"]) . ".gif", 130, 21, 15); ?> class="imgvalign" width="21" height="15" src="<?php echo OS_HOME; ?> img/flags/<?php echo $Search["letter"]; ?> .gif" alt="" /> <?php } ?> <a href="<?php echo OS_HOME; ?> ?u=<?php