diff --git a/admin/fundraising.php b/admin/fundraising.php
index 0da80b0..cda239f 100644
--- a/admin/fundraising.php
+++ b/admin/fundraising.php
@@ -122,13 +122,15 @@ $q=mysql_query("SELECT * FROM fundraising_goals WHERE fiscalyear='{$config['FISC
=i18n("To Do List")?>
-Thank You's
+=i18n("Thank You's")?>
-$q=mysql_query("SELECT value, thanked, status, users_uid, sponsors_id, datereceived
+$q=mysql_query("SELECT value, thanked, status, users_uid, sponsors_id, datereceived,
+ DATE_ADD(datereceived, INTERVAL 1 MONTH) < NOW() AS onemonth,
+ DATE_ADD(datereceived, INTERVAL 2 MONTH) < NOW() AS twomonth
FROM fundraising_donations
WHERE thanked='no' AND status='received'
- AND fiscalyear='{$config['FISCALYEAR']}
- ORDER BY datereceived'
+ AND fiscalyear='{$config['FISCALYEAR']}'
+ ORDER BY datereceived
");
//AND (users.year IS NULL OR users.year='{$config['FISCALYEAR']}')
echo mysql_error();
@@ -141,15 +143,20 @@ if(mysql_num_rows($q)) {
echo "\n";
while($r=mysql_fetch_object($q)) {
+ /*
if($r->users_uid) {
$dq=mysql_query("SELECT CONCAT(firstname,' ',lastname) AS name FROM users WHERE uid='$r->users_uid' ORDER BY fairyear DESC LIMIT 1");
-
}
else if ($r->sponsors_id) {
+ */
$dq=mysql_query("SELECT organization AS name FROM sponsors WHERE id='$r->sponsors_id'");
- }
+ // }
$dr=mysql_fetch_object($dq);
- echo "";
+ if($r->twomonth) $s="style=\"background-color: ".colour_to_percent(0).";\"";
+ else if($r->onemonth) $s="style=\"background-color: ".colour_to_percent(50).";\"";
+ else $s="";
+
+ echo "
";
echo " $dr->name | ";
echo " ".format_date($r->datereceived)." | ";
echo " ".format_money($r->value)." | ";
@@ -165,7 +172,7 @@ if(mysql_num_rows($q)) {
?>
-Appeal Follow-Ups
+=i18n("Appeal Follow-Ups")?>
$q=mysql_query("SELECT * FROM fundraising_campaigns WHERE followupdate>=NOW() ORDER BY followupdate LIMIT 5");
echo mysql_error();