public function __construct($titre, $idDeclencheur, $class, $id = '', $idTab = '') { parent::__construct($class, $id, $idTab); $popDiv = new SBalise(BAL_DIV); $popDiv->AddClass(TYPEPOP_SLIDECLICK); parent::Attach($popDiv); $declencheur = new SBalise(BAL_DIV); $declencheur->AddClass('jq_popdiv_declencheur'); $declencheur->SetText($idDeclencheur); $popDiv->Attach($declencheur); $bal = new SBalise(BAL_DIV); $bal->AddProp(PROP_ID, $idDeclencheur); $tab = new STableau(true); $tab->AddLigne(); $cellule = $tab->AddCellule(); $element = new SElement($class . ''); $element->SetText('+'); $cellule = $tab->AddCellule(); $element = new SElement($class . ''); $element->SetText($titre); $bal->Attach($tab); $popDiv->Attach($bal); $this->div = new SBalise(BAL_DIV); $this->div->AddClass('jq_popdiv_div'); $popDiv->Attach($this->div); }
public function __construct($nbLignes, $nbColonnes, $class = '', $tabMaxLargeur = false, $equiCellules = false, $remplirParent = true) { parent::__construct($class, $remplirParent, '', '', $tabMaxLargeur); $this->org = new SOrganiseur($nbLignes, $nbColonnes, $tabMaxLargeur, $equiCellules); $this->Attach($this->org); if ($remplirParent === true) { $this->org->AddClass('jq_fill'); } }
public function __construct($prefixIdClass, $type = '', $oblig = false, $retour = '', $info = '', $erreur = '', $niveau = '') { parent::__construct($prefixIdClass . INPUTLISTE . $niveau, true, true, false); $this->AjouterClasse(INPUTLISTE . $niveau); if ($oblig == true) { $this->AddClass('jq_input_form_oblig'); } $this->prefixIdClass = $prefixIdClass; switch ($type) { case INPUTLISTE_TYPE_LISTE: $this->AddClass(LISTEINPUTLISTE_JQ); break; default: $this->AddClass(INPUTLISTE_JQ); } $this->typeLiaison = 'ild_' . strval(mt_rand()); // Retour. if ($retour !== '') { $divRetour = new SBalise(BAL_DIV); $divRetour->SetText(strval($retour)); $divRetour->AddClass(INPUTLISTE_JQ_RETOUR); $this->Attach($divRetour); } // Info. if ($info !== '') { $divInfo = new SBalise(BAL_DIV); $elemInfo = new SElement(CLASSCADRE_INFO, false); $elemInfo->SetText($info); $divInfo->AddClass(INPUTLISTE_JQ_INFO); $divInfo->Attach($elemInfo); $divInfo->AddStyle('display: none;'); $this->Attach($divInfo); } // Erreur. if ($erreur !== '') { $divErreur = new SBalise(BAL_DIV); $elemErreur = new SElement(CLASSCADRE_ERREUR, false); $elemErreur->SetText($erreur); $divErreur->AddClass(INPUTLISTE_JQ_ERREUR); $divErreur->Attach($elemErreur); $divErreur->AddStyle('display: none;'); $this->Attach($divErreur); } }
public function __construct($titre = '', $id = '', $class = '', $onClick = '') { parent::__construct($class, $id); //$this->sousMenus = array(); $this->id = $id; if ($id !== '') { $this->AddProp(PROP_ID, $id); } if ($class !== '') { $this->AddProp(PROP_CLASS, $class); } if ($titre !== '') { $this->SetText($titre); } $this->jsOnClick = ''; if ($onClick !== '') { $this->jsOnClick .= $onClick; } }
public function __construct($prefixIdClass, $typeInput = '', $retour = '', $valeur = '') { parent::__construct($prefixIdClass . COLOR, true, '', '', true); $this->AjouterClasse(COLOR); $div = new SBalise(BAL_DIV); switch ($typeInput) { case COLOR_TYPE_LISTE: $div->AddClass(LISTECOLOR_JQ); break; default: $div->AddClass(COLOR_JQ); } $this->Attach($div); if ($valeur !== '') { $div->AddProp(PROP_STYLE, 'background-color: ' . $valeur); } // Retour. if ($retour !== '') { $divRetour = new SBalise(BAL_DIV); $divRetour->SetText(strval($retour)); $divRetour->AddClass(COLOR_JQ_RETOUR); $div->Attach($divRetour); } }
public function __construct($prefixIdClass, $label, $input = NULL, $placeLabel = INPUTLABELPLACE_GAUCHE, $oblig = false, $sousLabel = false, $niveau = '', $tabMaxLargeur = false, $remplirParent = true, $equiCellules = false) { $classeInput = INPUT; $classeLabel = INPUT_LABEL; if ($sousLabel === true) { $classeInput = SOUSINPUT; $classeLabel = SOUSINPUT_LABEL; } $this->prefixIdClass = $prefixIdClass; $this->niveau = $niveau; $this->tabMaxLargeur = $tabMaxLargeur; $this->equiCellules = $equiCellules; if ($oblig === true) { parent::__construct($prefixIdClass . $classeInput . '_oblig' . $this->niveau, $remplirParent); $this->AjouterClasse($classeInput . '_oblig' . $this->niveau); } else { parent::__construct($prefixIdClass . $classeInput . $this->niveau, $remplirParent); $this->AjouterClasse($classeInput . $this->niveau); } $this->organiseur = NULL; $org = NULL; if ($placeLabel == INPUTLABELPLACE_HAUT) { $org = new SOrganiseur(2, 1, $tabMaxLargeur); $org->AddClass('jq_fill'); $elem = NULL; if ($oblig === true) { $elem = new SElement($prefixIdClass . $classeLabel . '_oblig' . $this->niveau, false); $elem->AjouterClasse($classeLabel . '_oblig' . $this->niveau); } else { $elem = new SElement($prefixIdClass . $classeLabel . $this->niveau, false); $elem->AjouterClasse($classeLabel . $this->niveau); } $elem->GetCellule()->AddClass(JQINPUTLABEL); $elem->SetText($label); $org->AttacherCellule(1, 1, $elem); $org->SetCelluleDominante(2, 1); if ($input != NULL) { $org->AttacherCellule(2, 1, $input); } } else { if ($placeLabel == INPUTLABELPLACE_GAUCHE) { $org = new SOrganiseur(1, 2, $tabMaxLargeur); $org->AddClass('jq_fill'); $elem = NULL; if ($oblig === true) { $elem = new SElement($prefixIdClass . $classeLabel . '_oblig' . $this->niveau); $elem->AjouterClasse($classeLabel . '_oblig' . $this->niveau); } else { $elem = new SElement($prefixIdClass . $classeLabel . $this->niveau); $elem->AjouterClasse($classeLabel . $this->niveau); } $elem->GetCellule()->AddClass(JQINPUTLABEL); $elem->SetText($label); $org->AttacherCellule(1, 1, $elem); $org->SetCelluleDominante(1, 2); if ($input != NULL) { $org->AttacherCellule(1, 2, $input); } } } if ($org != NULL) { $this->organiseur = $org; $this->Attach($this->organiseur); } $this->sousLabels = array(); }
public function __construct($prefixIdClass) { parent::__construct($prefixIdClass . CLASSSEPARATEUR); $this->AjouterClasse(CLASSSEPARATEUR); }
public function __construct($prefixIdClass, $typeSynchro, $contexte, $nbElementsParPage = 20, $nbElementsTotal = -1, $triable = false, $typeLiaison = '', $chargementModifDiffere = true, $foncJsOnClick = '', $foncAjaxTriCreation = '', $foncAjaxTriModification = AJAXFONC_MODIFIERDANSCONTEXTE, $foncAjaxTriSuppression = '', $foncAjaxCreation = AJAXFONC_AJOUTERAUCONTEXTE, $foncAjaxModification = AJAXFONC_MODIFIERDANSCONTEXTE, $foncAjaxSuppression = AJAXFONC_SUPPRIMERDUCONTEXTE, $foncAjaxRechargement = AJAXFONC_RECHARGER) { $this->prefixIdClass = $prefixIdClass; if (self::$nbListesEnregistrees === NULL) { self::$nbListesEnregistrees = array(); } // Affectation d'un numéro à la liste qui permet, avec son typeSynchro, de la rendre unique et identifiable. if (!array_key_exists($typeSynchro, self::$nbListesEnregistrees)) { $this->numero = 1; self::$nbListesEnregistrees[$typeSynchro] = 1; } else { $this->numero = self::$nbListesEnregistrees[$typeSynchro]; self::$nbListesEnregistrees[$typeSynchro]++; } if (self::$listeElemChargee === NULL) { self::$listeElemChargee = array(); } parent::__construct('', false); $this->elements = array(); $this->champs = array(); $this->menus = array(); $this->chargement = true; $this->contexte = $contexte; $this->typeSynchro = $typeSynchro; $this->nbElementsParPage = $nbElementsParPage; $this->nbElementsTotal = $nbElementsTotal; if ($this->statique !== true) { $this->numPageCourante = GContexte::ListePageCourante($contexte, $typeSynchro, $this->numero); } $this->numAnciennePage = $this->numPageCourante; $this->triable = $triable; if ($this->triable === true) { $this->typeLiaison = $typeLiaison; } $this->foncAjaxCreation = $foncAjaxCreation; $this->foncAjaxModification = $foncAjaxModification; $this->foncAjaxSuppression = $foncAjaxSuppression; $this->foncAjaxRechargement = $foncAjaxRechargement; $this->foncJsOnClick = $foncJsOnClick; $this->foncAjaxTriCreation = $foncAjaxTriCreation; $this->foncAjaxTriModification = $foncAjaxTriModification; $this->foncAjaxTriSuppression = $foncAjaxTriSuppression; if ($this->statique !== true) { $this->listeContexte = GContexte::Liste($contexte, $this->TypeSynchroPage()); $this->listeSuppressions = $this->listeContexte; if ($this->listeContexte === NULL) { $this->listeContexte = array(); } } $this->rechargement = false; $this->chargementModifDiffere = $chargementModifDiffere; $this->referentiels = array(); $this->referentielsElements = array(); $this->sousListes = array(); $this->sousListesListe = array(); $this->sousListesElements = array(); $this->sousListesElementsListe = array(); $this->listeParente = NULL; $this->hasListeParente = false; $this->idListeParente = ''; $this->niveau = -1; $this->nomFichierPresMod = ''; $this->presentation = -1; $this->InitialiserChamps(); $this->InitialiserReferentiels(); $this->InitialiserListes(); $this->AddClass(LISTE_JQ); }