<?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/>.
*/
$texto = Idioma::singleton();
cabecera("",$titulo);
?>
</head>
<body>
<?php
if (!isset($sql)) {
?>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="1" class="tabla_msj">
<tr class="E1"><td height="150"><?=$texto->get($error)?></td>
</tr>
<tr>
<td><input type="button" class="boton" onClick="parent.location='<?php echo $target; ?>'" value="<?=$texto->get('aceptar'); ?>"/></td>
</tr>
</table>
<?php } else { ?>
<form action="<?php echo $direccion; ?>" method="post">
<input name="query" type="hidden" value="<?php echo $sql; ?>"/>
<table align="center" width="300" class="tabla_msj">
<tr>
<td colspan="2"><?php echo $msj; ?></td>
</tr>
<tr align="center" class="E1">
<td>
<input type="submit" class="boton" value="<?=$texto->get('aceptar')?>" />
</td>
<td>
<input type="button" class="boton" onClick="parent.location='<?=$target?>'" value="<?=$texto->get('cancelar')?>" />
</td>
</tr>
</table>
</form>
<?php } ?>
</body>
</html>