function Muestra() { include "../../lib/php/messageResources.php"; $INDEXIDIOMA = $_SESSION["idiomausuario"]; $I = new Interfaz("Usuarios:: Nuevo Usuario", true); ?> <style type="text/css"> <!-- .Estilo1 {color: #FF0000} --> </style> <br><br> <form name="form1" method="post"/> <table width="80%" align="center" cellpadding="4" cellspacing="4" border="0" bgcolor="#f4f4f4" style="padding-top: 20px;"> <tr> <td> </td> <td colspan="4" align="center"> <strong><?php echo $LABELINDEX[$INDEXIDIOMA][441]; ?> </strong> </td> <td> </td> </tr> <tr> <td width="2%"> </td> <td colspan="2" align="right" width="33%"> <?php echo $LABELINDEX[$INDEXIDIOMA][327]; ?> <span class="Estilo1">*</span>:</td> <td colspan="2"> <input type="text" name="nombre" id="nombre" size="63" /> </td> <td width="2%"> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][0]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="text" name="user" id="user" size="40" onKeypress="return bloqueaEspacio(event);"/> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][1]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="password" name="passwd" id="passwd" size="40" onKeypress="return bloqueaEspacio(event);"/> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][112]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="password" name="passwd2" id="passwd2" size="40" onKeypress="return bloqueaEspacio(event);"/> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][96]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="text" name="email" id="email" size="40" onKeypress="return bloqueaEspacio(event);"/> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="right"> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"><strong><?php echo $LABELINDEX[$INDEXIDIOMA][442]; ?> </strong></td> <td> </td> </tr> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][443]; ?> :</td> <td> <input type=checkbox name="normal" id="normal" /> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 1:</td> <td> <input type=checkbox name="av1" id="av1" /> </td> <td> </td> </tr> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][444]; ?> :</td> <td> <input type=checkbox name="administrador" id="administrador" /> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 2:</td> <td> <input type=checkbox name="av2" id="av2" /> </td> <td> </td> </tr> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][446]; ?> :</td> <td> <input type=checkbox name="uafi" id="uafi" /> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 3:</td> <td> <input type=checkbox name="av3" id="av3" /> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][447]; ?> :</td> <td> <input type=checkbox name="aprobador" id="aprobador" /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="right"> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"><strong><?php echo $LABELINDEX[$INDEXIDIOMA][182]; ?> </strong></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][78]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <?php $cluster = new Cluster(); ?> <select name="cluster_id" id="cluster_id" onChange="cargarPaises(this.value)"> <option name="cluster_id" id="cluster_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][448]; ?> </option> <?php foreach ($cluster->Load_all(1) as $arrE) { ?> <option name="cluster_id" id="cluster_id" value="<?php echo $arrE['c_id']; ?> "> <?php echo $arrE['c_nombre']; ?> </option> <?php } ?> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][55]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="pais_id" id="pais_id" onChange="cargarSociedades(this.value)" > <option name="pais_id" id="pais_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][58]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="sociedad_id" id="sociedad_id" onChange="cargarCecos(this.value)" > <option name="sociedad_id" id="sociedad_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][450]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="ceco_id" id="ceco_id" onChange="cargarJefes(this.value)" > <option name="ceco_id" id="ceco_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][451]; ?> :</td> <td colspan="2"><input type="text" name="telefono" id="telefono" size="20" onKeyPress="return validaNum(event)" /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][452]; ?> :</td> <td colspan="2"><input type="text" name="extension" id="extension" size="20" onKeyPress="return validaNum(event)" /></td> <td> </td> </tr> <!-- <tr> <td> </td> <td colspan="2" align="right">No. Tarjeta Crédito<span class="Estilo1">*</span>:</td> <td colspan="2"><input type="text" name="no_tarjeta" id="no_tarjeta" size="20" /></td> <td> </td> </tr> --> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][453]; ?> :</td> <td colspan="2"><input type="text" name="no_tarjeta_corp" id="no_tarjeta_corp" size="20" /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][454]; ?> :</td> <td colspan="2"><input type="text" name="no_tarjeta_viajero" id="no_tarjeta_viajero" size="20" /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][455]; ?> :</td> <td colspan="2"><input type="text" name="no_acreedor" id="no_acreedor" size="20" /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][456]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <?php //$cluster=new Cluster(); ?> <select name="nivel_id" id="nivel_id" > <option name="nivel_id" id="nivel_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][448]; ?> </option> <?php $Usu = new Usuario(); foreach ($Usu->Load_niveles(1) as $arrE) { ?> <option name="nivel_id" id="nivel_id" value="<?php echo $arrE['j_id']; ?> "> <?php echo $arrE['j_nombre']; ?> </option> <?php } ?> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][440]; ?> : </td> <td colspan="2"> <select name="jefe_id" id="jefe_id" > <option name="jefe_id" id="jefe_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][28]; ?> :</td> <td colspan="2"> <input type=checkbox name="estatus" id="estatus" /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][116]; ?> " name="registrar" onclick="return validaUsuarioDuplicado();"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][219]; ?> " name="cancelar"> </td> <td> </td> </tr> </table> </form> <?php $I->Footer(); }
$_SESSION['reporte'] = $_GET['reporte']; } echo "<center><h3>".$_SESSION['reporte']."</h3></center>"; ?> <FORM ACTION="reporte.php" METHOD="post" name="formReporte"> <table align='center', width='30%' > <!-- Cluster --> <tr> <td colspan='1' align='right' style="left:20px;">Cluster:</td> <td colspan='2' align="left" style="top:100px;"> <?php $cluster = new Cluster();?> <select name="clusterOpciones" id="clusterOpciones" onChange="obtener_pais(this.value); inicializa_vice();obtener_vicepresidencia_cluster(this.value);clus(this.value);"> <option name="clusterOpciones" id="clusterOpciones" value=" "> Selecciona un Cluster </option> <?php foreach($cluster->Load_all(1) as $arrE){ ?> <option name="clusterOpciones" id="clusterOpciones" value="<?php echo $arrE['c_nombre'];?>"> <?php echo $arrE['c_nombre'];?> </option> <?php } ?> </select> </td> </tr> <!-- Pais --> <tr> <?php if($INDEXIDIOMA == 2){ echo'<td colspan="1" align="right" style="left:20px;">'.$LABELINDEX[2][424].':</td>'; }elseif($INDEXIDIOMA == 0){ echo'<td colspan="1" align="right" >Pais:</td>'; }elseif($INDEXIDIOMA == 1){ echo'<td colspan="1" align="right" style="left:20px;">'.$LABELINDEX[1][55].':</td>';
function Muestra() { include "../../lib/php/messageResources.php"; $INDEXIDIOMA = $_SESSION["idiomausuario"]; $Usu = new Usuario(); if (isset($_GET['usuario_id'])) { $usuario_id = $_GET['usuario_id']; $Usu->Load_Usuario_By_ID($usuario_id); } else { header("Location: index.php"); } $I = new Interfaz("Usuarios:: Editar Usuario", true); ?> <style type="text/css"> <!-- .Estilo1 {color: #FF0000} --> </style> <br><br> <form name="form1" method="post"/> <table width="80%" align="center" cellpadding="4" cellspacing="4" border="0" bgcolor="#f4f4f4" style="padding-top: 20px;"> <tr> <td> </td> <td colspan="4" align="center"> <strong><?php echo $LABELINDEX[$INDEXIDIOMA][441]; ?> </strong> </td> <td> </td> </tr> <tr> <td width="2%"> </td> <td colspan="2" align="right" width="33%"> <?php echo $LABELINDEX[$INDEXIDIOMA][327]; ?> <span class="Estilo1">*</span>:</td> <td colspan="2"> <input type="text" name="nombre" id="nombre" size="63" value="<?php echo $Usu->Get_dato("u_nombre"); ?> " /> </td> <td width="2%"> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][0]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="text" name="user" id="user" size="40" onKeypress="return bloqueaEspacio(event);" value="<?php echo $Usu->Get_dato("u_usuario"); ?> " /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][1]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="password" name="passwd" id="passwd" size="40" onKeypress="return bloqueaEspacio(event);" value="<?php echo $Usu->Get_dato("u_passwd"); ?> " /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][112]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="password" name="passwd2" id="passwd2" size="40" onKeypress="return bloqueaEspacio(event);" value="<?php echo $Usu->Get_dato("u_passwd"); ?> " /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][96]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <input type="text" name="email" id="email" size="40" onKeypress="return bloqueaEspacio(event);" value="<?php echo $Usu->Get_dato("u_email"); ?> " /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="right"> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"><strong><?php echo $LABELINDEX[$INDEXIDIOMA][442]; ?> </strong></td> <td> </td> </tr> <? $Usu2 = new Usuario(); $normal = ""; $administrador = ""; $av1 = ""; $av2 = ""; $av3 = ""; $uafi = ""; foreach($Usu2->Load_tipo_usuario_by_id($usuario_id) as $datos){ if($datos['tu_nombre'] == "Normal"){ $normal = "checked"; } if($datos['tu_nombre'] == "Administrador"){ $administrador = "checked"; } if($datos['tu_nombre'] == "Area FI"){ $uafi = "checked"; } if($datos['tu_nombre'] == "Agencia1"){ $av1 = "checked"; } if($datos['tu_nombre'] == "Agencia2"){ $av2 = "checked"; } if($datos['tu_nombre'] == "Agencia3"){ $av3 = "checked"; } } ?> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][443]; ?> :</td> <td> <input type=checkbox name="normal" id="normal" <? echo $normal ?>/> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 1:</td> <td> <input type=checkbox name="av1" id="av1" <? echo $av1 ?> /> </td> <td> </td> </tr> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][444]; ?> :</td> <td> <input type=checkbox name="administrador" id="administrador" <? echo $administrador ?> /> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 2:</td> <td> <input type=checkbox name="av2" id="av2" <? echo $av2 ?> /> </td> <td> </td> </tr> <tr> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][446]; ?> :</td> <td> <input type=checkbox name="uafi" id="uafi" <? echo $uafi ?> /> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][445]; ?> 3:</td> <td> <input type=checkbox name="av3" id="av3" <? echo $av3 ?> /> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][447]; ?> :</td> <td> <input type=checkbox name="aprobador" id="aprobador" <? if($Usu->Get_dato("u_aprobador")==1){echo "checked";} ?> /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="right"> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"><strong><?php echo $LABELINDEX[$INDEXIDIOMA][182]; ?> </strong></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][78]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <?php $cluster = new Cluster(); ?> <select name="cluster_id" id="cluster_id" onChange="cargarPaises(this.value)"> <option name="cluster_id" id="cluster_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][448]; ?> </option> <?php foreach ($cluster->Load_all(1) as $arrE) { ?> <option name="cluster_id" id="cluster_id" value="<?php echo $arrE['c_id']; ?> "> <?php echo $arrE['c_nombre']; ?> </option> <?php } ?> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][55]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="pais_id" id="pais_id" onChange="cargarSociedades(this.value)" > <option name="pais_id" id="pais_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][58]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="sociedad_id" id="sociedad_id" onChange="cargarCecos(this.value)" > <option name="sociedad_id" id="sociedad_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][450]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <select name="ceco_id" id="ceco_id" onChange="cargarJefes(this.value)" > <option name="ceco_id" id="ceco_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][451]; ?> :</td> <td colspan="2"><input type="text" name="telefono" id="telefono" size="20" onKeyPress="return validaNum(event)" value="<?php echo $Usu->Get_dato("telefono"); ?> " /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][452]; ?> :</td> <td colspan="2"><input type="text" name="extension" id="extension" size="20" onKeyPress="return validaNum(event)" value="<?php echo $Usu->Get_dato("extension"); ?> " /></td> <td> </td> </tr> <!-- <tr> <td> </td> <td colspan="2" align="right">No. Tarjeta Crédito<span class="Estilo1">*</span>:</td> <td colspan="2"><input type="text" name="no_tarjeta" id="no_tarjeta" size="20" value="<?php echo $Usu->Get_dato("notarjetacredito"); ?> " /></td> <td> </td> </tr> --> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][453]; ?> :</td> <td colspan="2"><input type="text" name="no_tarjeta_corp" id="no_tarjeta_corp" size="20" value="<?php echo $Usu->Get_dato("notarjetacorp"); ?> "/></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][454]; ?> :</td> <td colspan="2"><input type="text" name="no_tarjeta_viajero" id="no_tarjeta_viajero" size="20" value="<?php echo $Usu->Get_dato("notarjetaviajero"); ?> "/></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right"><?php echo $LABELINDEX[$INDEXIDIOMA][455]; ?> :</td> <td colspan="2"><input type="text" name="no_acreedor" id="no_acreedor" size="20" value="<?php echo $Usu->Get_dato("noacreedorsap"); ?> " /></td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][456]; ?> <span class="Estilo1">*</span>: </td> <td colspan="2"> <?php //$cluster=new Cluster(); ?> <select name="nivel_id" id="nivel_id" > <option name="nivel_id" id="nivel_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][448]; ?> </option> <?php foreach ($Usu->Load_niveles(1) as $arrE) { ?> <option name="nivel_id" id="nivel_id" value="<?php echo $arrE['j_id']; ?> "> <?php echo $arrE['j_nombre']; ?> </option> <?php } ?> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"> <?php echo $LABELINDEX[$INDEXIDIOMA][440]; ?> : </td> <td colspan="2"> <select name="jefe_id" id="jefe_id" > <option name="jefe_id" id="jefe_id" value="-1"> <?php echo $LABELINDEX[$INDEXIDIOMA][449]; ?> </option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][28]; ?> :</td> <td colspan="2"> <input type=checkbox name="estatus" id="estatus" <? if($Usu->Get_dato("u_estatus")==1){echo "checked";} ?> /> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="4" align="center"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][345]; ?> " name="actualizar" onclick="return validaUsuarioDuplicado();"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][219]; ?> " name="cancelar"> </td> <td> </td> </tr> </table> </form> <?php $I->Footer(); }