Subversion Repositories Sites.tela-botanica.org

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7 david 1
<?php
2
 
3
/***************************************************************************\
4
 *  SPIP, Systeme de publication pour l'internet                           *
5
 *                                                                         *
6
 *  Copyright (c) 2001-2005                                                *
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
 
14
include ("inc.php3");
15
 
16
if ($statut AND $connect_statut == "0minirezo") {
17
	$query="UPDATE spip_breves SET date_heure=NOW(), statut='$statut' WHERE id_breve=$id_breve";
18
	$result=spip_query($query);
19
	calculer_rubriques();
20
	redirige_par_entete("breves.php3");
21
}
22
 
23
 
24
 
25
debut_page(_T('titre_page_breves'), "documents", "breves");
26
debut_gauche();
27
 
28
echo "<P align=left>";
29
 
30
debut_droite();
31
 
32
 
33
 
34
function enfant($leparent){
35
	global $spip_lang_left, $spip_lang_right;
36
 
37
 	$query="SELECT * FROM spip_rubriques WHERE id_parent='$leparent' ORDER BY 0+titre, titre";
38
 	$result=spip_query($query);
39
 
40
 	while($row=spip_fetch_array($result)){
41
		$id_rubrique=$row['id_rubrique'];
42
		$id_parent=$row['id_parent'];
43
		$titre=typo($row['titre']);
44
		$descriptif=$row['descriptif'];
45
		$texte=$row['texte'];
46
 
47
		debut_cadre_enfonce("secteur-24.gif", false, '', $titre.aide ("breves"));
48
 
49
		if ($GLOBALS['connect_statut'] == "0minirezo") $statuts = "'prop', 'refuse', 'publie'";
50
		else $statuts = "'prop', 'publie'";
51
 
52
		$query = "SELECT id_breve, date_heure, titre, statut FROM spip_breves ".
53
			"WHERE id_rubrique='$id_rubrique' AND statut IN ($statuts) ORDER BY date_heure DESC";
54
		afficher_breves('', $query);
55
		echo "<div align='$spip_lang_right'>";
56
		icone(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui&id_rubrique=$id_rubrique", "breve-24.gif", "creer.gif");
57
		echo "</div>";
58
 
59
		fin_cadre_enfonce();
60
 
61
	}
62
}
63
 
64
 
65
 
66
enfant(0);
67
 
68
 
69
fin_page();
70
 
71
?>
72