[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / afficher_objets / inc / lister_objets.php
diff --git a/www/plugins/auto/afficher_objets/inc/lister_objets.php b/www/plugins/auto/afficher_objets/inc/lister_objets.php
new file mode 100644 (file)
index 0000000..2c5e4b0
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2010                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+
+
+/**
+ * affichage des liste d'objets
+ * surcharge pour aiguiller vers la mise en skel
+ *
+ * @param string $vue
+ * @param string $titre
+ * @param array $requete
+ * @param string $formater
+ * @param bool $force
+ * @return string
+ */
+function inc_lister_objets_dist($vue, $contexte=array(), $force=false){
+       $res = ""; // debug
+       $fond = "prive/liste/$vue";
+       
+       $contexte['sinon']=($force ? $contexte['titre']:'');
+
+       $res = recuperer_fond($fond,$contexte,array('ajax'=>true));
+       if (_request('var_liste'))
+               var_dump($contexte);
+               
+       return $res;
+}
+
+?>
\ No newline at end of file