Update of /cvsroot/openfirst/awards
In directory sc8-pr-cvs1:/tmp/cvs-serv7573
Added Files:
index.php
Log Message:
initial upload
--- NEW FILE: index.php ---
<?php
/*
* openFIRST.awards - awards.php
*
* Copyright (C) 2003,
* openFIRST Project
* Original Author: David Di Biase <dav...@ea...>
*
* 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.
* 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
*
*/
include("../config/globals.php");
include($header);
mysql_select_db("openFIRST",$sqlconnection);
// Query database for award information
$query = mysql_query("SELECT * FROM ofirst_awards ORDER BY Date");
$amount = mysql_num_rows($query);
?>
<h1>Team Awards</h1>
<p align="center">This team has won <strong><?php echo $amount; ?></strong> award(s).</p>
<table width="600" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#999999">
<tr bgcolor="#999999">
<td width="32"> </td>
<td width="209"><center><font color="#FFFFFF">Award Name</font><center></td>
<td width="95"><center><font color="#FFFFFF">Event</font><center></td>
<td width="84"><center><font color="#FFFFFF">Date</font><center></td>
<td width="118"><center><font color="#FFFFFF">Recipient</font><center></td>
</tr>
<?php
// Loop through awards ordered by date
while($awards = mysql_fetch_object($query)){
?>
<tr>
<td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td>
<td><?php echo $awards->AwardName; ?></td>
<td><?php echo $awards->Event; ?></td>
<td><?php echo $awards->Date; ?></td>
<td><?php echo $awards->Recipient; ?></td>
</tr>
<? } ?>
</table>
<?php include($footer); ?>
|