[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 include ("inc.php"); 20 /* Ajout Clever Age / Antoine Angénieux / Couche métier */ 21 require_once (dirname(__FILE__). "/include/bd/inc_article_factory.php"); 22 require_once (dirname(__FILE__). "/include/bd/inc_breve_factory.php"); 23 require_once (dirname(__FILE__). "/include/bd/inc_forum_factory.php"); 24 require_once (dirname(__FILE__). "/include/bd/inc_article_list_factory.php"); 25 require_once (dirname(__FILE__). "/include/bd/inc_rubrique_list_factory.php"); 26 require_once (dirname(__FILE__). "/include/bd/inc_breve_list_factory.php"); 27 /* fin zone de modification Clever Age */ 28 29 debut_page(_T('titre_page_forum_suivi'), "suivi", "forum-controle"); 30 31 if (!$page) 32 $page = "public"; 33 34 echo "<br><br><br>"; 35 gros_titre (_T('titre_forum_suivi')); 36 37 barre_onglets("suivi_forum", $page); 38 39 debut_gauche(); 40 41 debut_boite_info(); 42 echo "<font face='arial,helvetica,sans-serif'>"; 43 echo "<B>" . _T('recherche_forum'). "</B><BR>"; 44 45 echo "\n\n<form action='recherche_forum.php' method='POST' name='formulaire_recherche'>"; 46 echo "<input type='text' name='recherche_forum' value='$recherche' id='recherche' CLASS='fondo' >"; 47 48 $typeRecherche = 'sujet,message'; 49 50 echo "<INPUT TYPE='submit' NAME='Afficher_recherche' CLASS='fondo' VALUE='OK'>"; 51 echo '<br>'; 52 53 if (ereg('sujet', $typeRecherche)) { 54 echo "<input type='checkbox' name='typeRecherche[]' value='sujet' id='sujet' CHECKED>"; 55 } 56 else { 57 echo "<input type='checkbox' name='typeRecherche[]' value='sujet' id='sujet'>"; 58 } 59 60 echo " <label for='sujet'>"; 61 echo " " . _T('sujet'); 62 echo "<br></label>"; 63 64 if (ereg('message', $typeRecherche)) { 65 echo "<input type='checkbox' name='typeRecherche[]' value='message' id='message' CHECKED>"; 66 } 67 else { 68 echo "<input type='checkbox' name='typeRecherche[]' value='message' id='message'>"; 69 } 70 71 echo " <label for='message'>"; 72 echo " " . _T('message'); 73 echo "<br></label>"; 74 75 if ($id_current_forum AND $type_forum) { 76 if (ereg('danstouslesforums', $typeRecherche)) { 77 echo "<input type='checkbox' name='typeRecherche[]' value='danstouslesforums' id='danstouslesforums' CHECKED>"; 78 } 79 else { 80 echo "<input type='checkbox' name='typeRecherche[]' value='danstouslesforums' id='danstouslesforums'>"; 81 } 82 83 echo " <label for='danstouslesforums'>"; 84 //echo " "; 85 //echo " "; 86 echo " " . _T('danstouslesforums'); 87 } 88 else { 89 echo "<input type='hidden' name='typeRecherche[]=danstouslesforums' value='danstouslesforums' id='danstouslesforums'>"; 90 } 91 92 echo "</FONT>"; 93 echo "</form>"; 94 95 fin_boite_info(); 96 97 debut_boite_info(); 98 99 echo "<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=2>"; 100 echo _T('info_gauche_suivi_forum_2'); 101 102 echo aide("suiviforum"); 103 echo "</FONT>"; 104 105 fin_boite_info(); 106 107 // 108 // Raccourcis 109 // 110 $activer_stats = lire_meta("activer_statistiques"); 111 /********Modification Authorization elebescond@clever-age.com***************************/ 112 $authorization = &recuperer_instance_authorization('afficherIconeStatistique', $GLOBALS['connect_id_auteur'], 113 array('connect_toutes_rubriques' => 0)); 114 115 if ($authorization->isAuthorizedAction()) { 116 /* 117 //if (($activer_stats != "non") AND ($connect_statut == 'minirezo')) { 118 */ 119 /*****************FIN modif authorization***********************************************/ 120 debut_raccourcis(); 121 icone_horizontale(_T('icone_evolution_visites_2'), "statistiques_visites.php", "statistiques-24.gif", "rien.gif"); 122 fin_raccourcis(); 123 } 124 125 debut_droite(); 126 127 $mots_cles_forums = lire_meta("mots_cles_forums"); 128 129 // 130 // Debut de la page de controle 131 // 132 133 echo "<div class='serif2'>"; 134 135 /* 136 if ($connect_statut != "minirezo" OR !$connect_toutes_rubriques) { 137 echo "<B>"._T('avis_non_acces_page')."</B>"; 138 exit; 139 } 140 */ 141 142 $articleList = recuperer_instance_list_articles(); 143 $queryParams = array(); 144 $articleList->displayHTMLList(_T('forum_att_article'), ARTICLES_FORUM_MESSAGE, $queryParams); 145 146 $rubriqueList = recuperer_instance_list_rubriques(); 147 $queryParams = array(); 148 $rubriqueList->displayHTMLList(_T('forum_att_rubrique'), RUBRIQUES_FORUM_MESSAGE, $queryParams); 149 150 $breveList = recuperer_instance_list_breves(); 151 $queryParams = array(); 152 $breveList->displayHTMLList(_T('forum_att_breve'), BREVES_FORUM_MESSAGE, $queryParams); 153 154 fin_page(); 155 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |