Корректировка вывода принадлежности к событию.
[cswow.git] / include / faction_table.php
blobf902b7e035ead8382bada82a455fdac735ea837a
1 <?php
3 function noBorderFactionTable($faction)
5 global $game_text;
6 echo '<table class=factiontip cellspacing=0>';
7 echo '<tbody>';
8 echo '<tr><td class=name>'.$faction['name'].'</td></tr>';
9 if ($faction['team'])
10 echo '<tr><td>'.getFactionName($faction['team']).'</td></tr>';
11 if ($faction['details'])
12 echo '<tr><td>'.$faction['details'].'</td></tr>';
13 echo '</tbody></table>';
15 function generateFactionTable($faction)
17 echo "<table class=border cellspacing=0 cellpadding=0><tbody>";
18 echo "<tr><td class=btopl></td><td class=btop></td><td class=btopr></td></tr>";
19 echo "<tr><td class=bl></td><td class=bbody>";
20 noBorderFactionTable($faction);
21 echo "</td><td class=br></td></tr>";
22 echo "<tr><td class=bbottoml></td><td class=bbottom></td><td class=bbottomr></td></tr>";
23 echo "</tbody></table>";