Beispiel #1
0
echo form::submit('submit', Kohana::lang('search.go'),'class=button');
echo '<br />';
echo form::close();
?>
<div class="cleaner">&nbsp;</div>
<hr />

<? // Rendering products results ?>
<h2><?php 
echo Kohana::lang('search.results_for_products');
?>
</h2>
<?php 
if (count($data) > 0) {
    ?>
	<? echo cat::items($data); ?>
<?php 
} else {
    ?>
	<p><?php 
    echo Kohana::lang('search.no_result');
    ?>
</p>
<?php 
}
?>
<div class="cleaner">&nbsp;</div>
<hr />
<? // Rendering pages results ?>
<h2><?php 
echo Kohana::lang('search.results_for_pages');
Beispiel #2
0
	&nbsp;
</div>
<?php 
if (user::is_got()) {
    ?>
	<p><a href="/product/add/<?php 
    echo $id;
    ?>
"><?php 
    echo Kohana::lang('eshop.add');
    ?>
</a></p>
<?php 
}
?>
<? echo cat::items($products); ?>
<?php 
if (count($products) == 0) {
    ?>
	<em><?php 
    echo Kohana::lang('eshop.no_products');
    ?>
</em>
<?php 
}
?>
<div class="cleaner">&nbsp;</div>
<hr />
<?php 
echo $this->pagination->render();
?>