<div class="left_title">
<h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong><?=$this->lang->line('categories_title')?></strong></h2>
</div>
<div class="left_cat_bgr">
  <div class="firstpane menu_list"> <!--Code for menu starts here-->
  			<? $uri=$this->uri->segment(1); ?>
  			<? $uri2=$this->uri->segment(2); ?>
            <? if (($uri!='products') && ($uri!='view_product') && ($uri!='product') && ($uri2!='products') && ($uri2!='view_product') && ($uri2!='product')) {
			$category_id='';
			} ?>
			<? $categories = $this->MFuncs->getCategories(); ?>
                <? if ($categories) { ?>
                <? $i=1; ?>
				<? foreach($categories as $result=>$cat): ?>
                <? $sub_categories = $this->MFuncs->getSubCategories($cat['cat_id']);?>
                <? if ($sub_categories) { ?>
               	<p class="menu_head"><?=$cat['cat_name']?></p>
                <? if (!$category_id) { ?>
                <? if ($i==1){ ?>
                <div class="menu_body" style="display:block">
				<? } else { ?>
                <div class="menu_body" style="display:none">
                <? } 
				} elseif ($category_id==$cat['cat_id']) {?>
                 <div class="menu_body" style="display:block">
                <? } else { ?>
                <div class="menu_body" style="display:none">
                <? } ?>
				<? foreach($sub_categories as $sub_categories=>$sub_category): ?>
                  <?=anchor("products/sub/".$sub_category['sub_id'], $sub_category['name'])?>
                  <? $i++; ?>
                <? endforeach ?>
                </div>
                <? } else { ?>
                  <p class="menu_head"><?=anchor('products/cat/'.$cat['cat_id'], '<b>'.$cat['cat_name'].'</b>');?></p>
                <? } ?>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
                <? endforeach ?>
				<? } ?>
 </div>
<?php /*?>    <ul id="categories">
	<? foreach($categories as $result=>$cat): ?>
    <li><?=anchor('products/'.$cat['cat_id'], '<b>'.$cat['cat_name'].'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <? endforeach ?>
	</ul>
<?php */?></div>
<div style="height:5px">
</div>
<div class="title_green">
<h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong><?=$this->lang->line('search_price')?></strong></h2>
</div>
<div class="cat_bgr_green">
<div id="orderForm">
  <? $attributes = array('class' => 'yform','AUTOCOMPLETE'=>'off'); ?>
  <?=form_open('by_price',$attributes); ?>
        <? echo "<p><label for='price'></label>";
			$options = array(''=>'Select one...', '0-10' => '0 &euro; - 10 &euro;', '10-15' => '10 &euro; - 15 &euro;', '15-20' => '15 &euro; - 20 &euro;', '20' => '20 &euro; +');
			echo form_dropdown('price',$options, '') ."</p>"; ?>
        <div class="buttons">
<button type="submit" class="positive"> <?=$this->lang->line('go')?> </button></div>
 <?=form_close();?>
</div>
</div>

<? $news = $this->MFuncs->getNews(); ?>
<? if ($news) { ?>
<div style="height:5px">
</div>
<div class="left_title">
<h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong><?=$this->lang->line('news_title')?></strong></h2>
</div>
<div class="left_cat_bgr">
    <ul id="categories">
	<? foreach($news as $result=>$new): ?>
    <li><?=anchor('news/'.$new['id'], '<b>'.$new['title'].'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <? endforeach ?>
	</ul>
</div>
<? } ?>
<div style="height:5px">
</div>
<div class="title_green">
<h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong><?=$this->lang->line('name_day')?></strong></h2>
</div>
<div class="cat_bgr_green">
<script language='javascript' src='<?=$this->lang->line('eortologio_uri')?>?fnt_clr=585200&tbl_brd=0&tbl_cellpading=3&tbl_cellspacing=0&tbl_title_font_color=585200&morfi=1&what_day=12&ttl=0&fr1=0&fr2=0'></script>
</div>
<div class="left_title">
<h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong><?=$this->lang->line('categories_title')?></strong></h2>
</div>
<div class="left_cat_bgr">
  <div class="firstpane menu_list"> <!--Code for menu starts here-->
               	<p class="menu_head"><?=anchor("contact", "TV")?></p>
                <div class="menu_body" style="display:none">
                  <?=anchor("home", "LED")?>
                  <?=anchor("home", "TFT")?>
                </div>
               	<p class="menu_head">PC</p>
                <div class="menu_body" style="display:none">
               	<p class="menu_head">HARDWARE</p>
                <div class="menu_body" style="display:none">
                  <?=anchor("home", "PCI")?>
                  <?=anchor("home", "SATA")?>
                </div>
                  <?=anchor("home", "SOFTWARE")?>
                  <?=anchor("home", "PROGRAMS")?>
                </div>

    <img src="<?=base_url()?>images/line_diakekommeni.png" />
 </div>
<?php /*?>    <ul id="categories">
	<? foreach($categories as $result=>$cat): ?>
    <li><?=anchor('products/'.$cat['cat_id'], '<b>'.$cat['cat_name'].'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <? endforeach ?>
	</ul>
<?php */?></div>
<div style="height:5px">
</div>