<?php
/*
* Alliances Manager (Gestionador de Alianzas) - Travian
* Copyright (C) 2008-12 Viva Mayer, Francisco MesÃas <hide@address.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
cabecera("",self::$texto->get('HEAD21'));
$num = count($datos); ?>
</head>
<body>
<div id="top"><?php include("libs/top.php") ?></div>
<div id="contenido">
<div id="left"><?php $top = 'informes'; include("libs/menu.php") ?></div>
<div id="cuerpo">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" class="tabla2">
<tr class="E1">
<td colspan="8"><?=self::$texto->get('titulo.rg')?></td>
</tr>
<tr class="E2">
<td width="150"><?=self::$texto->get('jugador')?> (<?=$num?>)</td>
<td width="50"><?=self::$texto->get('aldeas')?></td>
<td><?=self::$texto->get('t.ofensivas')?></td>
<td><?=self::$texto->get('t.defensivas')?></td>
<td><?=self::$texto->get('t.espias')?></td>
<td><?=self::$texto->get('t.maquinaria')?></td>
<td width="100"><?=self::$texto->get('grupo')?></td>
<td width="100"><div title="<?=self::$texto->get('dias.desde')?>"><?=self::$texto->get('ultimo.login')?></div></td>
</tr>
<?php
$cont = 0; $alter = 0;
while ($cont < $num)
{
// Alternamos los colores de las filas
if ($alter%2 == 0) echo "<tr class=\"c1\">";
else echo "<tr class=\"c2\">";
++$alter;
echo "<td><a href=\"index.php?ctrl=Admin&mod=ver_datos&uname=".$datos[$cont]['player']."\">".$datos[$cont]['player']."</a></td>\n";
echo "<td>".$datos[$cont]['tot_aldeas']."</td>\n";
echo "<td>".$datos[$cont]['tot_off']."</td>\n";
echo "<td>".$datos[$cont]['tot_def']."</td>\n";
echo "<td>".$datos[$cont]['tot_espias']."</td>\n";
echo "<td>".$datos[$cont]['tot_maquinaria']."</td>\n";
echo "<td><a href=\"index.php?ctrl=Grupo&mod=detalles&g=".$datos[$cont]['grupo']['id']."\">".$datos[$cont]['grupo']['nombre']."</a></td>\n";
echo "<td>".$datos[$cont]['login']."</td>\n";
echo "</tr>\n";
$cont++;
}
?>
</table>
<?php unset($datos); ?>
</div>
</div>
</body>
</html>