<? if ($this->cart->contents()) { ?>
<?php /*?><div id="left_title_cart"><?php */?>
<div class="left_title_green">
  <h2><img src="<?=base_url()?>css/screen/images/icons/cart_put.png" align="absmiddle" />&nbsp;<strong>
    <?=anchor('view_cart', $this->lang->line('shopping_cart'));?>
    </strong></h2>
</div>
    <div style="height:5px">
&nbsp;</div>
<? }?>
<? $up_links = $this->MFuncs->getUpLinks(); ?>
<? if ($up_links) { ?>
<div class="left_title">
  <h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong>
    <?=$this->lang->line('tourism_title')?>
    </strong></h2>
</div>
<div class="left_cat_bgr">
  <div class="firstpane menu_list">
    <!--Code for menu starts here-->
   <? foreach($up_links as $up_links=>$uplink): ?>
    <p class="menu_head">
      <?=$uplink['name'];?>
    </p>
	<? $up_sub_links = $this->MFuncs->getUpSubLinks($uplink['right_cat_id']); ?>
	<? if ($up_sub_links) { ?>
    <div class="menu_body" style="display:none">
   <? foreach($up_sub_links as $up_sub_links=>$up_sub_link): ?>
    <div class="menu_sub_links">
      <?=anchor('wpage/'.$up_sub_link['sub_id'], '<b>'.$up_sub_link['name'].'</b>');?>
	</div>
   <? endforeach ?>
    </div>
   <? } ?>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
   <? endforeach ?>
    <p class="menu_head" id="right_link_ex">
      <?=anchor('wine_roads', '<b>'.$this->lang->line('link_wine_roads').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
   </div>
</div>
<? } ?>
<?php /*?><div class="left_cat_bgr">
  <div class="firstpane menu_list">
    <!--Code for menu starts here-->
    <p class="menu_head">
      <?=$this->lang->line('link_wineries')?>
    </p>
    <div class="menu_body" style="display:none">
      <?=anchor('pages/Wineries', $this->lang->line('link_katogi_averoff'));?>
    </div>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=$this->lang->line('link_vineyards')?>
    </p>
    <div class="menu_body" style="display:none">
      <?=anchor('pages/Vineyards', $this->lang->line('link_yiniets_vineyards'));?>
    </div>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=$this->lang->line('link_hotels')?>
    </p>
    <div class="menu_body" style="display:none">
      <?=anchor('pages/Hotel', $this->lang->line('link_hotel_katogi'));?>
    </div>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=$this->lang->line('link_our_wineries')?>
    </p>
    <div class="menu_body" style="display:none">
      <?=anchor('pages/Our_Wineries', $this->lang->line('link_wineries_katogi'));?>
    </div>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
  </div>
<?php */?>  <?php /*?>    <ul id="categories">
	<li><?=anchor('pages/Wineries', '<b>'.$this->lang->line('link_wineries').'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
	<li><?=anchor('pages/Vineyards', '<b>'.$this->lang->line('link_vineyards').'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
	<li><?=anchor('pages/Hotel', '<b>'.$this->lang->line('link_hotels').'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
	<li><?=anchor('pages/Our_Wineries', '<b>'.$this->lang->line('link_our_wineries').'</b>');?></li>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
	</ul>
<?php */?>
<div style="height:5px">
</div>
<? 		$id=$this->session->userdata('userid'); ?>
<div class="left_title_green">
  <h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong>
    <? if (($id=='') || (!$id)) { ?>
    <?=$this->lang->line('login_title')?>
    <? } else { ?>
    <?=$this->lang->line('my_account')?>
    <? } ?>
    </strong></h2>
</div>
<div class="left_cat_bgr_green">
  <? if (($id=='') || (!$id)){ ?>
  <?php
		$udata = array('name'=>'username','id'=>'u','size'=>15);
		$pdata = array('name'=>'password','id'=>'p','size'=>15);
?>
  <? $attributes = array('class' => 'yform','AUTOCOMPLETE'=>'off'); ?>
  <?=form_open('page/verify_client',$attributes); ?>
  <div class="type-text">
    <?	echo form_label($this->lang->line('username'),'u') ;
		echo form_input($udata) ; ?>
  </div>
  <div class="type-text">
    <?	echo form_label($this->lang->line('password_usr'),'p') ;
		echo form_password($pdata);
		?>
  </div>
  <div class="buttons">
    <button type="submit" class="positive">
    <?=$this->lang->line('login')?>
    </button>  </div>

    <? echo form_close();?>
  <?=anchor('forgot_psrd', '<b>'.$this->lang->line('forgot_password').'</b>');?>
  <br />
  <p><span style="color:#585200; font-size:14px"><?=$this->lang->line('no_account')?></span>
  <?=anchor('register', '<b>'.$this->lang->line('create_account').'</b>');?></p>
  <? } else { ?>
  <? $orders = $this->MFuncs->getUserOrders($id);?>
  <? $userdata = $this->MFuncs->GetUserbyID($id); ?>
  <?=$userdata['fname'].", ".$userdata['lname']?>
  <br />
  <?=$userdata['address'].", ".$userdata['city'].", ".$userdata['postal']?>
  <br />
  <?=$userdata['tel'].", ".$userdata['mob']?>
  <Br />
  <?=$userdata['email']?>
  <br />
  <br />
  <p align="right">
    <?=anchor('logout', '<b>'.$this->lang->line('logout').'</b>');?>
  </p>
  <p>
    <?=anchor('change_info', '<b>'.$this->lang->line('change_info').'</b>');?>
  </p>
  <p>
    <?=anchor('change_password', '<b>'.$this->lang->line('change_password').'</b>');?>
  </p>
  <? if ($orders) { ?>
  <p>
    <?=anchor('view_orders', '<b>'.$this->lang->line('view_orders').'</b>');?>
  </p>
  <? } ?>
  <p>
    <?=anchor("delete_account",  $this->lang->line('delete_account'), array( 'onclick'=>'return confirm(\''.$this->lang->line('are_u_sure_del').'\');', 'title' => '','class' => ''))?>
  </p>
  <? } ?>
</div>
<div style="height:5px">
</div>
<? $links = $this->MFuncs->getLinks('bottom_right'); ?>
<? if ($links) { ?>
<div class="left_title">
  <h2><img src="<?=base_url()?>images/kiklos_icon.png" align="absmiddle" />&nbsp;<strong>
    <?=$this->lang->line('wine_title')?>
    </strong></h2>
</div>
<div class="left_cat_bgr">
  <div class="firstpane menu_list">
    <!--Code for menu starts here-->
   <? foreach($links as $links=>$link): ?>
    <p class="menu_head">
      <?=anchor('txt/'.$link['id'], '<b>'.$link['name'].'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
   <? endforeach ?>
<?php /*?>    <p class="menu_head">
      <?=anchor('pages/legislation', '<b>'.$this->lang->line('links_legislation').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('history', '<b>'.$this->lang->line('links_history').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/factors', '<b>'.$this->lang->line('factors_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/gr_var', '<b>'.$this->lang->line('varieties_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/int_var', '<b>'.$this->lang->line('for_varieties_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/winemaking', '<b>'.$this->lang->line('winemaking_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/serving', '<b>'.$this->lang->line('serving_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/colors', '<b>'.$this->lang->line('colors_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/fragrances', '<b>'.$this->lang->line('fragrances_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
    <p class="menu_head">
      <?=anchor('pages/tastes', '<b>'.$this->lang->line('tastes_title').'</b>');?>
    </p>
    <img src="<?=base_url()?>images/line_diakekommeni.png" />
<?php */?>  </div>
</div>
<? }?>
<a href="https://www.facebook.com/Wines2u" target="_blank" ><?= img(array('src' => 'images/facebook_icon.png','alt' =>'Find us on Facebook bar','title' =>'Find us on Facebook bar', 'width'=>'64','style'=>'margin-top:10px;  margin-right:43px; float:left;' ));?></a>
<a href="http://twitter.com/#!/Wines2u" target="_blank" ><?= img(array('src' => 'images/twitter_icon.png','alt' =>'Follow us on Twitter','title' =>'Follow us on Twitter', 'width'=>'64','style'=>'margin-top:10px; float:right;' ));?></a>