Update of /cvsroot/openfirst/photogallery
In directory sc8-pr-cvs1:/tmp/cvs-serv6206
Modified Files:
gallery.php
Log Message:
New icons, and added column selection (depending on the $gallery_columns it sets columns wider or thiner.
Index: gallery.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/gallery.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** gallery.php 13 Oct 2003 18:00:23 -0000 1.14
--- gallery.php 23 Dec 2003 16:28:10 -0000 1.15
***************
*** 31,34 ****
--- 31,37 ----
include_once("admin/galleryglobals.php");
+ // Set this variable to the number of rows you want to display the images with
+ $gallery_columns = 3;
+
// Retrieve gallery information
$query = ofirst_dbquery("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'");
***************
*** 39,42 ****
--- 42,48 ----
<table width="497">
<tr>
+ <th><?php echo $gallery->GalleryName; ?></th>
+ </tr>
+ <tr>
<td><b>Description:</b> <?php echo $gallery->Description; ?></td>
</tr>
***************
*** 44,52 ****
<br>
<table width="450" border="0" align="center" cellpadding="5" cellspacing="0">
- <tr>
- <th width="150"> </th>
- <th width="150"><?php echo $gallery->GalleryName; ?></th>
- <th width="150"> </th>
- </tr>
<?php
--- 50,53 ----
***************
*** 78,82 ****
// If the current loop if greater then three then create a new row and set value back to 1
! if ($num > 3){
echo " </tr>\n <tr>\n";
$num = 1;
--- 79,83 ----
// If the current loop if greater then three then create a new row and set value back to 1
! if ($num > $gallery_columns){
echo " </tr>\n <tr>\n";
$num = 1;
|