From 62be94f4fee3dcb8310ec1435dee3ccdc6dc5d6d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 21 Dec 2002 19:31:45 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/public/dons/donateurs.xhtml | 35 ++++++++++++ htdocs/public/dons/donateurs_code.php | 78 +++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 htdocs/public/dons/donateurs.xhtml create mode 100644 htdocs/public/dons/donateurs_code.php diff --git a/htdocs/public/dons/donateurs.xhtml b/htdocs/public/dons/donateurs.xhtml new file mode 100644 index 00000000000..7e31d0bb477 --- /dev/null +++ b/htdocs/public/dons/donateurs.xhtml @@ -0,0 +1,35 @@ + + + + + + + + + +
+

Liste des donateurs.

+ +

+ Nous tenons à remercier toutes les personnes qui ont fait un + don à la FSF France pour soutenir le droit à la copie privée. +

+ +
+ + + + diff --git a/htdocs/public/dons/donateurs_code.php b/htdocs/public/dons/donateurs_code.php new file mode 100644 index 00000000000..b81569e03e5 --- /dev/null +++ b/htdocs/public/dons/donateurs_code.php @@ -0,0 +1,78 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + * + */ + + +$conf = new Conf(); +$db = new Db(); + +$sql = "SELECT ".$db->pdate("d.datedon")." as datedon, d.nom, d.amount, d.public"; +$sql .= " FROM llx_don as d"; +$sql .= " WHERE d.fk_don_projet = 1 AND d.fk_statut = 3 ORDER BY d.datedon DESC"; + +if ( $db->query( $sql) ) +{ + $num = $db->num_rows(); + if ($num) + { + + print ""; + + print ''; + print ""; + print ""; + print ""; + print "\n"; + + $var=True; + $bc[1]='bgcolor="#f5f5f5"'; + $bc[0]='bgcolor="#f0f0f0"'; + while ($i < $num) + { + $objp = $db->fetch_object( $i); + + $var=!$var; + print ""; + if ($objp->public) + { + print "\n"; + } + else + { + print "\n"; + } + print "\n"; + print ''; + print ""; + $i++; + } + print "
NomDateMontant
".stripslashes($objp->nom)."Anonyme Anonyme".strftime("%d %B %Y",$objp->datedon)."'.number_format($objp->amount,2,'.',' ').' euros
"; + + } +} +else +{ + print $db->error(); +} + +$db->close(); + +?>