예제 #1
0
 public function __construct($prefixIdClass, $typeInput = INPUTFILE_TYPE_IMAGE, $oblig = false, $retour = '', $chemin = '', $id = '', $info = '', $erreur = '', $type = '', $contexte = '', $niveau = '')
 {
     parent::__construct(2, 1, '', true);
     GSession::PoidsJavascript(1);
     if ($typeInput === '') {
         $typeInput = INPUTFILE_TYPE_IMAGE;
     }
     switch ($typeInput) {
         case INPUTFILE_TYPE_LISTEIMAGE:
             $this->AddClass(LISTEINPUTIMAGE_JQ);
             break;
         default:
             $this->AddClass(INPUTIMAGE_JQ);
     }
     $elemImage = new SElement($prefixIdClass . INPUTIMAGE_IMAGE . $niveau);
     $elemImage->AjouterClasse(INPUTIMAGE_IMAGE . $niveau);
     $image = new SImage('');
     $image->AddClass(INPUTIMAGE_JQ_IMAGE);
     $elemImage->Attach($image);
     $this->AttacherCellule(1, 1, $elemImage);
     $elemFile = new SElement($prefixIdClass . INPUTIMAGE_FILE . $niveau);
     //, true, '', '', false);
     $elemFile->AjouterClasse(INPUTIMAGE_FILE . $niveau);
     $this->inputFile = new SInputFile($prefixIdClass, $typeInput, $oblig, $retour, $chemin, REF_FICHIERSEXTENSIONS_IMAGES, $id, $info, $erreur, $type, $contexte, $niveau);
     $this->inputFile->AddClass(INPUTIMAGE_JQ_FILE);
     $elemFile->Attach($this->inputFile);
     $this->AttacherCellule(2, 1, $elemFile);
 }
예제 #2
0
 public function __construct($prefixIdClass, $id, $tabMaxLargeur = true, $centrer = false, $equiCellules = false, $remplirParent = true)
 {
     parent::__construct(2, 1, $prefixIdClass . CLASSEUR, $tabMaxLargeur, $equiCellules, $remplirParent);
     $this->AjouterClasse(CLASSEUR);
     $this->AddClass(CLASSEUR_JQ);
     $this->cadreOnglets = new SElemOrg(1, 1, $prefixIdClass . CLASSEUR_ONGLETS, false, false, false);
     $this->cadreOnglets->AjouterClasse(CLASSEUR_ONGLETS);
     $this->cadreOnglets->AddClass(CLASSEUR_JQ_ONGLETS);
     $this->cadreOnglets->AjouterClasseCellule(1, 1, CLASSEUR_JQ_ONGLETMODELE);
     $onglet = new SElement($prefixIdClass . CLASSEUR_ONGLET, false);
     $onglet->AjouterClasse(CLASSEUR_ONGLET);
     $this->cadreOnglets->AttacherCellule(1, 1, $onglet);
     $this->AttacherCellule(1, 1, $this->cadreOnglets);
     $this->cadreContenu = new SElement($prefixIdClass . CLASSEUR_CONTENU);
     $this->cadreContenu->AjouterClasse(CLASSEUR_CONTENU);
     $this->cadreContenu->AddClass(CLASSEUR_JQ_CONTENU);
     $this->AttacherCellule(2, 1, $this->cadreContenu);
     $divId = new SBalise(BAL_DIV);
     $divId->AddClass(CLASSEUR_JQ_ID);
     $divId->SetText(strval($id));
     $this->Attach($divId);
     $this->centrer = $centrer;
     //if ($contenu !== NULL)
     //	$this->AjouterContenu($contenu);
 }
예제 #3
0
 public function __construct($prefixIdClass, $nbLignes = 2, $nbColonnes = 1, $tabMaxLargeur = true, $equiCellules = true)
 {
     $this->prefixIdClass = $prefixIdClass;
     parent::__construct($nbLignes + 1, $nbColonnes, $this->prefixIdClass . FORM, $tabMaxLargeur, $equiCellules);
     $this->AjouterClasse(FORM);
     $this->currentCadre = NULL;
     $this->currentCadreInputs = NULL;
     $this->currentCadreBoutons = NULL;
     $this->id = FORM . mt_rand();
     $this->AddProp(PROP_ID, $this->id);
     $this->nbLignes = $nbLignes;
     $this->nbColonnes = $nbColonnes;
     $this->aCadreErreur = false;
 }
예제 #4
0
 public function __construct($prefixIdClass, $type = '', $oblig = false, $retour = '', $info = '', $erreur = '', $niveau = '')
 {
     $this->prefixIdClass = $prefixIdClass;
     $this->niveau = $niveau;
     parent::__construct(1, 2, $this->prefixIdClass . INPUTLISTEDB . $this->niveau, true, true, false);
     $this->AjouterClasse(INPUTLISTEDB . $this->niveau);
     if ($oblig == true) {
         $this->AddClass('jq_input_form_oblig');
     }
     switch ($type) {
         case INPUTLISTEDB_TYPE_LISTE:
             $this->AddClass(LISTEINPUTLISTEDB_JQ);
             break;
         default:
             $this->AddClass(INPUTLISTEDB_JQ);
     }
     $this->typeLiaison = 'ild_' . strval(mt_rand());
     // Retour.
     if ($retour !== '') {
         $divRetour = new SBalise(BAL_DIV);
         $divRetour->SetText(strval($retour));
         $divRetour->AddClass(INPUTLISTEDB_JQ_RETOUR);
         $this->Attach($divRetour);
     }
     // Info.
     if ($info !== '') {
         $divInfo = new SBalise(BAL_DIV);
         $elemInfo = new SElement(CLASSCADRE_INFO, false);
         $elemInfo->SetText($info);
         $divInfo->AddClass(INPUTLISTEDB_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(INPUTLISTEDB_JQ_ERREUR);
         $divErreur->Attach($elemErreur);
         $divErreur->AddStyle('display: none;');
         $this->Attach($divErreur);
     }
 }
예제 #5
0
 public function __construct($prefixIdClass = '', $titre = '', $contenu = NULL, $tabMaxLargeur = false, $centrer = false, $equiCellules = false, $remplirParent = true)
 {
     parent::__construct(2, 1, $prefixIdClass . SCADRE, $tabMaxLargeur, $equiCellules, $remplirParent);
     $this->AjouterClasse(SCADRE);
     $this->cadreTitre = new SElement($prefixIdClass . SCADRE_TITRE);
     $this->cadreTitre->AjouterClasse(SCADRE_TITRE);
     $this->AttacherCellule(1, 1, $this->cadreTitre);
     $this->cadreContenu = new SElement($prefixIdClass . SCADRE_CONTENU);
     $this->cadreContenu->AjouterClasse(SCADRE_CONTENU);
     $this->AttacherCellule(2, 1, $this->cadreContenu);
     $this->centrer = $centrer;
     if ($titre !== '') {
         $this->AjouterTitre($titre);
     }
     if ($contenu !== NULL) {
         $this->AjouterContenu($contenu);
     }
 }
예제 #6
0
 public function __construct($prefixIdClass = '', $vue = NULL, $form = NULL, $nomFichier = '', $presentation = '', $remplirParent = true)
 {
     parent::__construct(2, 1, $prefixIdClass . VISUALISEUR, true, false, $remplirParent);
     $this->AjouterClasse(VISUALISEUR);
     $this->AddClass(VISUALISEUR_JQ);
     $this->cadreVue = new SElement($prefixIdClass . VISUALISEUR_VUE);
     $this->cadreVue->AjouterClasse(VISUALISEUR_VUE);
     $this->cadreVue->AddClass(VISUALISEUR_JQ_VUE);
     $this->AttacherCellule(1, 1, $this->cadreVue);
     $this->cadreForm = new SElement($prefixIdClass . VISUALISEUR_FORM);
     $this->cadreForm->AjouterClasse(VISUALISEUR_FORM);
     $this->cadreForm->AddClass(VISUALISEUR_JQ_FORM);
     $this->AttacherCellule(2, 1, $this->cadreForm);
     $this->nomFichier = $nomFichier;
     $this->presentation = $presentation;
     if ($vue !== NULL) {
         $this->AjouterVue($vue);
     }
     if ($form !== NULL) {
         $this->AjouterForm($form);
     }
 }