1
0
Fork 0
NCA-Screens/application/views/gallery.php

20 lines
605 B
PHP
Raw Normal View History

2011-11-06 02:40:37 -05:00
<div id="message" class="pagination">
2011-11-06 02:34:41 -05:00
<?php echo $pagination; ?>
2011-11-06 02:40:37 -05:00
</div>
2011-11-06 02:34:41 -05:00
<div id="imageContainer" style="width: 960px;margin: auto;">
<?php
foreach($uploads as $upload) {
$extension = (preg_match('/guild/',$_SERVER['HTTP_HOST']) != 0 && $upload->id <= 927)
? '.jpg' : $upload->extension;
?>
2011-11-06 02:34:41 -05:00
<div id="galleryContainer">
<a href="<?php echo base_url($upload->id); ?>"><img src="<?php echo base_url('/thumbs/' . $upload->id . $extension); ?>" /></a>
2011-11-06 02:34:41 -05:00
</div>
<?php } ?>
2011-11-06 02:40:37 -05:00
</div>
<div style="clear:both;"></div>
<div id="message" class="pagination">
<?php echo $pagination; ?>
2011-11-06 02:34:41 -05:00
</div>