public function listaSede($codEmpresa, $codSede, $disabled) { $o_LMantenimientoGeneral = new LMantenimientoGeneral(); $nomEmpresa = "%"; $arrayCombo = $o_LMantenimientoGeneral->getArrayListaEmpresas($nomEmpresa); $o_Combo = new Combo($arrayCombo); $opcionesHTML_01 = $o_Combo->getOptionsHTML($codEmpresa); $nomSede = "%"; $arrayCombo = $o_LMantenimientoGeneral->getArrayListaSedes($codEmpresa, $nomSede); $o_Combo = new Combo($arrayCombo); $opcionesHTML_02 = $o_Combo->getOptionsHTML(); //$opcionesHTML_02 = $o_Combo->getOptionsHTML($codSede); // $row_ochg_empresa = "onchange=\"myajax.Link('../../ccontrol/control/control.php?p1=comboEmpresas&p2='+document.getElementById('cboEmpresa').value+'&p3='+document.getElementById('cboSede').value,'divEmpresas');\""; //$row_ochg_sede = "onchange=\"myajax.Link('../../ccontrol/control/control.php?p1=listaAmbientesFisicos&p2='+document.getElementById('cboSede').value,'contenido_detalle');\""; $row_ini = "<table align=\"center\" ><tr align=\"center\\><td align=\"center\\>"; //$row_med="</td><td>"; $row_fin = "</td></tr></table>"; /* $row_empresa = "<select tabindex=1 id=\"cboEmpresa\" name=\"cboEmpresa\" onkeypress=\"return validFormSalt('cbo',this,event,'cb_provincia')\" $disabled ".$row_ochg." title=\"Empresa\">"; $row_sede = "<select tabindex=2 id=\"cboSede\" name=\"cboSede\" onkeypress=\"return validFormSalt('cbo',this,event,'cb_distrito')\" $disabled ".$row_ochg." style=\"width:100px\" title=\"Sede\">"; */ // $row_empresa = "<select tabindex=1 id=\"cboEmpresa\" name=\"cboEmpresa\" disabled title=\"Empresa\">"; $row_sede = "<select tabindex=2 id=\"cboSede\" name=\"cboSede\\ align=\"center\\ {$disabled} title=\"Sede\">"; $row_fin_cb = "</select>"; $comboHTML = $row_ini . $row_sede . $opcionesHTML_02 . $row_fin_cb . $row_fin; return $comboHTML; }