*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-12-21 19:31:45 +00:00
parent 2d36a4678f
commit 62be94f4fe
2 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html lang="fr">
<head>
<!-- $Id$ -->
<script language="php">
require("../../conf/conf.class.php3");
require("../../lib/mysql.lib.php3");
require("../../don.class.php");
</script>
</head>
<body>
<div class="main">
<h1>Liste des donateurs.</h1>
<p>
Nous tenons à remercier toutes les personnes qui ont fait un
don à la FSF France pour soutenir le droit à la copie privée.
</p>
<script language="php">
require("donateurs_code.php");
</script>
</div>
</body>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

View File

@ -0,0 +1,78 @@
<?PHP
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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 "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print '<TR>';
print "<td>Nom</td>";
print "<td>Date</td>";
print "<td align=\"right\">Montant</TD>";
print "</TR>\n";
$var=True;
$bc[1]='bgcolor="#f5f5f5"';
$bc[0]='bgcolor="#f0f0f0"';
while ($i < $num)
{
$objp = $db->fetch_object( $i);
$var=!$var;
print "<TR $bc[$var]>";
if ($objp->public)
{
print "<td>".stripslashes($objp->nom)."</TD>\n";
}
else
{
print "<td>Anonyme Anonyme</TD>\n";
}
print "<TD>".strftime("%d %B %Y",$objp->datedon)."</td>\n";
print '<TD align="right">'.number_format($objp->amount,2,'.',' ').' euros</TD>';
print "</tr>";
$i++;
}
print "</table>";
}
}
else
{
print $db->error();
}
$db->close();
?>