function Guardar() { $vicepresidencia = new Vicepresidencia(); if (isset($_POST['nombre']) && $_POST['nombre'] != "") { error_log("entro al guardar"); $nombre = $_POST['nombre']; $codigo = $_POST['descripcion']; $estatus = $_POST['estatus']; if ($estatus == "on") { $vicepresidencia->Insertar_Vicepresidencia($nombre, "1", $codigo); } else { $vicepresidencia->Insertar_Vicepresidencia($nombre, "0", $codigo); } header("Location: index.php?oksave"); } else { header("Location: index.php?error"); error_log("no hizo nada!!!"); } }
Sin Datos </option> </select> </td> </tr> <!-- Vicepresidencia --> <tr> <?php if($INDEXIDIOMA == 2){ echo'<td colspan="1" align="right" style="left:20px;">'.$LABELINDEX[2][324].':</td>'; }elseif($INDEXIDIOMA == 0){ echo'<td colspan="1" align="right" >Vicepresidencia:</td>'; }elseif($INDEXIDIOMA == 1){ echo'<td colspan="1" align="right" style="left:20px;">'.$LABELINDEX[1][324].':</td>'; }?> <td colspan='2' align="left" style="top:100px;"> <?php $vice = new Vicepresidencia();?> <select name="viceOpciones" id="viceOpciones" onChange=" obtener_vicepresidencia(this.value);" > <option name="viceOpciones" id="viceOpciones" value="-1"> Seleccione un Item </option> <?php foreach($vice->Load_vnombre() as $arrE){ ?> <option name="viceOpciones" id="viceOpciones" value="<?php echo $arrE['v_nombre'];?>"> <?php echo $arrE['v_nombre'];?> </option> <?php } ?> </select> </td> </tr> <?php if($_SESSION['reporte']== "Relat�rio Avan�os n�o comprovada (Saldos em Circula��o)" || $_SESSION['reporte']== "Reporte de Anticipos no Comprobados (Saldos Pendientes)"|| $_SESSION['reporte']== "Report Advances unproven (Outstanding Balances)" || $_SESSION['reporte']== "Reporte de Gastos" ||$_SESSION['reporte']== "Relat�rio despesas" ||$_SESSION['reporte']== "Expenditure Report" || $_SESSION['reporte']== "Relat�rio Fora de Aplica��o da Pol�tica" || $_SESSION['reporte']== "Reporte de Solicitudes Fuera de Pol�tica" || $_SESSION['reporte']== "Report Out of Policy Application"){?>
function Muestra() { $vicepresidencia = new Vicepresidencia(); if (isset($_GET['vicepresidencia'])) { $vicepresidencia_id = $_GET['vicepresidencia']; $vicepresidencia->Load_data($vicepresidencia_id); } else { header("Location: index.php"); } $I = new Interfaz("Usuarios:: Editar Usuario", true); include "../../lib/php/messageResources.php"; $INDEXIDIOMA = $_SESSION["idiomausuario"]; ?> <style type="text/css"> <!-- .Estilo1 {color: #FF0000} --> </style> <script language="JavaScript" src="../../lib/js/jquery/jquery-1.3.2.js" type="text/javascript"></script> <script language="JavaScript" src="../../lib/js/validateForm.js" type="text/javascript"></script> <script src="js/validaform.js" type="text/javascript"></script> <script src="js/ajaxceco.js" type="text/javascript"></script> <script type="text/javascript"> var doc; doc = $(document); doc.ready(inicializarEventos);//cuando el documento esté listo function inicializarEventos(){ } </script> <br><br> <form name="form1" method="post" action=""/> <table width="80%" align="center" cellpadding="4" cellspacing="4" border="0" bgcolor="#f4f4f4" style="padding-top: 20px;"> <tr> <td align="right"> </td> <td><strong><?php echo $LABELINDEX[$INDEXIDIOMA][328] . " " . $LABELINDEX[$INDEXIDIOMA][324]; ?> </strong></td> </tr> <tr> <td align="right"> </td> <td> <input type="hidden" name="vice_id" id="vice_id" value="<?php echo $vicepresidencia_id; ?> " readonly="readonly" style="border-color:#FFFFFF" /> </td> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][327]; ?> <span class="Estilo1">*</span>: </td> <td> <input type="text" name="nombre" id="nombre" size="70" value="<?php echo $vicepresidencia->Get_dato("v_nombre"); ?> "/> </td> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][331]; ?> : </td> <td> <input type="text" name="descripcion" id="descripcion" size="40" value="<?php echo $vicepresidencia->Get_dato("v_descripcion"); ?> "/> </td> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][28]; ?> :</td> <td> <?php if ($vicepresidencia->Get_dato("v_estatus") == "0") { ?> <input type="checkbox" name="estatus" id="estatus"/> <?php } else { ?> <input type="checkbox" name="estatus" id="estatus" checked /> <?php } ?> </td> </tr> <td colspan="2" align="center"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][345]; ?> " name="Actualizar" onclick="return validate(); "> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][219]; ?> " name="Cancelar"> </td> </tr> </table> </form> <?php $I->Footer(); }