
25/04/2008, 09:50
|
| | Fecha de Ingreso: diciembre-2005
Mensajes: 74
Antigüedad: 19 años, 2 meses Puntos: 0 | |
Re: Pasar 2 valores por parametro <select name="cbx_meses" class="TextBox2" onChange="mostrar(this.value)">
<?php
$Obj_Cronograma = new Cronograma();
$Arreglo = array();
$Obj_Cronograma->consultaGeneraldist(&$Arreglo);
//echo "valor".$Arreglo[$indice]["codigo"];
$Obj_Cronograma->consultar($_POST["cbx_meses"]);
//$Obj_Cronograma = new Cronograma();
//$Arreglo = array();
for($indice = 0; $indice < count($Arreglo); $indice++){
//echo "<option value='".$Arreglo[$i]["codigo"]."' selected>".$Arreglo[$i]["nombre"]." ".$Arreglo[$i]["apellido"]."</option>";
if($_POST["cbx_meses"] == $Arreglo[$indice]["mes"])
echo "<option value='".$Arreglo[$indice]["codigo"]."'selected>".$Arreglo[$indice]["mes"]." ".$Arreglo[$indice]["aniolectivo"]."</option>";
else//{
echo "<option value='".$Arreglo[$indice]["codigo"]."'>".$Arreglo[$indice]["mes"]." ".$Arreglo[$indice]["aniolectivo"]."</option>";
//$Arreglo[$i]["nombre"]." ".$Arreglo[$i]["apellido"]."
//echo "<option value='".$Arreglo[$indice]["aniolectivo"]."' selected>".$Arreglo[$indice]["aniolectivo"]."</option>"; }
}
?>
</select> |