function afficherListeLiens()
 {
     $result = mysql_query("SELECT * FROM if_liens WHERE numpara='{$this->numpara}' ORDER BY ordre");
     while ($row = mysql_fetch_array($result)) {
         $unLien = new Lien();
         $afficheLien = true;
         if ($row["numpage"] && !$this->admin) {
             //Le lien est une page existante interne, on est dans le site public => on recherche si la page est publiée
             $laPage = new Page();
             $laPage->numpage = $row["numpage"];
             $laPage->infosPage();
             if ($laPage->publiePage == 'n') {
                 $afficheLien = false;
             }
         }
         if ($afficheLien) {
             $unLien->numlien = $row["numlien"];
             $unLien->libLien = $row["libelle"];
             $unLien->texteLien = miseEnForme($row["texte"]);
             $unLien->urlLien = $row["url"];
             $unLien->ordreLien = $row["ordre"];
             $unLien->fenLien = $row["fenetre"];
             $this->liens[] = $unLien;
         }
     }
     if (count($this->liens) >= 1) {
         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"];
 }
				?>
				<div id="colBoxFarRightFlotte">
				 <div id="colBoxFarRightFlotteint">
				<?php
				// affichage des contacts
				if ($nb_cont) {
				?>
						 <div class="titre185">Contact<? if ($nb_cont>1) echo"s";?></div>
						 <?php
						  for ($i=0;$i<count($menuCont->listcontact);$i++) { 
							$leContact=	$menuCont->listcontact[$i];
							$pageSpec=new Page();
							$pageSpec->pageSpecifique("contact");
						?>  
						  <p><strong><?=$leContact->prenom." ".$leContact->nom?></strong><br /> 
						  <?=miseEnForme($leContact->fonction)?><br />
						  <? if($leContact->tel) echo "<span class=\"carreliens\">Tél.&nbsp;".$leContact->tel."</span><br />";?>
						  <a href="index.php?spec=contact&numpage=<?=$pageSpec->numpage?>&numrub=<?=$pageSpec->numrub?>&numcateg=<?=$pageSpec->numcateg?>&numsscateg=<?=$pageSpec->numsscateg?>&numcontact=<?=$leContact->numcontact?>&lg=<?=$lg?>" class="carreliens">Envoyer un courriel</a><br /><br /></p>
							
						<?php  
						  }// fin du for ($i=0;$i<count($menuCont->listcontact);$i++)
						 ?>
						 <div class="spacer"></div>
						 <?php 
				}//fin if ($nb_cont)
				
				?>
				 <!-- end of colBoxFarRightFlotteint -->
				 </div>
				 <!-- end of colBoxFarRightFlotte -->
				</div>
 /**
  * R&eacute;cup&egrave;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"];
     }
 }
        if ($nb_cont) {
            ?>
						 <div class="titre185">Contact<? if ($nb_cont>1) echo"s";?></div>
						 <?php 
            for ($i = 0; $i < count($menuCont->listcontact); $i++) {
                $leContact = $menuCont->listcontact[$i];
                $pageSpec = new Page();
                $pageSpec->pageSpecifique("contact");
                ?>
  
						  <p><strong><?php 
                echo $leContact->prenom . " " . $leContact->nom;
                ?>
</strong><br /> 
						  <?php 
                echo miseEnForme($leContact->fonction);
                ?>
<br />
						  <? if($leContact->tel) echo "<span class=\"carreliens\">Tél.&nbsp;".$leContact->tel."</span><br />";?>
						  <a href="index.php?spec=contact&numpage=<?php 
                echo $pageSpec->numpage;
                ?>
&numrub=<?php 
                echo $pageSpec->numrub;
                ?>
&numcateg=<?php 
                echo $pageSpec->numcateg;
                ?>
&numsscateg=<?php 
                echo $pageSpec->numsscateg;
                ?>
 /**
  * Affiche les infos de la br&egrave;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"];
 }
Exemple #8
0
            }
            $remplacant[$nb]['num'] = $num;
            $remplacant[$nb]['maillot'] = $maillot;
            $remplacant[$nb]['nom'] = $nom;
        }
        $nb++;
    }
    //Traitement portefeuille
    $portefeuille = extrait($membreinfo, 'Portefeuille', 'M');
    $achat = extrait($membreinfo, 'Valeur achat', 'M');
    $vente = extrait($membreinfo, 'Valeur vente', 'M');
    $Tpl->chargeBuffer($page);
    miseEnForme($gardien, 1);
    miseEnForme($defenseur, 2);
    miseEnForme($milieu, 3);
    miseEnForme($attaquant, 4);
    $str = '<img id="5a1" width="30" border="0" src="' . $entraineur[0]['maillot'] . '" value="' . $entraineur[0]['num'] . '" ><p>' . $entraineur[0]['nom'] . '</p>';
    $Tpl->Parse('entraineur', $str);
    $str = '<img id="6a1" width="30" border="0" src="' . $remplacant[0]['maillot'] . '" value="' . $remplacant[0]['num'] . '" ><p>' . $remplacant[0]['nom'] . '</p>';
    $Tpl->Parse('remp1', $str);
    $str = '<img id="6a2" width="30" border="0" src="' . $remplacant[1]['maillot'] . '" value="' . $remplacant[1]['num'] . '" ><p>' . $remplacant[1]['nom'] . '</p>';
    $Tpl->Parse('remp2', $str);
    $str = '<img id="6a3" width="30" border="0" src="' . $remplacant[2]['maillot'] . '" value="' . $remplacant[2]['num'] . '" ><p>' . $remplacant[2]['nom'] . '</p>';
    $Tpl->Parse('remp3', $str);
    $Tpl->Parse('portefeuille', $portefeuille);
    $Tpl->Parse('achat', $achat);
    $Tpl->Parse('vente', $vente);
    echo utf8_encode($Tpl->output());
}
if ($action == 'vendretout') {
    toutVendre($cookie);
 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&eacute;cup&egrave;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"];
 }
 /**
  * Va r&eacute;p&eacute;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
 }