Mini Shell

Direktori : /home/emypro/www/
Upload File :
Current File : /home/emypro/www/obras.php

<?php include('header.php') ?>
<?php
$obras = new Obra();

// READ
$paginate = new Paginate($obras->total(), $obras->limit);
$obras = $obras->paginate($paginate->page(), 'created');
?>
<div class="blue-wrapper">
	<b>Obras</b>
</div>
<div id="pages" class="container">
	<div class="row">
		<?php foreach($obras as $obra): ?>
		<div class="col-sm-12">
			<div class="panel panel-default">
  				<div class="panel-heading"><span class="glyphicon glyphicon-paperclip"></span> <u><?= $obra->title ?></u></div>
  				<div class="panel-body">
	    			<div class="row">
	    				<div class="col-sm-6">
	    					<strong>Local:</strong><br>
	    					<?= $obra->local ?>
	    				</div>
	    				<div class="col-sm-6">
	    					<strong>Cliente:</strong><br>
	    					<?= $obra->client ?>
	    				</div>
	    			</div>
	    			<br>
	    			<div class="row">
	    				<div class="col-sm-12">
	    					<p><strong>Descrição:</strong></p>
	    					<?= $obra->description ?>
	    					<br>
	    				</div>
	    			</div>
  				</div>
  				<div class="panel-footer">
  					<a href="<?= URL_APP ?>obra/<?= Helper::slugify($obra->title) .'/'. $obra->id ?>" class="btn btn-primary"><i class="glyphicon glyphicon-picture"></i> Galeria de fotos</a>
  				</div>
			</div>
		</div>
		<?php endforeach ?>
	</div>
	<div class="row">
		<div class="col-lg-12 text-center">
			<?= $paginate->render() ?>
		</div>
	</div>
</div>
<?php include('footer.php') ?>

Zerion Mini Shell 1.0