<?php /*?><? if ($this->cart->contents()) { ?>
<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>
<? }?>
<?php */?>
<?php /*?><center>
<img src="<?=base_url()?>images/new/best_price.png" />
</center>
<?php */?><? $up_links = $this->MFuncs->getUpLinks(); ?>
<? if ($up_links) { ?>
<div class="fouksia_bgr">
<h2><?=$this->lang->line('tourism_title')?></h2>
<div style="padding:10px;">
  <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'], $up_sub_link['name']);?>
	</div>
   <? endforeach ?>
    </div>
   <? } ?>
    <?php /*?><img src="<?=base_url()?>images/line_diakekommeni.png" /><?php */?>
    <div style="height:5px;"></div>
   <? endforeach ?>
    <p class="menu_head">
      <?=anchor('wine_roads', $this->lang->line('link_wine_roads'));?>
    </p>
    <?php /*?><img src="<?=base_url()?>images/line_diakekommeni.png" /><?php */?>
    <div style="height:5px;"></div>
   </div>
</div>
</div>
<? } ?>
<div style="height:5px">
</div>
<? 		$id=$this->session->userdata('userid'); ?>
<div class="ladi_bgr">
<h2>
    <? if (($id=='') || (!$id)) { ?>
    <?=$this->lang->line('login_title')?>
    <? } else { ?>
    <?=$this->lang->line('my_account')?>
    <? } ?>
    </h2>
<div style="padding:10px;">
  <? if (($id=='') || (!$id)){ ?>
  <?php
		$udata = array('name'=>'username','id'=>'u','size'=>15);
		$pdata = array('name'=>'password','id'=>'p','size'=>15);
?>
  <? $attributes = array('class' => '','AUTOCOMPLETE'=>'off'); ?>
  <?=form_open('page/verify_client',$attributes); ?>
  <div class="type-text">
    <?	echo form_label($this->lang->line('username'),'u');?><Br />
	   <? echo form_input($udata) ; ?>
  </div>
  <div class="type-text">
    <?	echo form_label($this->lang->line('password_usr'),'p'); ?><br />
	<? 	echo form_password($pdata);	?>
  </div>
  <Br />
  <div class="buttons">
    <button type="submit" class="positive">
    <?=$this->lang->line('login')?>
    </button>  </div>

    <? echo form_close();?>
  <?=anchor('forgot_psrd', $this->lang->line('forgot_password'));?>
  <br />
  <p><span style="color:#ffffff; font-size:14px"><?=$this->lang->line('no_account')?></span>
  <?=anchor('register', $this->lang->line('create_account'));?></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']?>
<?php /*?>  <Br />
  <?=$userdata['email']?>
<?php */?>  <br />
  <br />
  <p align="right">
    <?=anchor('logout', $this->lang->line('logout'));?>
  </p>
  <p>
    <?=anchor('change_info', $this->lang->line('change_info'));?>
  </p>
  <p>
    <?=anchor('change_password', $this->lang->line('change_password'));?>
  </p>
  <? if ($orders) { ?>
  <p>
    <?=anchor('view_orders', $this->lang->line('view_orders'));?>
  </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>
<div style="height:5px">
</div>
<? $links = $this->MFuncs->getLinks('bottom_right'); ?>
<? if ($links) { ?>
<div class="fouksia_bgr">
<h2><?=$this->lang->line('wine_title')?></h2>
<div style="padding:10px;">
  <div class="firstpane menu_list">
    <!--Code for menu starts here-->
   <? foreach($links as $links=>$link): ?>
   <?  $string = $link['name'];
   $string = $string.' '; ?>
    <p class="menu_head">
      <?=anchor('txt/'.$link['id'], str_replace("Σ ", "ς ", $string));?>
    </p>
    <?php /*?><img src="<?=base_url()?>images/line_diakekommeni.png" /><?php */?>
    <div style="height:5px;"></div>
   <? endforeach ?>
  </div>
</div>
</div>
<? }?>
