function AccionesEdit($id) { if (!$id) { echo "<div id=error>ERROR: no se encontro ningun area con ese Id ? le falta Id </div>"; } else { $acc = new Accion($id); $activ = $acc->getEstado() == 1 ? "checked='checked'" : ""; ?> <form name="form_nueva_accion" action="<?php echo $_SERVER['PHP_SELF']; ?> ?opcion=update&id=<?php echo $id; ?> " method="post"> <table width="382" align="center" id="mantenimiento"> <TR> <TD colspan="5" valign="top" class='subtit'><div align="center">EDITAR DATOS DE ACCION </div></TD> </TR> <TR> <TD colspan="5" valign="top"> </TD> </TR> <tr> <td width="18" align="right" class="Estilo21">(*)</td> <td width="94" align="right" class="Estilo22"><div align="left">Nombre</div></td> <td width="4" align="right"><div align="left"> :</div></td> <td colspan="2" align="left"><div align="left"> <input name="txtnombre" type="text" id="txtnombre" value="<?php echo $acc->getNombre(); ?> " size="40" class="caja"> </div></td> </tr> <tr> <td align="right"> </td> <td class="Estilo22"><div align="left">Abreviatura</div></td> <td class="Estilo22"><div align="left">:</div></td> <td colspan="2" align="left"><div align="left"> <input name="abreviatura" type="text" id="abreviatura" value="<?php echo $acc->getAbreviatura(); ?> " class="caja"/> </div></td> </tr> <tr> <td> <td class="Estilo22"><div align="left">Descripcion </div> <td class="Estilo22"><div align="left">:</div> <td colspan="2"><div align="left"> <input name="descripcion" type="text" id="descripcion" size="40" value="<?php echo $acc->getDescripcion(); ?> " class="caja"/> </div> </tr> <tr> <td> <td class="Estilo22"><div align="left">Activo </div> <td class="Estilo22"><div align="left">:</div> <td colspan="2"><div align="left"> <input name="activo" type="checkbox" id="activo" value="1" <?php echo $activ; ?> /> </div> </tr> <tr><td> <td> <td> <td colspan="2"> </tr> <tr> <td height="27" align="center"> </td> <td height="27" align="center"> </td> <td height="27" align="center"> </td> <td width="79" height="27" align="center"><input type="submit" name="enviar" value="Guardar" class="boton"/></td> <td width="163" align="center"><input class="boton" type="reset" name="cancelar3" value="Cancelar" onclick="javascript:window.history.go(-1)" /></td> </tr> </table> </form> <?php } }