<?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="mpez_bgr">
<h2><img src="<?=base_url()?>images/new/plus_icon.png" align="absmiddle" /><strong>
    <?=$this->lang->line('tourism_title')?>
    </strong></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'], '<b>'.$up_sub_link['name'].'</b>');?>
	</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', '<b>'.$this->lang->line('link_wine_roads').'</b>');?>
    </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="green_bgr">
<h2><img src="<?=base_url()?>images/new/plus_icon.png" align="absmiddle" /><strong>
    <? if (($id=='') || (!$id)) { ?>
    <?=$this->lang->line('login_title')?>
    <? } else { ?>
    <?=$this->lang->line('my_account')?>
    <? } ?>
    </strong></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', '<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']?>
<?php /*?>  <Br />
  <?=$userdata['email']?>
<?php */?>  <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>
<div style="height:5px">
</div>
<? $links = $this->MFuncs->getLinks('bottom_right'); ?>
<? if ($links) { ?>
<div class="mpez_bgr">
<h2><img src="<?=base_url()?>images/new/plus_icon.png" align="absmiddle" /><strong>
    <?=$this->lang->line('wine_title')?>
    </strong></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'], '<b>'.str_replace("Σ ", "ς ", $string).'</b>');?>
    </p>
    <?php /*?><img src="<?=base_url()?>images/line_diakekommeni.png" /><?php */?>
    <div style="height:5px;"></div>
   <? endforeach ?>
  </div>
</div>
</div>
<? }?>