• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Combo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Combo的典型用法代码示例。如果您正苦于以下问题:PHP Combo类的具体用法?PHP Combo怎么用?PHP Combo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Combo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: comboTipoDocumento

 public function comboTipoDocumento($optionsHTML)
 {
     $o_LTesoreria = new LTesoreria();
     $arrayCombo = $o_LTesoreria->tipoDocumento();
     //print_r($arrayCombo);
     $o_Combo = new Combo($arrayCombo);
     $comboHTML = $o_Combo->getOptionsHTML($optionsHTML);
     return $comboHTML;
 }
开发者ID:gianpascal,项目名称:yachay,代码行数:9,代码来源:ActionTesoreria.php


示例2: comboTipoDocumento

 public function comboTipoDocumento($optionsHTML)
 {
     $o_LPersona = new LPersona();
     $arrayCombo = $o_LPersona->seleccionarTipoDocumentoBusqueda();
     //$arrayCombo=array('dni','le','array');
     //print_r($arrayCombo);
     $o_Combo = new Combo($arrayCombo);
     $comboHTML = $o_Combo->getOptionsHTML($optionsHTML);
     return $comboHTML;
 }
开发者ID:gianpascal,项目名称:yachay,代码行数:10,代码来源:ActionPersona.php


示例3: combos

 public function combos()
 {
     $product_id = null;
     if ($this->uri->segment(3) !== false) {
         $product_id = $this->uri->segment(3);
     }
     $variants = Thing::getVariants($product_id);
     $type_a = array();
     $type_b = array();
     //get all options
     foreach ($variants as $variant) {
         $fields = $variant->getFields();
         $type_a[] = $fields['option2']->getValue();
         $type_b[] = $fields['option3']->getValue();
     }
     //remove duplicates
     $type_a = array_unique($type_a);
     $type_b = array_unique($type_b);
     foreach ($type_a as $a) {
         foreach ($type_b as $b) {
             $combos[] = Combo::load($a, $b);
         }
     }
     //encode json
     $comboJson = array();
     foreach ($combos as $combo) {
         $comboJson[] = $combo->toJson();
     }
     echo json_encode($comboJson, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_QUOT);
 }
开发者ID:rajtrivedi2001,项目名称:shopify_app,代码行数:30,代码来源:request.php


示例4: Render

 function Render()
 {
     global $Translation;
     $eo['silentErrors'] = true;
     $result = sql($this->Query . ' limit ' . datalist_auto_complete_size, $eo);
     if ($eo['error'] != '') {
         $this->HTML = error_message(htmlspecialchars($eo['error']) . "\n\n<!--\n{$Translation['query:']}\n {$this->Query}\n-->\n\n");
         return;
     }
     $this->ItemCount = db_num_rows($result);
     $combo = new Combo();
     $combo->Class = $this->Class;
     $combo->Style = $this->Style;
     $combo->SelectName = $this->SelectName;
     $combo->SelectedData = $this->SelectedData;
     $combo->SelectedText = $this->SelectedText;
     $combo->SelectedClass = 'SelectedOption';
     $combo->ListType = $this->ListType;
     $combo->ListBoxHeight = $this->ListBoxHeight;
     $combo->RadiosPerLine = $this->RadiosPerLine;
     $combo->AllowNull = $this->ListType == 2 ? 0 : $this->AllowNull;
     while ($row = db_fetch_row($result)) {
         $combo->ListData[] = htmlspecialchars($row[0], ENT_QUOTES, 'iso-8859-1');
         $combo->ListItem[] = $row[1];
     }
     $combo->Render();
     $this->MatchText = $combo->MatchText;
     $this->SelectedText = $combo->SelectedText;
     $this->SelectedData = $combo->SelectedData;
     if ($this->ListType == 2) {
         $rnd = rand(100, 999);
         $SelectedID = htmlspecialchars(urlencode($this->SelectedData));
         $pt_perm = getTablePermissions($this->parent_table);
         if ($pt_perm['view'] || $pt_perm['edit']) {
             $this->HTML = str_replace(">{$this->MatchText}</label>", ">{$this->MatchText}</label> <button type=\"button\" class=\"btn btn-default view_parent hspacer-lg\" id=\"{$this->parent_table}_view_parent\" title=" . htmlspecialchars($Translation['View']) . "><i class=\"glyphicon glyphicon-eye-open\"></i></button>", $combo->HTML);
         }
         $this->HTML = str_replace(' type="radio" ', ' type="radio" onclick="' . $this->SelectName . '_changed();" ', $this->HTML);
     } else {
         $this->HTML = $combo->HTML;
     }
 }
开发者ID:TokaMElTorkey,项目名称:northwind,代码行数:41,代码来源:data_combo.class.php


示例5: Render

 function Render()
 {
     global $Translation;
     $eo['silentErrors'] = true;
     $result = sql($this->Query . ' limit ' . datalist_auto_complete_size, $eo);
     if ($eo['error'] != '') {
         $this->HTML = error_message(htmlspecialchars($eo['error']) . "\n\n<!--\n{$Translation['query:']}\n {$this->Query}\n-->\n\n");
         return;
     }
     $this->ItemCount = db_num_rows($result);
     $combo = new Combo();
     $combo->Class = $this->Class;
     $combo->Style = $this->Style;
     $combo->SelectName = $this->SelectName;
     $combo->SelectedData = $this->SelectedData;
     $combo->SelectedText = $this->SelectedText;
     $combo->SelectedClass = 'SelectedOption';
     $combo->ListType = $this->ListType;
     $combo->ListBoxHeight = $this->ListBoxHeight;
     $combo->RadiosPerLine = $this->RadiosPerLine;
     $combo->AllowNull = $this->ListType == 2 ? 0 : $this->AllowNull;
     while ($row = db_fetch_row($result)) {
         $combo->ListData[] = htmlspecialchars($row[0], ENT_QUOTES);
         $combo->ListItem[] = $row[1];
     }
     $combo->Render();
     $this->MatchText = $combo->MatchText;
     $this->SelectedText = $combo->SelectedText;
     $this->SelectedData = $combo->SelectedData;
     if ($this->ListType == 2) {
         $rnd = rand(100, 999);
         $SelectedID = htmlspecialchars(urlencode($this->SelectedData));
         $this->HTML = str_replace(">{$this->MatchText}</label>", ">{$this->MatchText}</label> <span id=\"{$this->parent_table}_plink{$rnd}\"><a href=\"{$this->parent_table}_view.php?SelectedID={$SelectedID}\" class=\"btn btn-default btn-sm\"><i class=\"glyphicon glyphicon-search\"></i></a></span>", $combo->HTML);
         $this->HTML = str_replace(' type="radio" ', ' type="radio" onclick="' . $this->SelectName . '_changed();" ', $this->HTML);
     } else {
         $this->HTML = $combo->HTML;
     }
 }
开发者ID:vishwanathhsinhaa,项目名称:tieuthuong-org,代码行数:38,代码来源:data_combo.class.php


示例6: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");


if ($_REQUEST["id"] == 2)
	$sql =
		"SELECT 0 id, 'Capital Federal' detalle
			 FROM DUAL";
else
	$sql =
		"SELECT cp_id id, cp_localidadcap detalle
			 FROM art.ccp_codigopostal
			WHERE cp_fechabaja IS NULL
				AND cp_provincia = :provincia
	 ORDER BY 2";
$comboLocalidad = new Combo($sql, "localidad");
if ($_REQUEST["id"] == 2)
	$comboLocalidad->setAddFirstItem(false);
else
	$comboLocalidad->addParam(":provincia", $idProvincia);
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:21,代码来源:cambia_provincia_establecimiento_combos.php


示例7: Combo

$sql =
	"SELECT gr_id id, gr_detalle detalle
		 FROM rrhh.rgr_grupos
 ORDER BY 2";
$comboGrupo = new Combo($sql, "grupo", $grupo);
$comboGrupo->setClass("combo");

$sql =
	"SELECT pu_id id, pu_detalle detalle
		 FROM rrhh.rpu_puestos
 ORDER BY 2";
$comboPuesto = new Combo($sql, "puesto", $puesto);
$comboPuesto->setClass("combo");

$sql =
	"SELECT pl_id id, pl_empleado detalle
		 FROM rrhh.dpl_login
		WHERE pl_empresa = :empresa
			AND pl_fechabaja IS NULL
 ORDER BY 2";
$comboReferenteRrhh = new Combo($sql, "referenteRrhh", $referenteRrhh);
$comboReferenteRrhh->addParam(":empresa", $empresa);
$comboReferenteRrhh->setClass("combo");

$sql =
	"SELECT 1
		 FROM DUAL
		WHERE 1 = 2";
$comboReporta = new Combo($sql, "reporta");
$comboReporta->setClass("combo");
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:buscar_usuario_combos.php


示例8: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");


$sql =
	"SELECT id, detalle
		 FROM (SELECT DISTINCT ii_periodo id, art.utiles.nombredemes(SUBSTR(ii_periodo, 5, 2)) || ' ' || SUBSTR(ii_periodo, 1, 4) detalle
											FROM web.wii_informesiys
										 WHERE ii_contrato = :contrato
											 AND ii_fechabaja IS NULL
									ORDER BY ii_periodo DESC)";
$comboPeriodo = new Combo($sql, "periodo");
$comboPeriodo->addParam(":contrato", $_SESSION["contrato"]);
$comboPeriodo->setFocus(true);
$comboPeriodo->setOnChange("submitForm()");
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:16,代码来源:index_combos.php


示例9: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");


$sql =
	"SELECT et_id id, et_nombre || ' (' || art.utiles.armar_domicilio(et_calle, et_numero, et_piso, et_departamento, NULL) || art.utiles.armar_localidad(et_cpostal, NULL, et_localidad, et_provincia) || ')' detalle
		 FROM SIN.set_establecimiento_temporal
		WHERE et_fechabaja IS NULL
			AND et_cuit = :cuit
 ORDER BY 2";
$comboEstablecimientoTercero = new Combo($sql, "establecimientoTercero");
$comboEstablecimientoTercero->addParam(":cuit", $_SESSION["cuit"]);

$sql =
	"SELECT DISTINCT pv_codigo id, pv_descripcion detalle
							FROM cpv_provincias
					ORDER BY 2";
$comboProvincia = new Combo($sql, "provincia", $provincia);
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:19,代码来源:administrar_establecimientos_combos.php


示例10: Combo



$sql =
	"SELECT tb_codigo id, tb_descripcion detalle
		 FROM ctb_tablas
		WHERE tb_clave = 'USCAR'
			AND tb_fechabaja IS NULL
 ORDER BY 2";
$comboCargo = new Combo($sql, "cargo", $row["SE_CARGO"]);

$sql =
	"SELECT el_id id, el_nombre detalle
		 FROM del_delegacion
		WHERE el_fechabaja IS NULL
 ORDER BY 2";
$comboDelegacion = new Combo($sql, "delegacion", $row["SE_DELEGACION"]);
$comboDelegacion->setOnChange("cambiarDelegacion(this.value)");

$sql =
	"SELECT es_id id, es_descripcion || ' - ' || es_calle || ' ' || es_numero detalle
		 FROM art.des_delegacionsede
 ORDER BY 2";
$comboEdificio = new Combo($sql, "edificio", $row["SE_IDDELEGACIONSEDE"]);

$sql =
	"SELECT ru_id id, ru_detalle detalle
		 FROM comunes.cru_relacionlaboralusuario
		WHERE ru_fechabaja IS NULL
 ORDER BY 2";
$comboRelacionLaboral = new Combo($sql, "relacionLaboral", ($row["SE_CONTRATO"] == 0)?-1:$row["SE_CONTRATO"]);
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:28,代码来源:usuario_combos.php


示例11: 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);
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:afiliacion_combos.php


示例12: Combo

?>
    </td>
  </tr>
  <tr>
    <td>Usuario</td>
    <td><input type="text" name="usuario" id="usuario" /></td>
  </tr>
  <tr>
    <td>Password</td>
    <td><input type="text" name="password" id="password" /></td>
  </tr>
  <tr>
    <td>Nivel</td>
    <td>
		<?php 
$cmb = new Combo();
$cmb->AddItem(0, "Selecciona");
$cmb->AddItem(1, "Administrador");
$cmb->AddItem(2, "Usuario");
$cmb->Render("nivel");
?>
    </td>
  </tr>
  <tr>
    <td colspan="2"><div align="center"><input type="submit" value="Guardar" name="Guardar" /></div></td>
    </tr>
</table>
</form>

</body>
</html>
开发者ID:risos007,项目名称:thechurch,代码行数:31,代码来源:usersinfo.php


示例13: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");


$sql =
	"SELECT de_id id, de_nombre detalle, 2 orden
		 FROM rrhh.rde_descargables
		WHERE de_fechabaja IS NULL
			AND de_idpadre = -1
 ORDER BY 3, 2";
$comboItemPadre = new Combo($sql, "itemPadre", ($isAlta)?-1:$row["DE_IDPADRE"]);
$comboItemPadre->setFirstItem("* ITEM RAÍZ *");
$comboItemPadre->setFocus(true);
$comboItemPadre->setOnChange("cambiarItemPadre(this.value)");
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:15,代码来源:item_combos.php


示例14: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/../Classes/provart/combo.php");


$sql =
	"SELECT DISTINCT pv_codigo id, pv_descripcion detalle
							FROM cpv_provincias
					ORDER BY 2";
$comboProvincia2 = new Combo($sql, "provincia2", $_REQUEST["provincia"]);
$comboProvincia2->setOnChange("cambiaProvincia2(this.value)");
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:11,代码来源:buscar_domicilio_busqueda_combos.php


示例15: modificarCombo

 private function modificarCombo($position, $objSectorCiudad)
 {
     $cantidad = Yii::app()->getRequest()->getPost('cantidad', null);
     if ($cantidad === null || $cantidad < 0) {
         echo CJSON::encode(array('result' => 'error', 'response' => array('message' => 'Solicitud inválida, no se detectan datos', 'carroHTML' => $this->renderPartial('carro', null, true))));
         Yii::app()->end();
     }
     $fecha = new DateTime();
     $objCombo = Combo::model()->find(array('with' => array('listProductos', 'listProductosCombo', 'listComboSectorCiudad'), 'condition' => 't.idCombo=:combo AND t.estadoCombo=:estado AND t.fechaInicio<=:fecha AND t.fechaFin>=:fecha AND listComboSectorCiudad.saldo>=:saldo AND listComboSectorCiudad.codigoCiudad=:ciudad AND listComboSectorCiudad.codigoSector=:sector', 'params' => array(':combo' => $position->objCombo->idCombo, ':estado' => 1, ':fecha' => $fecha->format('Y-m-d H:i:s'), 'saldo' => $cantidad, ':ciudad' => $objSectorCiudad->codigoCiudad, ':sector' => $objSectorCiudad->codigoSector)));
     if ($objCombo === null) {
         echo CJSON::encode(array('result' => 'error', 'response' => array('message' => "La cantidad solicitada no está disponible en este momento. No hay combos disponibles", 'carroHTML' => $this->renderPartial('carro', null, true))));
         Yii::app()->end();
     }
     Yii::app()->shoppingCart->update($position, false, $cantidad);
     echo CJSON::encode(array('result' => 'ok', 'response' => array('canastaHTML' => $this->renderPartial('canasta', null, true), 'carroHTML' => $this->renderPartial('carro', null, true))));
     Yii::app()->end();
 }
开发者ID:JeffreyMartinezEiso,项目名称:lrv,代码行数:17,代码来源:CarroController.php


示例16: LOrden

<?php

require_once "../../clogica/LOrden.php";
require_once "../../../pholivo/Html.php";
require_once "../../../pholivo/Html1.php";
$o_Orden = new LOrden();
$arrayAfiliacion = $o_Orden->getArrayComboAfiliacion();
$objCombo1 = new Combo($arrayAfiliacion);
$optComboAfiliacion = $objCombo1->getOptionsHTML('', 'AFILIACION');
echo $optComboAfiliacion;
开发者ID:gianpascal,项目名称:yachay,代码行数:10,代码来源:gestion_orden2.php


示例17: patients_form

function patients_form($selected_id = "", $AllowUpdate = 1, $AllowInsert = 1, $AllowDelete = 1, $ShowCancel = 0)
{
    // function to return an editable form for a table records
    // and fill it with data of record whose ID is $selected_id. If $selected_id
    // is empty, an empty form is shown, with only an 'Add New'
    // button displayed.
    global $Translation;
    // mm: get table permissions
    $arrPerm = getTablePermissions('patients');
    if (!$arrPerm[1] && $selected_id == "") {
        return "";
    }
    // combobox: gender
    $combo_gender = new Combo();
    $combo_gender->ListType = 2;
    $combo_gender->MultipleSeparator = ', ';
    $combo_gender->ListBoxHeight = 10;
    $combo_gender->RadiosPerLine = 1;
    if (is_file(dirname(__FILE__) . '/hooks/patients.gender.csv')) {
        $gender_data = addslashes(implode('', @file(dirname(__FILE__) . '/hooks/patients.gender.csv')));
        $combo_gender->ListItem = explode(";;", $gender_data);
        $combo_gender->ListData = explode(";;", $gender_data);
    } else {
        $combo_gender->ListItem = explode(";;", "Male;;Female;;Other;;Unknown");
        $combo_gender->ListData = explode(";;", "Male;;Female;;Other;;Unknown");
    }
    $combo_gender->SelectName = "gender";
    $combo_gender->AllowNull = false;
    // combobox: birth_date
    $combo_birth_date = new DateCombo();
    $combo_birth_date->DateFormat = "mdy";
    $combo_birth_date->MinYear = 1900;
    $combo_birth_date->MaxYear = 2100;
    $combo_birth_date->DefaultDate = parseMySQLDate('', '');
    $combo_birth_date->MonthNames = $Translation['month names'];
    $combo_birth_date->CSSOptionClass = 'Option';
    $combo_birth_date->CSSSelectedClass = 'SelectedOption';
    $combo_birth_date->NamePrefix = 'birth_date';
    // combobox: state
    $combo_state = new Combo();
    $combo_state->ListType = 0;
    $combo_state->MultipleSeparator = ', ';
    $combo_state->ListBoxHeight = 10;
    $combo_state->RadiosPerLine = 1;
    if (is_file(dirname(__FILE__) . '/hooks/patients.state.csv')) {
        $state_data = addslashes(implode('', @file(dirname(__FILE__) . '/hooks/patients.state.csv')));
        $combo_state->ListItem = explode(";;", $state_data);
        $combo_state->ListData = explode(";;", $state_data);
    } else {
        $combo_state->ListItem = explode(";;", "AL;;AK;;AS;;AZ;;AR;;CA;;CO;;CT;;DE;;DC;;FM;;FL;;GA;;GU;;HI;;ID;;IL;;IN;;IA;;KS;;KY;;LA;;ME;;MH;;MD;;MA;;MI;;MN;;MS;;MO;;MT;;NE;;NV;;NH;;NJ;;NM;;NY;;NC;;ND;;MP;;OH;;OK;;OR;;PW;;PA;;PR;;RI;;SC;;SD;;TN;;TX;;UT;;VT;;VI;;VA;;WA;;WV;;WI;;WY");
        $combo_state->ListData = explode(";;", "AL;;AK;;AS;;AZ;;AR;;CA;;CO;;CT;;DE;;DC;;FM;;FL;;GA;;GU;;HI;;ID;;IL;;IN;;IA;;KS;;KY;;LA;;ME;;MH;;MD;;MA;;MI;;MN;;MS;;MO;;MT;;NE;;NV;;NH;;NJ;;NM;;NY;;NC;;ND;;MP;;OH;;OK;;OR;;PW;;PA;;PR;;RI;;SC;;SD;;TN;;TX;;UT;;VT;;VI;;VA;;WA;;WV;;WI;;WY");
    }
    $combo_state->SelectName = "state";
    if ($selected_id) {
        // mm: check member permissions
        if (!$arrPerm[2]) {
            return "";
        }
        // mm: who is the owner?
        $ownerGroupID = sqlValue("select groupID from membership_userrecords where tableName='patients' and pkValue='" . makeSafe($selected_id) . "'");
        $ownerMemberID = sqlValue("select lcase(memberID) from membership_userrecords where tableName='patients' and pkValue='" . makeSafe($selected_id) . "'");
        if ($arrPerm[2] == 1 && getLoggedMemberID() != $ownerMemberID) {
            return "";
        }
        if ($arrPerm[2] == 2 && getLoggedGroupID() != $ownerGroupID) {
            return "";
        }
        // can edit?
        if ($arrPerm[3] == 1 && $ownerMemberID == getLoggedMemberID() || $arrPerm[3] == 2 && $ownerGroupID == getLoggedGroupID() || $arrPerm[3] == 3) {
            $AllowUpdate = 1;
        } else {
            $AllowUpdate = 0;
        }
        $res = sql("select * from `patients` where `id`='" . makeSafe($selected_id) . "'");
        $row = mysql_fetch_array($res);
        $combo_gender->SelectedData = $row["gender"];
        $combo_birth_date->DefaultDate = $row["birth_date"];
        $combo_state->SelectedData = $row["state"];
        $row['filed'] = sqlValue("select DATE_FORMAT(`filed`, '%c/%e/%Y %l:%i%p') from `patients` where `id`='" . makeSafe($selected_id) . "'");
        $row['last_modified'] = sqlValue("select DATE_FORMAT(`last_modified`, '%c/%e/%Y %l:%i%p') from `patients` where `id`='" . makeSafe($selected_id) . "'");
    } else {
        $combo_gender->SelectedText = $_REQUEST['FilterField'][1] == '4' && $_REQUEST['FilterOperator'][1] == '<=>' ? get_magic_quotes_gpc() ? stripslashes($_REQUEST['FilterValue'][1]) : $_REQUEST['FilterValue'][1] : "Unknown";
        $combo_state->SelectedText = $_REQUEST['FilterField'][1] == '9' && $_REQUEST['FilterOperator'][1] == '<=>' ? get_magic_quotes_gpc() ? stripslashes($_REQUEST['FilterValue'][1]) : $_REQUEST['FilterValue'][1] : "";
    }
    $combo_gender->Render();
    $combo_state->Render();
    // code for template based detail view forms
    // open the detail view template
    if (($_POST['dvprint_x'] != '' || $_GET['dvprint_x'] != '') && $selected_id) {
        $templateCode = @implode('', @file('./templates/patients_templateDVP.html'));
        $dvprint = true;
    } else {
        $templateCode = @implode('', @file('./templates/patients_templateDV.html'));
        $dvprint = false;
    }
    // process form title
    $templateCode = str_replace('<%%DETAIL_VIEW_TITLE%%>', 'Patient details', $templateCode);
    // unique random identifier
    $rnd1 = $dvprint ? rand(1000000, 9999999) : '';
    $templateCode = str_replace('<%%RND1%%>', $rnd1, $templateCode);
//.........这里部分代码省略.........
开发者ID:bigprof,项目名称:Symptoms-and-diseases-database,代码行数:101,代码来源:patients_dml.php


示例18: Combo

 ORDER BY 2";
$comboTipoDocumento = new Combo($sql, "tipoDocumento");

$sql =
	"SELECT titdesabr id, titdesabr detalle
		 FROM rhpror3.titulo
 ORDER BY 2";
$comboTitulo1 = new Combo($sql, "titulo1");
$comboTitulo1->setClass("titulo");

$sql =
	"SELECT titdesabr id, titdesabr detalle
		 FROM rhpror3.titulo
 ORDER BY 2";
$comboTitulo2 = new Combo($sql, "titulo2");
$comboTitulo2->setClass("titulo");

$sql =
	"SELECT titdesabr id, titdesabr detalle
		 FROM rhpror3.titulo
 ORDER BY 2";
$comboTitulo3 = new Combo($sql, "titulo3");
$comboTitulo3->setClass("titulo");

$sql =
	"SELECT titdesabr id, titdesabr detalle
		 FROM rhpror3.titulo
 ORDER BY 2";
$comboTitulo4 = new Combo($sql, "titulo4");
$comboTitulo4->setClass("titulo");
?>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:formulario_cv_combos.php


示例19: Combo

    
            <!-- ########################################################## -->
                

        <!-- sorting header  -->   
        <div class="row" style="border-bottom: solid 2px #DDD;">
            <div class="col-md-offset-2 col-md-8 vspacer-lg"><strong>order by</strong></div>
        </div>
        <!-- sorting rules -->
        <?php 
// Fields list
$sortFields = new Combo();
$sortFields->ListItem = $this->ColCaption;
$sortFields->ListData = $this->ColNumber;
// sort direction
$sortDirs = new Combo();
$sortDirs->ListItem = array("ascending", "descending");
$sortDirs->ListData = array("asc", "desc");
$num_rules = min(maxSortBy, count($this->ColCaption));
for ($i = 0; $i < $num_rules; $i++) {
    $sfi = $sd = "";
    if (isset($orderBy[$i])) {
        foreach ($orderBy[$i] as $sfi => $sd) {
        }
    }
    $sortFields->SelectName = "OrderByField{$i}";
    $sortFields->SelectID = "OrderByField{$i}";
    $sortFields->SelectedData = $sfi;
    $sortFields->SelectedText = "";
    $sortFields->Render();
    $sortDirs->SelectName = "OrderDir{$i}";
开发者ID:TokaMElTorkey,项目名称:northwind,代码行数:30,代码来源:products_filter.php


示例20: Combo

		// Lleno los combos..
		$sql =
			"SELECT 1
				 FROM DUAL
				WHERE 1 = 2";
		$comboLocalidad = new Combo($sql, "localidadCombo_".$i, $rowAVL["VL_LOCALIDAD"]);
		$comboLocalidad->setClass("localidadCombo");
		$comboLocalidad->setFirstItem("- INGRESE EL CÓDIGO POSTAL Y LA PROVINCIA -");
		$comboLocalidad->setOnChange("cambiarLocalidad(this.value, '_".$i."')");

		$sql =
			"SELECT pv_codigo id, pv_descripcion detalle
				 FROM cpv_provincias
				WHERE pv_fechabaja IS NULL
		 ORDER BY 2";
		$comboProvincia = new Combo($sql, "provincia_".$i, ($rowAVL["VL_PROVINCIA"]=="")?-1:$rowAVL["VL_PROVINCIA"]);
		$comboProvincia->setOnChange("cargarComboLocalidad('_".$i."')");

		// Teléfonos..
		$dataTel = inicializarTelefonos(OCI_COMMIT_ON_SUCCESS, "vt_id_valida_lugartrabajo_pcp", (($rowAVL)?$rowAVL["VL_ID"]:-$i), "vt", "afi.avt_valida_telefono_lt_pcp", $_SESSION["usuario"]);
		quitarTelefonosTemporales($dataTel);
		copiarTelefonosATemp($dataTel, $_SESSION["usuario"]);
?>
		<div class="datosDivLugarTrabajo" id="datosDivLugarTrabajo_<?php 
echo $i;
?>
" style="display:<?php 
echo $rowAVL ? "block" : "none";
?>
;">
			<input id="lugarTrabajoVisible_<?php 
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:paso1.php



注:本文中的Combo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Command类代码示例发布时间:2022-05-23
下一篇:
PHP Combination类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap