/**
  * Récupère les infos de l'article.
  * @return  Renvoie true s'il a bien trouvé un article
  */
 function infosArti()
 {
     $row = SelectMultiple("if_articles", "numarticle", $this->numarticle);
     $this->libelle = $row["libelle"];
     if ($row["numarticle"]) {
         return true;
     }
 }
 /** 
  * Va récupérer les infos des actus
  */
 function infosActu()
 {
     $row = SelectMultiple("if_v_actu", "numpara", $this->numpara);
     $this->titrePara = miseEnForme($row["titre"]);
     $this->contenuPara = miseEnForme($row["contenu"]);
     $this->date_actu = date("d/m/Y", $row["date"]);
     $this->datebrut = $row["date"];
     $this->accueil = $row["accueil"];
 }
 function infosPara()
 {
     $row = SelectMultiple("if_paragraphe", "numpara", $this->numpara);
     $this->titrePara = miseEnForme($row["titre"]);
     $this->contenuPara = miseEnForme($row["contenu"]);
     $this->accueil = $row["accueil"];
     $row = SelectMultiple("if_page_para", "numpara", $this->numpara, $fin_req = " AND numpage='{$this->numpage}'");
     $this->colonnePara = $row["colonne"];
     $this->ordrePara = $row["ordre"];
     $this->listePara = $row["liste"];
     $this->typeTitre = $row["type_titre"];
 }
Example #4
0
 /**
  * Récupère les infos concernant le lien
  */
 function infosLien()
 {
     if ($this->numlien) {
         $row = SelectMultiple("if_liens", "numlien", $this->numlien);
         $this->libLien = $row["libelle"];
         $this->texteLien = miseEnForme($row["texte"]);
         $this->urlLien = $row["url"];
         $this->ordreLien = $row["ordre"];
         $this->fenLien = $row["fenetre"];
     }
 }
Example #5
0
 /**
  * Détermine s'il s'agit d'un menu 
  */
 function isMenu()
 {
     $row = SelectMultiple("if_" . $this->type, $this->champ, $this->valeur);
     return $row;
 }
Example #6
0
 /**
  * Récupère les infos de la photo afin de les afficher
  */
 function infosPhoto()
 {
     if ($this->numparaphoto) {
         $row = SelectMultiple("if_para_photo", "numparaphoto", $this->numparaphoto);
         $this->legendePhoto = $row["legende"];
         $this->ordrePhoto = $row["ordre"];
         $this->numphoto = $row["numphoto"];
         $row = SelectMultiple("if_photo", "numphoto", $this->numphoto);
         $this->nomPhoto = $row["nom_photo"];
         $liste = explode(".", $this->nomPhoto);
         if ($liste[4]) {
             $this->ext = $liste[4];
         } else {
             if ($liste[3]) {
                 $this->ext = $liste[3];
             } else {
                 if ($liste[2]) {
                     $this->ext = $liste[2];
                 } else {
                     $this->ext = $liste[1];
                 }
             }
         }
     } else {
         $row = SelectMultiple("if_photo", "numphoto", $this->numphoto);
         $this->nomPhoto = $row["nom_photo"];
         $liste = explode(".", $this->nomPhoto);
         if ($liste[4]) {
             $this->ext = $liste[4];
         } else {
             if ($liste[3]) {
                 $this->ext = $liste[3];
             } else {
                 if ($liste[2]) {
                     $this->ext = $liste[2];
                 } else {
                     $this->ext = $liste[1];
                 }
             }
         }
     }
     //$this->legende=$row["legende"];
 }
Example #7
0
 /**
  * Affiche les infos de la brève
  */
 function infosBreve()
 {
     $row = SelectMultiple("if_v_breve", "numpara", $this->numpara);
     $this->titrePara = miseEnForme($row["titre"]);
     $this->contenuPara = miseEnForme($row["contenu"]);
     $this->date_breve = date("d/m/Y", $row["date"]);
     $this->datebrut = $row["date"];
     $this->numpays = $row["numpays"];
     $this->nom_pays = SelectSimple("pays", "if_pays", "numpays", $row["numpays"]);
     $this->source = $row["source"];
 }
Example #8
0
 /**
  * Liste les informations du client
  */
 function infosClient()
 {
     $row = SelectMultiple("if_bo_client", "numclient", $this->numclient);
     $this->raison = $row["raison"];
     $this->nom = $row["nom"];
     $this->prenom = $row["prenom"];
     $this->pwd = easy($row["pwd"], "d");
     $this->email = $row["email"];
     $this->civilite = $row["civilite"];
     $this->fonction = $row["fonction"];
     $this->adr1 = $row["adr1"];
     $this->adr2 = $row["adr2"];
     $this->cp = $row["cp"];
     $this->ville = $row["ville"];
     $this->pays = $row["numpays"];
     $this->nompays = utf8_encode(SelectSimple("pays", "if_pays", "numpays", $this->pays));
     $this->tel = $row["tel"];
     $this->gsm = $row["gsm"];
     $this->fax = $row["fax"];
     $this->actif = $row["actif"];
     $this->amont = $row["amont"];
     $this->aval = $row["aval"];
 }
 function infosDoc()
 {
     $row = SelectMultiple("if_v_doc", "numpara", $this->numpara);
     $this->titrePara = miseEnForme($row["titre"]);
     $this->contenuPara = miseEnForme($row["contenu"]);
     $this->type_doc = $row["type_doc"];
     $this->nom_type_doc = SelectSimple("nom", "if_type_doc", "type_doc", $row["type_doc"]);
     $this->titre_en = miseEnForme($row["titre_en"]);
     $this->contenu_en = miseEnForme($row["contenu_en"]);
     $this->auteur = $row["auteur"];
     $this->ref_biblio = $row["ref_biblio"];
     if ($row["date"]) {
         $this->date = date("d/m/Y", $row["date"]);
         $this->date_brute = $row["date"];
     }
     $this->date_libre = $row["date_libre"];
     //annee fabriquee a la volee
     if ($row["date_libre"]) {
         $this->anneeDoc = substr($row["date_libre"], 0, 4);
     } else {
         if ($row["date"]) {
             $this->anneeDoc = date("Y", $row["date"]);
         }
     }
     $this->reference = $row["reference"];
     $this->keyw = $row["keyw"];
     $this->tarif = $row["tarif"];
     $this->poids = $row["poids"];
     $this->pwd = $row["pwd"];
     $this->acces_res = $row["acces_res"];
     $this->une = $row["une"];
     $this->publiee = $row["publiee"];
 }
 /**
  * Récupère les infos de la formation
  */
 function infosFormation()
 {
     $row = SelectMultiple("if_v_form", "numpara", $this->numpara);
     $this->titrePara = miseEnForme($row["titre"]);
     $this->contenuPara = miseEnForme($row["contenu"]);
     if ($row["date_deb"]) {
         $this->datedeb = iconv('ISO-8859-1', 'UTF-8', strftime("%d %B %Y", $row["date_deb"]));
     }
     if ($row["date_fin"]) {
         $this->datefin = iconv('ISO-8859-1', 'UTF-8', strftime("%d %B %Y", $row["date_fin"]));
     }
     if ($row["date_deb"]) {
         $this->datedeb_admin = date("d/m/Y", $row["date_deb"]);
     }
     if ($row["date_fin"]) {
         $this->datefin_admin = date("d/m/Y", $row["date_fin"]);
     }
     $this->surMesure = $row["sur_mesure"];
     $this->enligne = $row["enligne"];
 }
Example #11
0
 /**
  * Va répérer toutes les infos concernant la page.
  * Va remplir toutes les propriétés de l'objet page pas leur équivalent dans la Bdd.
  */
 function infosPage()
 {
     if ($this->numpage) {
         $row = SelectMultiple("if_page", "numpage", $this->numpage);
     } else {
         $row = SelectMultiple("if_page", "accueil_site", "o", "AND publiee='o' AND lg='{$this->lg}'");
         $this->numpage = $row["numpage"];
     }
     $this->lg = $row["lg"];
     $this->nomPageGoogle = $row["nom"];
     $this->titrePage = miseEnForme($row["titre"]);
     $this->descrPage = $row["description"];
     $this->keywPage = $row["keywords"];
     $this->aliasPage = $row["alias"];
     $this->hcreaPage = $row["hcrea"];
     $this->hmodifPage = $row["hmodif"];
     $this->publiePage = $row["publiee"];
     $this->accueilPage = $row["accueil"];
     $this->accueilSite = $row["accueil_site"];
     $this->id_c = $row["iduti_c"];
     $this->id_m = $row["iduti_m"];
     if ($row["iduti_m"]) {
         $riw = SelectMultiple("if_utilisateur", "iduti", $row["iduti_m"]);
     } else {
         $riw = SelectMultiple("if_utilisateur", "iduti", $row["iduti_c"]);
     }
     $this->auteur = $riw["prenom"] . " " . $riw["nom"];
     $this->nomFichier = $row["specifique"];
     //La bandeau photo de la page
     $laPhoto = new Photo();
     $laPhoto->numphoto = $row["numphoto"];
     $laPhoto->infosPhoto();
     $this->nomPhoto = $laPhoto->nomPhoto;
     //A quelles rubriques, catégories, et sous-catégories est liée la page ?
     $leMenu = new Menu();
     $leMenu->type = "sscateg";
     $leMenu->champ = "numpage";
     $leMenu->valeur = $this->numpage;
     $row = $leMenu->isMenu();
     $result = mysql_query("SELECT if_categorie.numrub,if_sscateg.numcateg,if_sscateg.numsscateg FROM if_categorie,if_sscateg WHERE if_sscateg.numpage='{$this->numpage}' AND if_sscateg.numcateg=if_categorie.numcateg");
     if (mysql_numrows($result) > 0) {
         while ($row = mysql_fetch_row($result)) {
             $this->list_numsscateg[] = $row[2];
             $this->numsscateg = $row[2];
             $this->numcateg = $row[1];
             $this->numrub = $row[0];
         }
     }
     $result = mysql_query("SELECT numrub,numcateg FROM if_categorie WHERE numpage='{$this->numpage}'");
     if (mysql_numrows($result) > 0) {
         while ($row = mysql_fetch_row($result)) {
             $this->list_numcateg[] = $row[1];
             if (!$this->numcateg) {
                 $this->numcateg = $row[1];
             }
             if (!$this->numrub) {
                 $this->numrub = $row[0];
             }
         }
     }
     $result = mysql_query("SELECT numrub FROM if_rubrique WHERE numpage='{$this->numpage}'");
     if (mysql_numrows($result) > 0) {
         while ($row = mysql_fetch_row($result)) {
             $this->list_numrub[] = $row[0];
             if (!$this->numrub) {
                 $this->numrub = $row[0];
             }
         }
         //fin du while
     }
     //fin du if
 }
Example #12
0
 /**
  * Récupère les différentes infos concernant, afin de pouvoir les afficher
  */
 function infosVideo()
 {
     if ($this->numparavideo) {
         $row = SelectMultiple("if_para_video", "numparavideo", $this->numparavideo);
         $this->legendeVideo = $row["legende"];
         $this->ordreVideo = $row["ordre"];
         $this->numvideo = $row["numvideo"];
         $row = SelectMultiple("if_video", "numvideo", $this->numvideo);
         $this->nomVideo = $row["nom_video"];
     } else {
         $row = SelectMultiple("if_video", "numvideo", $this->numvideo);
         $this->nomVideo = $row["nom_video"];
     }
 }
Example #13
0
 /**
  * Récupère toutes les informations concernant un contact
  */
 function infosContact()
 {
     $row = SelectMultiple("if_contacts", "numcontact", $this->numcontact);
     $this->nom = $row["nom"];
     $this->prenom = $row["prenom"];
     $this->genre = $row["genre"];
     $this->fonction = $row["fonction"];
     $this->email = $row["email"];
     $this->tel = $row["tel"];
     $this->fax = $row["fax"];
     $this->gsm = $row["gsm"];
     $this->referent = $row["referent"];
 }
Example #14
0
 /**
  * Liste les infos du fichier
  */
 function infosFichier()
 {
     if ($this->numparafichier) {
         $row = SelectMultiple("if_para_fichier", "numparafichier", $this->numparafichier);
         $this->libFichier = $row["libelle"];
         $this->ordreFichier = $row["ordre"];
         $this->numfichier = $row["numfichier"];
         $row = SelectMultiple("if_fichier", "numfichier", $this->numfichier);
         if (file_exists("fichiers/" . $row["nom_fichier"])) {
             $this->nomFichier = $row["nom_fichier"];
             $poidsKo = filesize("fichiers/" . $this->nomFichier) / 1024;
             if ($poidsKo < 100) {
                 $this->poidsFichier = round($poidsKo) . " Ko";
             } else {
                 $this->poidsFichier = number_format($poidsKo / 1024, 1, ",", "") . " Mo";
             }
         }
     } else {
         $row = SelectMultiple("if_fichier", "numfichier", $this->numfichier);
         if (file_exists("fichiers/" . $row["nom_fichier"])) {
             $this->nomFichier = $row["nom_fichier"];
             $poidsKo = filesize("fichiers/" . $this->nomFichier) / 1024;
             if ($poidsKo < 100) {
                 $this->poidsFichier = round($poidsKo) . " Ko";
             } else {
                 $this->poidsFichier = number_format($poidsKo / 1024, 1, ",", "") . " Mo";
             }
         }
     }
 }
 /**
  * R&eacute;cup&egrave;re les infos de livraison
  */
 function infosLivraison()
 {
     $row = SelectMultiple("if_bo_livfact", "numlivfact", $this->numlivfact);
     $this->nom_f = $row["nom_f"];
     $this->prenom_f = $row["prenom_f"];
     $this->tel_f = $row["tel_f"];
     $this->fax_f = $row["fax_f"];
     $this->raison_f = $row["raison_f"];
     $this->adr1_f = $row["adr1_f"];
     $this->adr2_f = $row["adr2_f"];
     $this->cp_f = $row["cp_f"];
     $this->ville_f = $row["ville_f"];
     $this->pays_f = $row["numpays_f"];
     $this->nompays_f = utf8_encode(SelectSimple("pays", "if_pays", "numpays", $this->pays_f));
     $this->nom_l = $row["nom_l"];
     $this->prenom_l = $row["prenom_l"];
     $this->tel_l = $row["tel_l"];
     $this->fax_l = $row["fax_l"];
     $this->raison_l = $row["raison_l"];
     $this->adr1_l = $row["adr1_l"];
     $this->adr2_l = $row["adr2_l"];
     $this->cp_l = $row["cp_l"];
     $this->ville_l = $row["ville_l"];
     $this->pays_l = $row["numpays_l"];
     $this->nompays_l = utf8_encode(SelectSimple("pays", "if_pays", "numpays", $this->pays_l));
 }
 /** 
  * R&eacute;cup&egrave;re chaque information li&eacute;es &agrave; un utilisateur, afin de les afficher 
  */
 function infosUti()
 {
     $row = SelectMultiple("if_utilisateur", "numuti", $this->numuti);
     $this->iduti = $row["iduti"];
     $this->nom = $row["nom"];
     $this->prenom = $row["prenom"];
     $this->login = $row["login"];
     $this->pwd = easy($row["pwd"], "d");
     $this->admin = $row["admin"];
     $this->actif = $row["actif"];
 }