<?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/>.
*/
if (!isset($datos))
{
$datos['nombre'] = "";
$datos['x1'] = "";
$datos['y1'] = "";
$datos['x2'] = "";
$datos['y2'] = "";
$datos['descripcion'] = "";
$datos['id'] = "";
}
cabecera("",$titulo);
?>
</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">
<form name="<?=$accion?>" method="post" action="<?=$direccion?>">
<input name="form" type="hidden" value="<?=$accion?>" />
<input name="id" type="hidden" value="<?=$datos['id']?>" />
<table width="543" height="200" border="1" cellpadding="0" cellspacing="0" class="create_tabla" align="center">
<tr class="encabezado1">
<td colspan="2"><?=self::$texto->get('new.group')?></td>
</tr>
<tr>
<td width="289" ><?=self::$texto->get('nombre_grupo')?></td>
<td width="254">
<input name="name" type="text" tabindex="1" size="30" maxlength="30" value="<?=$datos['nombre']?>" /> </td>
</tr>
<tr>
<td><?=self::$texto->get('cvsi')?></td>
<td>( <input name="x1" type="text" tabindex="2" size="2" maxlength="4" value="<?=$datos['x1']?>"/> | <input name="y1" type="text" tabindex="3" size="2" maxlength="4" value="<?=$datos['y1']?>"/> )</td>
</tr>
<tr>
<td><?=self::$texto->get('cvid')?></td>
<td>( <input name="x2" type="text" tabindex="4" size="2" maxlength="4" value="<?=$datos['x2']?>" /> | <input name="y2" type="text" tabindex="5" size="2" maxlength="4" value="<?=$datos['y2']?>" /> ) </td>
</tr>
<tr>
<td><?=self::$texto->get('descripcion')?></td>
<td>
<textarea name="desc" cols="27" rows="3" tabindex="6"><?=$datos['descripcion']?></textarea> </td>
</tr>
<tr><td colspan="2" nowrap="nowrap" class="encabezado1">
<table width="200" border="0" align="center" cellpadding="2" cellspacing="0" class="encabezado1">
<tr>
<td><input type="submit" class="boton" value="<?=self::$texto->get('aceptar')?>" /></td>
<td><input type="button" class="boton" onClick="parent.location='<?=$target?>'" value="<?=self::$texto->get('cancelar')?>" /></td>
</tr>
</table>
</td>
</table>
</form>
</div>
</div>
</body>
</html>