[ Index ]
 

Code source de SPIP 1.9.2c

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/ecrire/exec/ -> sites_tous.php (source)

   1  <?php
   2  
   3  /***************************************************************************\
   4   *  SPIP, Systeme de publication pour l'internet                           *
   5   *                                                                         *
   6   *  Copyright (c) 2001-2007                                                *
   7   *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
   8   *                                                                         *
   9   *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  10   *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
  11  \***************************************************************************/
  12  
  13  if (!defined("_ECRIRE_INC_VERSION")) return;
  14  
  15  include_spip('inc/presentation');
  16  include_spip('inc/sites_voir');
  17  
  18  // http://doc.spip.org/@exec_sites_tous_dist
  19  function exec_sites_tous_dist()
  20  {
  21      global $connect_statut, $options;
  22  
  23  pipeline('exec_init',array('args'=>array('exec'=>'sites_tous'),'data'=>''));
  24  $commencer_page = charger_fonction('commencer_page', 'inc');
  25  echo $commencer_page(_T('titre_page_sites_tous'),"naviguer","sites");
  26  debut_gauche();
  27  echo pipeline('affiche_gauche',array('args'=>array('exec'=>'sites_tous'),'data'=>''));
  28  creer_colonne_droite();
  29  echo pipeline('affiche_droite',array('args'=>array('exec'=>'sites_tous'),'data'=>''));      
  30  debut_droite();
  31  
  32   echo afficher_sites('<b>' . _T('titre_sites_tous') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "syndication='non' AND statut='publie'", 'ORDER BY'=> "nom_site"));
  33  
  34   echo afficher_sites('<b>' . _T('titre_sites_syndiques') . '</b>', array('FROM' => 'spip_syndic', 'WHERE' => "(syndication='oui' OR syndication='sus') AND statut='publie'", 'ORDER BY' => "nom_site"));
  35  
  36   echo afficher_sites('<b>' . _T('titre_sites_proposes') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "statut='prop'", 'ORDER BY' => "nom_site"));
  37  
  38  if ($connect_statut == '0minirezo' OR $GLOBALS['meta']["proposer_sites"] > 0) {
  39      echo "<div align='right'>";
  40      icone(_T('icone_referencer_nouveau_site'), generer_url_ecrire('sites_edit'), "site-24.gif", "creer.gif");
  41      echo "</div>";
  42  }
  43  
  44  echo pipeline('affiche_milieu',array('args'=>array('exec'=>'sites_tous'),'data'=>''));      
  45  
  46  
  47   echo afficher_sites('<b>' . _T('avis_sites_probleme_syndication') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "syndication='off' AND statut='publie'", 'ORDER BY' => "nom_site"));
  48  
  49  if ($options == 'avancees' AND $connect_statut == '0minirezo') {
  50    echo afficher_sites('<b>' . _T('info_sites_refuses') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "statut='refuse'", 'ORDER BY' => "nom_site"));
  51  }
  52  
  53   echo afficher_syndic_articles('<b>' . _T('titre_dernier_article_syndique') . '</b>', array('FROM' => 'spip_syndic_articles', 'ORDER BY' => "date DESC",  'LIMIT' => "50"));
  54  
  55  echo fin_gauche(), fin_page();
  56  }
  57  
  58  ?>


Généré le : Wed Nov 21 10:20:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics