Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/gallery/index.php |
<div id="profile_info">
<div class="container">
<div class="breadcrumb">
<a href="/">STRONA GŁÓWNA</a> \
<a href="Gallery">GALERIE</a>
</div><br style="clear: both;"/>
<span class="title nomargin">Galerie</span>
<div class="sort">
SORTOWANIE<br/>
<a href="Gallery" <?php if( !empty( $sort ) AND $sort == 'gallery_name' AND empty($filtr) ) echo 'class="blue"'; ?>>WSZYSTKIE</a> |
<a href="Gallery?sort=gallery_id&direct=desc" <?php if( !empty( $sort ) AND $sort == 'gallery_id' ) echo 'class="blue"'; ?>>OSTATNIO DODANE</a> |
<a href="Gallery?sort=viewed&direct=desc" <?php if( !empty( $sort ) AND $sort == 'viewed' ) echo 'class="blue"'; ?>>POPULARNE</a> |
<a href="Gallery?sort=date&direct=asc" <?php if( !empty( $sort ) AND $sort == 'date' ) echo 'class="blue"'; ?>>NADCHODZĄCE WYDARZENIA</a>
</div>
</div>
</div>
<div class="shadow">
<div class="container">
<form action="" method="get">
<fieldset class="search">
<label>WYSZUKAJ GALERIĘ</label>
<input type="text" placeholder="NAZWA / SŁOWO KLUCZOWE" name="keyword" value="<?php echo $keyword; ?>"/>
<input type="image" src="html/images/artpiece_08.png"/>
<select id="zones_id" name="zones_id" class="small_i" onchange="form.submit();">
<option value="">WOJEWÓDZTWO</option>
<?php foreach( $zones as $row ) : ?>
<option value="<?php echo $row->id; ?>" <?php if( !empty( $_GET['zones_id'] ) AND $row->id == $_GET['zones_id']) echo 'SELECTED="SELECTED"'; ?>><?php echo $row->title; ?></option>
<?php endforeach; ?>
</select>
<select id="city_id" name="city_id" class="small_i" onchange="form.submit();">
<option value="">MIEJSCOWOŚĆ</option>
<?php foreach( $cities as $row ) : ?>
<option value="<?php echo $row->city; ?>" <?php if( !empty( $_GET['city_id'] ) AND $row->city == $_GET['city_id']) echo 'SELECTED="SELECTED"'; ?>><?php echo $row->city; ?></option>
<?php endforeach; ?>
</select>
<select id="types_id" name="types_id" class="small_i" onchange="form.submit();">
<option value="">RODZAJ DZIAŁALNOŚCI</option>
<?php foreach( $types as $row ) : ?>
<option value="<?php echo $row->gallery_type; ?>" <?php if( !empty( $_GET['types_id'] ) AND $row->gallery_type == $_GET['types_id']) echo 'SELECTED="SELECTED"'; ?>><?php echo $row->gallery_type; ?></option>
<?php endforeach; ?>
</select>
</fieldset>
</form>
</div>
</div>
<div class="container">
<?php if( $galleries->count() == 0 AND ( empty( $_GET['sort']) OR $_GET['sort'] != 'date')) : ?>
<p>Wyszukiwana fraza nie została przypisana do żadnej z galerii w naszej bazie. Spróbuj ponownie znaleźć interesującą Cię galerię, wpisując inną frazę.</p>
<?php endif; ?>
<?php echo $pagination->render(); ?>
<?php foreach( $galleries as $gallery ) : ?>
<div class="artist_item">
<a href="Gallery/show/<?php echo $gallery->gallery_id; ?>"><img src="/image.php/image-name.jpg?width=96&height=96&cropratio=1:1&image=/uploads/user/images/<?php echo $gallery->user->logo; ?>" alt="" class="thumb_a"/></a>
<span class="artist_title">
<?php echo $gallery->user->username; ?><br/>
<a href="Gallery/show/<?php echo $gallery->gallery_id; ?>">ZOBACZ PROFIL</a>
</span>
<br style="clear: both;"/>
<p><?php echo substr(strip_tags($gallery->gallery_content),0,384); ?>[...]</p>
<div class="news_gallery">
<?php
$news_gallery = ORM::Factory('News')->and_where_open()->where('owner_id','=', $gallery->user->id)->or_where('user_id','=', $gallery->user->id)->and_where_close()->order_by('date','desc')->find();
if( $news_gallery->loaded() ) :
?>
<span class="date"><big><?php echo date('d', $news_gallery->date); ?></big><br/><?php echo mb_strtoupper(strftime("%b", $news_gallery->date)); ?><br/><?php echo date('Y', $news_gallery->date); ?></span>
<div class="text">
<h2><a href="Gallery/show/<?php echo $gallery->gallery_id; ?>?news_id=<?php echo $news_gallery->id; ?>"><?php echo substr($news_gallery->title, 0, 23); ?></a></h2>
<p><?php echo substr( strip_tags($news_gallery->description), 0, 71); ?>[...]</p>
</div>
<?php
else:
echo '<p class="empty_news">Brak wiadomości.</p>';
endif;
?>
</div>
</div>
<?php endforeach; ?>
<br style="clear: both;"/>
<?php echo $pagination->render(); ?>
</div>