From dea2e3753f41b936d63bacd07a676e5287b3847c Mon Sep 17 00:00:00 2001 From: radiskull Date: Wed, 23 Nov 2011 21:20:09 +0000 Subject: [PATCH] Bug in Herausforderung-Anzeige gefixt Tabellenrand bei NPC-Anzeige entfernt --- ag/clan/kampf_info.php | 88 +++++++++++++++++++++++---------------- ag/gm/include/npc.inc.php | 2 +- 2 files changed, 53 insertions(+), 37 deletions(-) diff --git a/ag/clan/kampf_info.php b/ag/clan/kampf_info.php index 7e4ad14..ebefef2 100644 --- a/ag/clan/kampf_info.php +++ b/ag/clan/kampf_info.php @@ -109,6 +109,7 @@ function displayShowChallenge($clan_challenge_id, $user) { $slots = array(); ?> +
'; echo 'KampfAnsehen'; foreach($fight_ids as $fight_id) { @@ -239,17 +240,17 @@ function displayShowOldChallenge($clan_challenge_id, array $user) { echo ''; echo ''; if($host_char['char_id'] !== NULL) - echo displayCharLink($host_char['char_id'], $host_char['char_name']); + echo displayCharLink($host_char['char_id'], $host_char['char_name']); else - echo $host_char['char_name']; - echo ' vs. '; + echo $host_char['char_name']; + echo ' vs. '; if($guest_char['char_id'] !== NULL) - echo displayCharLink($guest_char['char_id'], $guest_char['char_name']); - else - echo $guest_char['char_name']; + echo displayCharLink($guest_char['char_id'], $guest_char['char_name']); + else + echo $guest_char['char_name']; echo ''; echo 'anschauen'; - echo ''; + echo ''; } echo ''; } @@ -333,19 +334,28 @@ function displayClanFightMenu($user) { - + - + '; - echo ''; - echo ''; + $requester_clan = getClan($challenge['clan_requester']); + $challenged_clan = getClan($challenge['clan_challenged']); + + //unterscheidung zwischen herausforder und herausgeforderter + if($user_clan['id'] == $challenge['clan_requester']) { + echo ''; + echo ''; + echo ''; + } else { + echo ''; + echo ''; + echo ''; + } } ?>
HerausfordererClan Datum Typ AnzahlOptionStatus
'.$clan['clanname'].''.formatTimestamp($challenge['challenged_time']).''.getFightType($challenge['type']).''.$challenge['anzahl_chars'].'annehmen |'; - echo 'ablehnen
'.$challenged_clan['clanname'].''.formatTimestamp($challenge['challenged_time']).''.getFightType($challenge['type']).''.$challenge['anzahl_chars'].'ausstehend
'.$requester_clan['clanname'].''.formatTimestamp($challenge['challenged_time']).''.getFightType($challenge['type']).''.$challenge['anzahl_chars'].'annehmen |'; + echo 'ablehnen
@@ -356,7 +366,11 @@ function displayClanFightMenu($user) { Keine + + Keine + + - Beendete Herausforderungen + Beendete Herausforderungen Keine + Keine + '; - echo ' '.$challenged_clan['clanname'].''; - echo ''.anzeigen.''; + $participating_clan_ids = getParticipatingClanIDs($oci); + foreach ($participating_clan_ids as $pci) + if($pci != $user_clan['id']) { + $challenged_clan = getClan($pci); + echo ''; + echo ' '.$challenged_clan['clanname'].''; + echo ''.anzeigen.''; echo ''; - } + } } } ?> diff --git a/ag/gm/include/npc.inc.php b/ag/gm/include/npc.inc.php index 219fb4a..2ed0396 100644 --- a/ag/gm/include/npc.inc.php +++ b/ag/gm/include/npc.inc.php @@ -325,7 +325,7 @@ function displayNPC($action, $task, $charid, $table, $page, $data, $att_ids){ echo ''."\n"; echo "\t".''."\n"; echo "\t".''."\n"; - echo "\t".''."\n"; + echo "\t".'
'."\n"; if($action == ACTION_EDIT){ echo "\t".''."\n"; if($task == TASK_EDIT) {