[Openfirst-cvscommit] photogallery spacer.PNG,NONE,1.1 email.php,1.3,1.4 gallery.php,1.5,1.6 index.p
Brought to you by:
xtimg
From: <dav...@us...> - 2003-08-22 08:21:09
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv30052 Modified Files: email.php gallery.php index.php viewphoto.php Added Files: spacer.PNG Log Message: Photogallery has now been heavily updated to work with the file common file arrangements that we had established approximately 2 months ago. The module has also been edited for the new headers design. --- NEW FILE: spacer.PNG --- (This appears to be a binary file; contents omitted.) Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/email.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** email.php 20 Aug 2003 16:52:23 -0000 1.3 --- email.php 20 Aug 2003 19:03:31 -0000 1.4 *************** *** 79,84 **** mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! ! die("<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"); } --- 79,84 ---- mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! echo "<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"; ! die(include($footer)); } Index: gallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/gallery.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** gallery.php 5 Jun 2003 18:36:17 -0000 1.5 --- gallery.php 20 Aug 2003 19:03:31 -0000 1.6 *************** *** 30,72 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); ! ! mysql_select_db($sqldatabase,$sqlconnection); ! ! ?> ! <h2>Gallery Viewer</h2> ! <p>[ <a href="index.php">View Galleries</a> ]<br> ! </p> ! <table width="588" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Author</font></strong></td> ! <td> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date ! Created </font></strong></div></td> ! </tr> ! <?php ! ! // Retrieve gallery information ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); ! ?> <tr> ! <td width="78" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Date); ?></font></td> </tr> </table> ! <div align="center"> ! <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><br> ! <br> ! </p> ! </div> <div align="center"></div> <table width="75" border="0" align="center" cellpadding="5" cellspacing="0"> ! <?php // List photos in the gallery --- 30,52 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); ! ! // Retrieve gallery information ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); ! ?> ! <h2>Gallery Viewer</h2> ! <table width="497"> <tr> ! <td><b>Description:</b> <?php echo $gallery->Description; ?></td> </tr> </table> ! <p> </p> ! <div align="center"></div> <div align="center"></div> <table width="75" border="0" align="center" cellpadding="5" cellspacing="0"> ! <tr><th></th><th><?php echo $gallery->GalleryName; ?></th><th></th></tr> ! <?php // List photos in the gallery *************** *** 82,96 **** $num = 1; } ! echo "<td width='34%'><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'> ! <center>"; if(file_exists($dirlocate."/thumbs/".$file)){ ! echo "<img height=100 width=152 src='".$dirlocate."/thumbs/".$file."'>"; }else{ ! echo "<img height=100 width=152 src='".$dirlocate."/".$file."'>"; } ! echo "<br><a href='email.php?PHOTO=".$dirlocate."/".$file."'><img src=email.PNG alt='Email to a friend'></a><a target='_blank' ! href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'><img alt='Enlarge' src='enlarge.PNG'> </a></center></a></td>"; $num++; --- 62,74 ---- $num = 1; } ! echo "<td width='34%'><center><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'>"; if(file_exists($dirlocate."/thumbs/".$file)){ ! echo "<img border='1px' height=100 width=152 src='".$dirlocate."/thumbs/".$file."'>"; }else{ ! echo "<img border='1px' height=100 width=152 src='".$dirlocate."/".$file."'>"; } ! echo "</a><br><a href='email.php?PHOTO=".$dirlocate."/".$file."'><img border='0' src=email.PNG alt='Email to a friend'></a><img border='0' src='spacer.PNG'><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'><img border='0' alt='Enlarge' src='enlarge.PNG'> </a></center></a></td>"; $num++; *************** *** 100,108 **** ?> </table> ! <p align="center"> ! </p> ! <p align="center"><font size="2">The content within the galleries are copyright ! of this website and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</font></p> <p align="center"> </p> <?php include($footer); ?> --- 78,86 ---- ?> </table> ! <p align="center"> </p> ! <p align="center">The content within the galleries are copyright of this website ! and its ownering team.<br> ! In order to use ! or copy its content please contact the teams webmaster.</p> <p align="center"> </p> <?php include($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 5 Jun 2003 01:56:56 -0000 1.3 --- index.php 20 Aug 2003 19:03:31 -0000 1.4 *************** *** 30,61 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); mysql_select_db($sqldatabase,$sqlconnection); ! ?> <h2>View Galleries</h2> <p>Welcome to the gallery viewer. Please select a gallery from the list below:<br> </p> ! <table width="538" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td> <div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description</font></strong></div></td> </tr> ! <?php // List galleries from database ! $query = mysql_query("SELECT * FROM ofirst_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="59" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="162" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="281" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Description; ?></font></td> </tr> ! <?php } --- 30,62 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); mysql_select_db($sqldatabase,$sqlconnection); ! ?> <h2>View Galleries</h2> <p>Welcome to the gallery viewer. Please select a gallery from the list below:<br> </p> ! <table width="701" align="center"> ! <tr> ! <th valign="top"> <div align="center"> </div></th> ! <th><strong>Gallery Name</strong></th> ! <th> <div align="center"><strong>Description</strong></div></th> ! <th width="229"><b>Date</b></th> </tr> ! <?php // List galleries from database ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="59" valign="top"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></td> ! <td width="142" valign="top"><a href='gallery.php?ID=<?php echo $gallery->ID; ?>'><?php echo $gallery->GalleryName; ?></a></td> ! <td width="223" valign="top"><?php echo $gallery->Description; ?></td> ! <td width="223" valign="top"><?php echo date("F j, Y, g:i a",$gallery->Dates); ?></td> </tr> ! <?php } *************** *** 66,71 **** ?> </table> ! <p align="center"><font size="2">The content within the galleries are copyright ! of this website and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</font></p> ! <?php include($footer); ?> \ No newline at end of file --- 67,72 ---- ?> </table> ! <p align="center">The content within the galleries are copyright of this website ! and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</p> ! <?php include($footer); ?> Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewphoto.php 5 Jun 2003 01:56:56 -0000 1.2 --- viewphoto.php 20 Aug 2003 19:03:31 -0000 1.3 *************** *** 31,41 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); ! ! mysql_select_db($sqldatabase,$sqlconnection); ?> <h2>View Photo</h2> ! <table width="588" border="0" align="center" cellpadding="6" cellspacing="0"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> --- 31,39 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); ?> <h2>View Photo</h2> ! <table width="588" align="center"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> *************** *** 49,53 **** // Retrieve information about the photos related gallery ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); --- 47,51 ---- // Retrieve information about the photos related gallery ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); *************** *** 57,61 **** <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Date); ?></font></td> </tr> </table> --- 55,59 ---- <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Dates); ?></font></td> </tr> </table> |