本文整理汇总了PHP中Combo::setOnBlur方法的典型用法代码示例。如果您正苦于以下问题:PHP Combo::setOnBlur方法的具体用法?PHP Combo::setOnBlur怎么用?PHP Combo::setOnBlur使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Combo
的用法示例。
在下文中一共展示了Combo::setOnBlur方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Combo
ORDER BY 2";
$comboNaturalezaLesion = new Combo($sql, "naturalezaLesion", ($cargarCampos)?$row["EW_NATURALEZA"]:-1);
$comboNaturalezaLesion->setOnBlur("getElementById('spanNaturalezaLesion').innerHTML = iif((this.value == -1), '', this.options[this.selectedIndex].text);");
$sql =
"SELECT lz_id id, lz_descripcion detalle
FROM sin.slz_lesionzona
WHERE lz_fechabaja IS NULL
ORDER BY 2";
$comboParteCuerpoLesionada = new Combo($sql, "parteCuerpoLesionada", ($cargarCampos)?$row["EW_ZONA"]:-1);
$comboParteCuerpoLesionada->setOnBlur("getElementById('spanParteCuerpoLesionada').innerHTML = iif((this.value == -1), '', this.options[this.selectedIndex].text);");
$sql =
"SELECT tb_codigo id, tb_descripcion detalle
FROM ctb_tablas
WHERE tb_clave = 'SEXOS'
AND tb_codigo <> '0'
ORDER BY 2";
$comboSexo = new Combo($sql, "sexo", ($cargarCampos)?$row["JW_SEXO"]:-1);
$comboSexo->setOnBlur("getElementById('spanSexo').innerHTML = iif((this.value == -1), '', this.options[this.selectedIndex].text);");
$sql =
"SELECT tb_codigo id, tb_descripcion detalle
FROM ctb_tablas
WHERE tb_clave = 'STIPO'
AND tb_codigo <> '0'
ORDER BY 2";
$comboTipoSiniestro = new Combo($sql, "tipoSiniestro", ($cargarCampos)?$row["EW_TIPOSINIESTRO"]:-1);
$comboTipoSiniestro->setOnBlur("getElementById('spanTipoSiniestro').innerHTML = iif((this.value == -1), '', this.options[this.selectedIndex].text);");
$comboTipoSiniestro->setOnChange("cambiaTipoSiniestro(this.value)");
?>