Update front-end dates

This commit is contained in:
james 2010-06-04 16:48:02 +00:00
parent b51b4420db
commit b47b88ab9b

View File

@ -26,8 +26,11 @@
send_header("Important Dates",null,"important_dates"); send_header("Important Dates",null,"important_dates");
echo "<table>"; echo "<table>";
if($conference['id']) {
$q=mysql_query("SELECT *,UNIX_TIMESTAMP(date) AS udate FROM dates WHERE year='{$config['FAIRYEAR']}' ORDER BY date"); $q=mysql_query("SELECT *,UNIX_TIMESTAMP(date) AS udate FROM dates WHERE conferences_id='{$conference['id']}' ORDER BY date");
} else {
$q=mysql_query("SELECT *,UNIX_TIMESTAMP(date) AS udate FROM dates WHERE year='{$config['FAIRYEAR']}' ORDER BY date");
}
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
$trclass = ($trclass == 'odd') ? 'even' : 'odd'; $trclass = ($trclass == 'odd') ? 'even' : 'odd';