0% found this document useful (0 votes)
25 views2 pages

Backup System - Application.views - Modules.header Home

homepage in php bootstrap

Uploaded by

Alex Nanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Backup System - Application.views - Modules.header Home

homepage in php bootstrap

Uploaded by

Alex Nanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<?php if ( !

defined('BASEPATH')) exit('No direct script access allowed');


$banners_num = count($header_banners);
?>
<!--[if !IE]> start header_home <![endif]-->
<div id="header_home">
<?php
if(is_array($header_banners) && count($header_banners)>0)
{
$num = 0;
foreach($header_banners as $banner)
{
$image = $this->config->item('banner_path').$banner->pic
;
//$image = 'media/banners/'.$banner->pic;
if(file_exists($image))
{
$image = base_url().$image;
}
else
{
$image = NULL;
}
if($num==0)
{
$selected = 'selected';
$display = 'block';
}
else
{
$selected = '';
$display = 'none';
}
?>
<div class="featured <?php echo $selected; ?>" style="displa
y:<?php echo $display; ?>">
<div class="twoCol">
<!-- <h1>
<?php echo $banner->title ?><strong><?php echo $banner->
intro ?></strong>
</h1>
<p>
<?php echo $banner->code ?>
</p> -->
<a href="http://www.ceradez.ro/ceradez-tm-i-25"><h1>Promot
ie!</h1></a>
<a href="http://www.ceradez.ro/ceradez-tm-i-25"><p>Tencuia
la mecanizata TM-I 25</p></a><br />
<a href="http://www.ceradez.ro/ceradez-tm-i-25"><p>Pret va
labil pentru plata pe loc!</p></a>
</div>
<a href="http://www.ceradez.ro/ceradez-tm-i-25">

<img href="http://www.ceradez.ro/ceradez-tm-i-25" class="fil


ter" width="645" height="397" alt="<?php echo base_url().$banner->link; ?>" src=
"<?php echo $image; ?>" />
</a>
</div>
<?php
$num++;
}
}
?>
<?php
if($banners_num>1)
{
?>
<ul id="controls">
<?php
for($bn = 0; $bn < $banners_num; $bn++)
{
?>
<li>
<a class="filter current" id="s<?php echo $bn; ?>" href="<?php ech
o $bn; ?>">
<img src="<?php echo base_url();?>/jsicss/i/img.dot.png" width="
13" height="13" alt="" class="filter" />
</a>
</li>
<?php
}
?>
</ul>
<?php
}
?>
<span class="filter" id="headerOverlay">
&nbsp;
</span>
</div>
<!--[if !IE]> end header_home <![endif]-->

You might also like