<?php
$queryCastle = $SQL->query("SELECT `name`, `id` FROM `guilds` WHERE `real_castle` = 1 ORDER BY id DESC LIMIT 1")->fetch();
if ($queryCastle) {
$guild = new Guild();
$guild->load($queryCastle["id"]);
if ($guild->isLoaded()) {
$guildName = $guild->getName();
$guildLogo = $guild->getGuildLogoLink();
Pergunta
arielsonx3 1
<?php
$queryCastle = $SQL->query("SELECT `name`, `id` FROM `guilds` WHERE `real_castle` = 1 ORDER BY id DESC LIMIT 1")->fetch();
if ($queryCastle) {
$guild = new Guild();
$guild->load($queryCastle["id"]);
if ($guild->isLoaded()) {
$guildName = $guild->getName();
$guildLogo = $guild->getGuildLogoLink();
$url = "?subtopic=guilds&action=show&guild=".urlencode($guild->getID())."";
}
}
?>
<div id="Topbar" class="Toplevelbox" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/top_level_top.gif);">
<div style="background:url(<?PHP echo $layout_name; ?>/images/themeboxes/castle/swords.gif);width: 32px;height: 32px;position: relative;margin-left: 10px;margin-top: 1px;"></div>
<span class="topleveltext">War Castle</span>
<div id="RankingBox" class="Themebox" style="height: auto;display: table;margin-top: 27px;">
<div id="menusrank"></div>
<table style="font-family: sans-serif; font-size: 12px; padding: 0px 12px; height: auto; display: block; background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/castle/box-bg.gif); margin-bottom: 5px; margin-top: -6px">
<tr>
<td style="padding-left: 9px;">
<div class="warText">
<?php if ($url) { ?>
<a <?php echo (($url) ? "href='". $url ."'" : ''); ?>>
<?php if ($guildLogo) { ?>
<img class="guildcastleimg" src="<?php echo (($guildLogo) ? $guildLogo : ''); ?>">
<?php } ?>
<div class="guildname">
<?php echo $guildName; ?>
</div>
</a>
<?php } else { ?>
<img class="guildcastleimg" src="images/default_guild_logo.gif">
<div class="guildname">
O Castle Tá Sem Guild Dominante!
</div>
<?php } ?>
<br>
<span class="castletime">
<span id="<?php echo $elementId; ?>"></span>
<script>
updateCastleTimer(<?php echo json_encode($elementId); ?>, <?php echo json_encode($openTime); ?>);
</script>
</span>
</div>
</td>
</tr>
</table>
<div class="Bottom3" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/castle/box-bottom.gif);"></div>
</div>
</div>
Então galera alguem pode me ajudar a fazer mostra guild dominante.
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados