Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? if ($_GET['id'] == 27) {
- // Multiple Galleries
- ?>
- <form action="" method="get" name="galleries">
- <input type="hidden" name="id" value="<?=$_GET['id']?>" />
- <input type="hidden" name="view" value="gallery" />
- <select name="event" onchange="javascript: this.form.submit();">
- <?
- $result2 = mysql_query("SELECT * FROM galleries_categories gc, galleries g WHERE gc.id=g.gallery_category AND gc.id='3' ORDER BY g.gallery_rank ASC") or die(mysql_error());
- while($gal = mysql_fetch_array( $result2 )){
- ?>
- <option value="<?=$gal['gallery_id']?>" <? if($_GET['event']==$gal['gallery_id']){?>selected="selected"<? } ?>><?=$gal['gallery_title']?></option>
- <? } ?>
- </select>
- </form>
- <?
- $result3 = mysql_query("SELECT * FROM galleries_categories gc, galleries g WHERE gc.id=g.gallery_category AND gc.id='3' ORDER BY g.gallery_rank ASC LIMIT 1") or die(mysql_error());
- $current_gal = mysql_fetch_array( $result3 );
- $gal_description = $current_gal['gallery_description'];
- $current_gal = $current_gal['gallery_id'];
- $gal_id = (isset($_GET['event'])) ? $_GET['event'] : $current_gal;
- $rs5= mysql_query("SELECT filename, filepath, filepath_thumb, caption FROM files_galleries fg, galleries g, files f WHERE fg.file_id=f.id AND fg.galleries_id=g.gallery_id AND g.gallery_id = '$gal_id' ORDER BY g.gallery_rank ASC ") or die(mysql_error());
- ?>
- <div class="text">
- <div id="mainGallery">
- <div id="wrapper">
- <div id="img"><div class="caption"></div></div>
- <ul id="gallery" class="jcarousel-skin-tango">
- <? $i = 1;
- while(list($filename, $filepath, $thumb, $caption) = mysql_fetch_array($rs5)){?>
- <li><a href="<?=$server_file_url?><?=$filepath?>" title="<?=$caption?>" id="<?=$i?>"><img src="<?=$server_file_url?><?=$thumb?>" width="100" height="80" alt="" /></a><div class="thumb_caption"><?=$caption?></div></li>
- <? $i++; } ?>
- </ul>
- </div>
- </div>
- </div>
- <? }else{
Add Comment
Please, Sign In to add comment