<?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('HEAD11'));
$num = count($miembros); // cantidad de miembros
?>
</head>
<body>
<div id="top"><?php include "libs/top.php"?></div>
<div id="contenido">
<div id="left"><?php $top = "admin"; include "libs/menu.php"?></div>
<div id="cuerpo">
<table width="500" border="0" align="center" cellpadding="2" cellspacing="1" class="tabla2">
<tr class="E1">
<td colspan="2"><?=$aux['nombre']?></td>
</tr>
<tr class="colm1">
<td width="50%"><?=self::$texto->get('cvsi')?></td>
<td width="50%"><?=self::$texto->get('cvid')?></td>
</tr>
<tr class="c3">
<td>( <?=$aux['x1']?> | <?=$aux['y1']?> )</td>
<td>( <?=$aux['x2']?> | <?=$aux['y2']?> )</td>
</tr>
<tr class="colm1">
<td colspan="2"><?=self::$texto->get('descripcion')?></td></tr>
<tr class="c3">
<td colspan="2"><?=$aux['descripcion']?></td>
</tr>
</table>
<form action="index.php?ctrl=Grupo&mod=modgrupo" method="post">
<input type="hidden" name="confirm" value="cg"/>
<input type="hidden" name="volver" value="<?=(int) $_GET['g']?>"/>
<table border="0" align="center" cellpadding="2" cellspacing="1" class="tabla2">
<tr class="E2">
<?php if ($_SESSION['gestion'] == 2) echo "<td width=\"10\" rowspan=\"2\"> </td>"; ?>
<td width="160" rowspan="2"><?=self::$texto->get('jugador')?> ( <?=$num?> )</td>
<td colspan=\"2\"><?=self::$texto->get('aldeas')?></td>
</tr>
<tr class="E2">
<td width="100"><?=self::$texto->get('totales')?></td>
<td width="130"><?=self::$texto->get('in.group')?></td>
</tr>
<?php
$i = 0;
if ($num) {
$alter_aldea = 0;
while ($i<$num)
{
if ($alter_aldea%2 == 0) echo "<tr class=\"c1\">\n\t";
else echo "<tr class=\"c2\">\n\t";
++$alter_aldea;
if ($_SESSION['gestion'] == 2)
echo "<td><input type=\"checkbox\" name=\"check[]\" value=\"".$miembros[$i][0]."\"></td>\n\t";
echo "<td><a href=\"index.php?ctrl=Admin&mod=ver_datos&uname=".$miembros[$i][0]."\">".$miembros[$i][0]."</a></td>\n\t";
echo "<td>".$miembros[$i][1]."</td>\n\t";
echo "<td>".$miembros[$i][2]."</td>\n";
echo "</tr>\n";
$i++;
}
if ($_SESSION['gestion'] == 2)
{
echo "<tr><td colspan=\"3\">".self::$texto->get('mover')."<select name=\"mover\">";
$num = count($grupos); $i = 0;
while ($i<$num)
{
echo "<option value=\"".$grupos[$i]['id']."\">".$grupos[$i]['nombre']."</option>";
++$i;
}
echo "</select></td>";
echo "<td align=\"left\"><input type=\"submit\" class=\"boton\" value=\"".self::$texto->get('cambiar')."\"></td></tr>";
}
} else echo "<tr><td colspan=\"3\">".self::$texto->get('no.hay')."</td></tr>";
?>
</table>
</form>
</div>
</div>
</body>
</html>