forked from science-ation/science-ation
Add missing fields to dashboard
This commit is contained in:
parent
395ed4d084
commit
ee995654b3
@ -196,16 +196,20 @@ if(mysql_num_rows($q)) {
|
||||
<br />
|
||||
<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();
|
||||
if(mysql_num_rows($q)) {
|
||||
echo "<table class=\"tableview\">";
|
||||
echo "<tr>";
|
||||
echo " <th>".i18n("Name")."</th>\n";
|
||||
echo " <th>".i18n("Funding Selection Date")."</th>\n";
|
||||
echo " <th>".i18n("Proposal Submission Date")."</th>\n";
|
||||
echo "</tr>\n";
|
||||
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";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user