本文整理汇总了PHP中Combo::setDisabled方法的典型用法代码示例。如果您正苦于以下问题:PHP Combo::setDisabled方法的具体用法?PHP Combo::setDisabled怎么用?PHP Combo::setDisabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Combo
的用法示例。
在下文中一共展示了Combo::setDisabled方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Combo
ORDER BY 2";
$comboSexoEmpleador = new Combo($sql, "sexoEmpleador", ($alta)?-1:$row["SA_SEXO_TITULAR"]);
$comboSexoEmpleador->setClass("select2");
$sql =
"SELECT 'F' id, 'Femenino' detalle
FROM DUAL
UNION ALL
SELECT 'M', 'Masculino'
FROM DUAL
ORDER BY 2";
$comboSexoResponsable = new Combo($sql, "sexoResponsable", ($alta)?-1:$row["SA_SEXO_CONT"]);
$comboSexoResponsable->setClass("select2");
$sql =
"SELECT tb_codigo id, tb_descripcion detalle
FROM ctb_tablas
WHERE tb_clave = 'TARJE'
AND tb_fechabaja IS NULL
ORDER BY 2";
$comboTarjetaCredito = new Combo($sql, "tarjetaCredito", (isset($rowRC["PR_ORIGENPAGO"]))?($alta)?-1:$rowRC["PR_ORIGENPAGO"]:-1);
$comboTarjetaCredito->setClass("select2");
$sql =
"SELECT 1
FROM DUAL
WHERE 1 = 2";
$comboTarjetaCreditoFalso = new Combo($sql, "tarjetaCreditoFalso");
$comboTarjetaCreditoFalso->setClass("select2");
$comboTarjetaCreditoFalso->setDisabled(true);
?>
示例2: Combo
WHERE TM_IDTAREA = :idtarea
AND TM_FECHABAJA IS NULL
AND TM_IDMOTIVO = MO_ID
AND MO_FECHABAJA IS NULL ";
if($row["TP_IDTAREA"]!='')
{
$idmotivo = $row["TP_IDMOTIVO"];
}
else
{
$idmotivo = -1;
}
$comboDetalle = new Combo($sqlDetalle, "detalleTarea_".$row["TA_ID"], $idmotivo );
$comboDetalle->setFirstItem("- SELECCIONE DETALLE TAREA -");
$comboDetalle->addParam(":idtarea",$row["TA_ID"] );
$comboDetalle->setDisabled(true);
$comboDetalle->setClass("combo");
$comboDetalle->draw();
?>
</div>
</td>
<?
$count++;
if($count == 1)
{
?>
</tr>
<?
$count = 0;
}
示例3: Combo
<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");
$sql =
"SELECT em_id id, em_detalle detalle
FROM rrhh.rem_empresas
ORDER BY 2";
$comboEmpresa = new Combo($sql, "empresa", $empresa);
$comboEmpresa->setClass("combo");
$comboEmpresa->setDisabled($habilitarEmpresa);
$comboEmpresa->setOnChange("cambiarEmpresa(-1, -1, -1)");
$sql =
"SELECT es_id id, es_detalle detalle
FROM rrhh.res_estadossistemasgestion
ORDER BY 1";
$comboEstado = new Combo($sql, "estado", $estado);
$comboEstado->setClass("combo");
$sql =
"SELECT ge_id id, ge_detalle detalle
FROM rrhh.rge_gerencias
ORDER BY 2";
$comboGerencia = new Combo($sql, "gerencia", $gerencia);
$comboGerencia->setClass("combo");
$sql =
"SELECT gr_id id, gr_detalle detalle
FROM rrhh.rgr_grupos
ORDER BY 2";
示例4: Combo
FROM DUAL";
$comboSexoHYS = new Combo($sql, "sexoHYS", $rowHYS["SEXO"]);
$comboSexoHYS->setDisabled(!$camposEnabled);
$sql =
"SELECT tb_codigo id, tb_descripcion detalle
FROM ctb_tablas
WHERE tb_clave = 'TDOC'
AND tb_codigo <> '0'
AND tb_fechabaja IS NULL
ORDER BY 2";
$comboTipoDocumento = new Combo($sql, "tipoDocumento", $row["TIPODOCUMENTORESP"]);
$comboTipoDocumento->setDisabled(!$camposDatosResponsableEnabled);
$sql =
"SELECT tb_codigo id, tb_descripcion detalle
FROM ctb_tablas
WHERE tb_clave = 'TDOC'
AND tb_codigo <> '0'
AND tb_fechabaja IS NULL
ORDER BY 2";
$comboTipoDocumentoHYS = new Combo($sql, "tipoDocumentoHYS", $rowHYS["TIPODOCUMENTO"]);
$comboTipoDocumentoHYS->setDisabled(!$camposEnabled);
$sql =
"SELECT tt_id id, tt_descripcion detalle
FROM att_tipotelefono
ORDER BY 2";
$comboTipoTelefono = new Combo($sql, "tipoTelefono", $row["TIPOTELEFONORESP"]);
$comboTipoTelefono->setDisabled(!$camposDatosResponsableEnabled);
?>