Add missing fields to dashboard

This commit is contained in:
james 2009-10-20 18:55:17 +00:00
parent 395ed4d084
commit ee995654b3

View File

@ -196,16 +196,20 @@ if(mysql_num_rows($q)) {
<br /> <br />
<h4>Upcoming Proposals</h4> <h4>Upcoming Proposals</h4>
<? <?
$q=mysql_query("SELECT * FROM sponsors WHERE fundingselectiondate>=NOW() ORDER BY fundingselectiondate LIMIT 5"); $q=mysql_query("SELECT * FROM sponsors WHERE fundingselectiondate>=NOW() OR proposalsubmissiondate>=NOW() ORDER BY fundingselectiondate LIMIT 5");
echo mysql_error(); echo mysql_error();
if(mysql_num_rows($q)) { if(mysql_num_rows($q)) {
echo "<table class=\"tableview\">"; echo "<table class=\"tableview\">";
echo "<tr>"; echo "<tr>";
echo " <th>".i18n("Name")."</th>\n"; echo " <th>".i18n("Name")."</th>\n";
echo " <th>".i18n("Funding Selection Date")."</th>\n"; echo " <th>".i18n("Funding Selection Date")."</th>\n";
echo " <th>".i18n("Proposal Submission Date")."</th>\n";
echo "</tr>\n"; echo "</tr>\n";
while($r=mysql_fetch_object($q)) { while($r=mysql_fetch_object($q)) {
echo "<tr><td>$r->organization</td><td>".format_date($r->fundingselectiondate)."</td></tr>\n"; echo "<tr><td>$r->organization</td>";
echo "<td>".format_date($r->fundingselectiondate)."</td>";
echo "<td>".format_date($r->proposalsubmissiondate)."</td>";
echo "</tr>\n";
} }
echo "</table>\n"; echo "</table>\n";
} else { } else {