function Muestra() { include "../../lib/php/messageResources.php"; $INDEXIDIOMA = $_SESSION["idiomausuario"]; $cronograma = new CronogramaPagos(); if (isset($_GET['crono_id'])) { $id_pagos = $_GET['crono_id']; $cronograma->Load_Cronograma($id_pagos); } else { header("Location: index.php"); } $I = new Interfaz("Cronograma :: Editar Cronograma", true); ?> <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 language="JavaScript" src="../../lib/js/valida_form.js" type="text/javascript"></script> <br><br> <form name="formCPagos" 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][358]; ?> </strong></td> </tr> <tr> <td align="right"> </td> <td><input type="hidden" name="id_pagos" id="id_pagos" value="<?php echo $id_pagos; ?> " readonly="readonly" style="border-color:#FFFFFF" /></td> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][55]; ?> <span class="Estilo1">*</span>: </td> <td> <? $cnn = new conexion(); $query = sprintf("SELECT p_id, p_nombre FROM pais ORDER BY p_id"); $rst = $cnn->consultar($query); $fila = mysql_num_rows($rst); ?> <select name="pagos_pais" id="pagos_pais"> <option value="-1" ><?php echo $LABELINDEX[$INDEXIDIOMA][346]; ?> </option> <?php if ($fila > 0) { while ($fila = mysql_fetch_assoc($rst)) { ?> <option value="<?php echo $fila['p_id']; ?> " <?php if ($fila['p_id'] == $cronograma->Get_dato('cro_pais')) { echo "selected = 'selected'"; } ?> ><?php echo $fila['p_nombre']; ?> </option> <?php } } else { echo "<option id='-1' value='-1'>" . $LABELINDEX[$INDEXIDIOMA][347] . "</option>"; } ?> </select> </td> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][355]; ?> <span class="Estilo1">*</span>: </td> <td> <select name="pagos_dia" id="pagos_dia"> <option value="-1"><?php echo $LABELINDEX[$INDEXIDIOMA][346]; ?> </option> <?php $arreglo_dias = array($LABELINDEX[$INDEXIDIOMA][359], $LABELINDEX[$INDEXIDIOMA][360], $LABELINDEX[$INDEXIDIOMA][361], $LABELINDEX[$INDEXIDIOMA][362], $LABELINDEX[$INDEXIDIOMA][363], $LABELINDEX[$INDEXIDIOMA][364], $LABELINDEX[$INDEXIDIOMA][365]); //$arreglo_valor = array("Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado", "Domingo"); $j = 1; foreach ($arreglo_dias as $i => $value) { ?> <option value="<?php echo $j; ?> " <?php if ($cronograma->Get_dato("cro_dia") == $j) { echo 'selected = "selected" '; } ?> ><?php echo $arreglo_dias[$i]; ?> </option> <?php $j++; } ?> </select> </tr> <tr> <td align="right" width="30%"><?php echo $LABELINDEX[$INDEXIDIOMA][356]; ?> <span class="Estilo1">*</span>: </td> <td><input type="text" name="pagos_registro" id="pagos_registro" size="5" value="<?php echo $cronograma->Get_dato("cro_dia_registro"); ?> " onkeypress="return validaNum(event);" maxlength="2" /></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][345]; ?> " name="Actualizar" onclick="return validate_cronograma();"> <input type="submit" value="<?php echo $LABELINDEX[$INDEXIDIOMA][219]; ?> " name="Cancelar"> </td> </tr> </table> </form> <?php $I->Footer(); }