Thread: [Openfirst-cvscommit] awards awardsfirst.gif,NONE,1.1 index.php,1.17,1.18 openfirst.info.xml,1.5,1.6
Brought to you by:
xtimg
[Openfirst-cvscommit] awards awardsfirst.gif,NONE,1.1 index.php,1.17,1.18 openfirst.info.xml,1.5,1.6
From: Astronouth7303 <ast...@us...> - 2005-06-30 01:59:05
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28713/awards Modified Files: index.php openfirst.info.xml Added Files: awardsfirst.gif Log Message: lots o' updates Index: openfirst.info.xml =================================================================== RCS file: /cvsroot/openfirst/awards/openfirst.info.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** openfirst.info.xml 31 May 2005 22:17:45 -0000 1.5 --- openfirst.info.xml 30 Jun 2005 01:58:53 -0000 1.6 *************** *** 7,10 **** --- 7,14 ---- <maintainer>Jamie Bliss</maintainer> + <includes> + <include>awards.php</include> + </includes> + <!-- Configuration --> <!-- Either entities or CDATA can be used. Just make sure it's parsed into the literal HTML. --> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** index.php 26 May 2005 23:27:05 -0000 1.17 --- index.php 30 Jun 2005 01:58:53 -0000 1.18 *************** *** 1,106 **** ! <?php ! /* ! * openFIRST.awards - index.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. ! * ! * 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_once("../includes/globals.php"); ! include_once($Header); ! ! // Query database for award information ! $query = ofirst_dbquery('SELECT * FROM '. ! ofirst_dbquote_table('awards'). ! ' WHERE '. ! ofirst_dbquote_name('FIRSTAward'). ! '='. ! ofirst_dbquote_data(1). ! ' ORDER BY '. ! ofirst_dbquote_name('Date'). ! ' DESC'); ! $amount = ofirst_dbnum_rows($query); ! ?> ! <h1>Team Awards</h1> ! <p>This team has won <b><?php echo $amount; ?></b> <a href='http://www.usfirst.org/'>FIRST</a> award(s).</p> ! <?php ! // If more then one award is present then show the values ! if($amount > 0) { ! ?> ! <table> ! <tr> ! <th colspan="2">Award Name</th> ! <th>Event</th> ! <th>Date</th> ! <th>Recipient</th> ! </tr> ! <?php ! // Loop through awards ordered by date ! while($awards = ofirst_dbfetch_object($query)){ ! ?> ! <tr valign="top"> ! <td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> ! <td> ! <h3><?php echo $awards->AwardName; ?></h3> ! <p><?php echo $awards->Description; ?></p> ! </td> ! <td><?php echo $awards->Event; ?></td> ! <td><?php echo $awards->Date; ?></td> ! <td><?php echo $awards->Recipient; ?></td> ! </tr> ! <?php } ?> ! </table> ! ! <?php ! } ! // Query database for award information ! $query = ofirst_dbquery("SELECT * FROM ofirst_awards WHERE FIRSTAward='0' ORDER BY Date DESC"); ! $amount = ofirst_dbnum_rows($query); ! ?> ! <h1>Team Awards</h1> ! <p>This team has won <strong><?php echo $amount; ?></strong> award(s) from sources other than FIRST.</p> ! <?php ! // If more then one award is present then show the values ! if($amount > 0) { ! ?> ! <table> ! <tr> ! <th colspan="2">Award Name</th> ! <th>Event</th> ! <th>Date</th> ! <th>Recipient</th> ! </tr> ! <?php ! // Loop through awards ordered by date ! while($awards = ofirst_dbfetch_object($query)){ ! ?> ! <tr valign="top"> ! <td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> ! <td> ! <h3><?php echo $awards->AwardName; ?></h3> ! <p><?php echo $awards->Description; ?></p> ! </td> ! <td><?php echo $awards->Event; ?></td> ! <td><?php echo $awards->Date; ?></td> ! <td><?php echo $awards->Recipient; ?></td> ! </tr> ! <?php } ?> ! </table> ! <?php ! } ! include_once($Footer); ?> --- 1,71 ---- ! <?php ! /* ! * openFIRST.awards - index.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. ! * ! * 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_once("../includes/globals.php"); ! include_once($Header); ! ! // Query database for award information ! $query = $ofDB->query('SELECT * FROM '.$ofDB->quoteTable('awards'). ! ' ORDER BY '.$ofDB->quoteField('Date').' DESC' ! ); ! $amount = $ofDB->numberOfRows($query); ! ?> ! <h1>Team Awards</h1> ! <p>This team has won <b><?php echo $amount; ?></b> award(s).</p> ! <?php ! // If more then one award is present then show the values ! if($amount > 0) { ! ?> ! <table> ! <tr> ! <th colspan="2">Award Name</th> ! <th>Event</th> ! <th>Date</th> ! <th>Recipient</th> ! </tr> ! <?php ! // Loop through awards ordered by date ! while($awards = $ofDB->fetchObject($query)){ ! ?> ! <tr valign="top"> ! <td> ! <img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>" /> ! <?php if ($awards->FIRSTAward) { ?><img src="awardsfirst.gif" /><?php } ?> ! </td> ! <td> ! <h3><?php echo $awards->AwardName; ?></h3> ! <p><?php echo $awards->Description; ?></p> ! </td> ! <td><?php echo $awards->Event; ?></td> ! <td><?php echo $awards->Date; ?></td> ! <td><?php echo $awards->Recipient; ?></td> ! </tr> ! <?php } ?> ! </table> ! ! <?php ! } ! $ofDB->freeResult($query); ! ! include_once($Footer); ! ?> --- NEW FILE: awardsfirst.gif --- (This appears to be a binary file; contents omitted.) |