<br /> <br /> <a href="index.php?id=<?php echo $id; ?> &cnx=<?php echo $cnx; ?> &pg_admin=ajouter-breve">Ajouter une brève internationale</a> <br /><br /> </p> <?php $listbreves = new ListeParagraphes(); $listbreves->breve = 1; $listbreves->req_breve = " ORDER BY date DESC"; $nb_breves = $listbreves->afficherListeParas(); if ($nb_breves) { ?> <table width="100%"> <tr class="entete"><td>Titre</td><td>Pays</td><td>Date</td><td>Actions</td></tr> <?php $cl = ""; foreach ($listbreves as $paras) { if (!$cl) { $cl = "class=\"fond_clair\""; } else { $cl = ""; } ?> <tr <?php echo $cl;
?> <?php if ($dom) echo"<h2>".$menus_forma->nomMenu."</h2>";?> <div class="positionnement"> <p><strong>Aucune formation ne correspond à vos critères de recherche</strong></p> </div> <?php }//fin else if ($dom) ?> <!-- Fin affichage contenu non dynamique --> <p> </p> <p> </p> <?php $listparas1=new ListeParagraphes(); $listparas1->numpage=$laPage->numpage; if ($laPage->C0) $listparas1->colonne=0; else if ($laPage->C1) $listparas1->colonne=1; $listparas1->afficherListeParas(); foreach ($listparas1 as $paras) { if ($paras->titrePara) { echo "<".$paras->typeTitre.">"; echo $paras->titrePara; echo "</".$paras->typeTitre.">"; }//fin if ($paras->titrePara) //les liens (pour mettre un lien sur une photo - l'affichage est realise plus bas) $url_lien=""; $libelle_lien=""; $fenetre_lien=""; $listliens=new ListeLiens(); $listliens->numpara= $paras->numpara;
$listdoc->req_doc = $req_doc; $listdoc->borneinf = $s; $listdoc->bornesup = $nbdocsparpage; $nb_doc_rech = $listdoc->afficherListeParas(); $total = $nb_doc_rech; } else { if ($numpara) { //fin else if ($rech) : 1 doc de sélectionnée (par ex via la page d'accueil) $listdoc = new ListeParagraphes(); $listdoc->doc = 1; $listdoc->docvcourte = 1; $req_doc = " WHERE numpara=" . $numpara; $listdoc->req_doc = $req_doc; $listdoc->borneinf = $s; $listdoc->bornesup = $nbdocsparpage; $nb_doc_numpara = $listdoc->afficherListeParas(); $total = $nb_doc_numpara; } } } } } } // fin else if ($numpara) /*----------------- Affichage des resultats ---------------------------------------------------------*/ if ($nb_doc_menu || $nb_doc_date || $nb_doc_type || $nb_doc_rech || $nb_doc_numpara) { // Il y a des résultats aux critères sélectionnés ?> <div class="positionnement"> <h4><?php echo "Résultat de la recherche";
$listdoc->bornesup = $nbdocsparpage; if ($critere == "acces_res") { $req_doc = " WHERE acces_res='o'"; } else { if ($critere == "nonpubliee") { $req_doc = " WHERE publiee!='o'"; } else { if ($critere == "anciennedate") { $req_doc = " WHERE date='0'"; } } } $req_doc .= "ORDER BY date DESC"; //remise en service (plus tri sur le tableau des objets) $listdoc->req_doc = $req_doc; $nb_doc_critere = $listdoc->afficherListeParas(); $total = $nb_doc_critere; } } } } } } } // fin else if ($numpara) ?> <br />
"><?php echo $paras->titrePara; ?> </option> <?php } ?> </select> <br /> --> <?php if (!$numpara) { $listform = new ListeParagraphes(); $listform->formation = 1; $listform->tri_date = " WHERE sur_mesure='o' AND validee!='o' ORDER BY titre"; $nb_form = $listform->afficherListeParas(); if ($nb_form) { ?> <table> <tr class="entete"><td>Formation</td><td>Nombre d'inscrits<td></td></tr> <?php foreach ($listform as $paras) { if (!$cl) { $cl = "class=\"fond_clair\""; } else { $cl = ""; } ?> <tr <?php echo $cl; ?>
echo $paras->numpara; ?> = 2; var nextHiddenIndexV<?php echo $paras->numpara; ?> = 2; var nextHiddenIndexF<?php echo $paras->numpara; ?> = 2; <?php //recupère le nombre de paragraphes $nombrePara = new ListeParagraphes(); $nombrePara->numpage = $numpage; $nombre_Para = $nombrePara->afficherListeParas(); $array[] = $paras->numpara; ?> window.onload = function() { for (i=1; i<<?php echo $array[0]; ?> ; i++){ window["oFCKeditor_"+i] = new FCKeditor('textCont<?php echo $paras->numpara; ?> ') ; window["oFCKeditor_"+i].ToolbarSet = 'Basic' ; window["oFCKeditor_"+i].BasePath = 'admin/fckeditor/' ;
$nb_doc_une=$listedoc->afficherListeParas(); } //fin if else ?> <p> <br /> </td> <td> </td> <td width="250"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php $nb_doc=0; $dernieresParu=new ListeParagraphes(); $dernieresParu->doc=1; $dernieresParu->req_doc=" WHERE type_doc='5' ORDER BY date DESC LIMIT 0,3"; $nb_doc=$dernieresParu->afficherListeParas(); $pageSpecCommande=new Page(); $pageSpecCommande->pageSpecifique("panier-ifip-institut-du-porc"); if ($nb_doc) { foreach ($dernieresParu as $paras) { $nom_fiche=""; $listfichiers=new ListeFichiers(); $listfichiers->numpara= $paras->numpara; $nb_fichiers=$listfichiers->afficherListeFichiers(); foreach ($listfichiers as $fichiers) { $nom_fiche=$fichiers->nomFichier; break; } ?> <tr> <td width="10"><span class="carreliens"> </span></td>
<!-- <label for="textPwdCpte">Votre mot de passe :</label> <input type="password" id="textPwdClient" name="textPwdClient" class="public"/> <br /> --> <br /> <br /> <br /> <?php $listedoc=new ListeParagraphes(); $listedoc->doc=1; $req_doc=" WHERE publiee='o' AND acces_res='o' ORDER BY date DESC LIMIT 0,20"; $listedoc->req_doc=$req_doc; $nb_doc=$listedoc->afficherListeParas(); if ($nb_doc) { ?> <h2>Dernières mises en ligne : </h2> <ul> <?php foreach ($listedoc as $paras) { echo"<li>".$paras->titrePara."</li>"; } ?> </ul> <?php }//fin if ($nb_doc) ?> <br /> <input type="hidden" name="numpara" value="<?=$numpara?>"/>
La mise en page est automatique : titre gras, lien etc. <br /> <br /> <a href="index.php?id=<?php echo $id; ?> &cnx=<?php echo $cnx; ?> &pg_admin=ajouter-actu">Ajouter une brève d'actualité</a> <br /><br /> </p> <?php $listactus = new ListeParagraphes(); $listactus->actu = 1; $listactus->req_actu = " ORDER BY titre"; $nb_actus = $listactus->afficherListeParas(); if ($nb_actus) { ?> <table width="500"> <tr class="entete"><td>Titre</td> <td>Affichage accueil </td> <td>Actions</td></tr> <?php $cl = ""; foreach ($listactus as $paras) { if (!$cl) { $cl = "class=\"fond_clair\""; } else { $cl = ""; } ?>