<div id="main_borders">
  <div id="main_inner_borders">
    <h2><strong>
      <?=$title?>
      </strong></h2>
       <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>

<? if ($this->cart->contents()) { ?>
<? 		$id=$this->session->userdata('userid'); ?>
<? if (($id=='') || (!$id)) { ?>
<div id="contact">
<?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); ?>
  <fieldset><legend><?=$this->lang->line('login_form_title')?></legend>
	   <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>
        </fieldset>
  <div class="buttons">
    <button type="submit" class="positive">
    <?=$this->lang->line('login')?>
    </button>  </div>

    <? echo form_close();?>
		</div>
        <br />
        <?=anchor('forgot_psrd', '<b>'.$this->lang->line('forgot_password').'</b>');?>
        <br /><br />
        <?=$this->lang->line('no_account')?>
        <?=anchor('register', '<b>'.$this->lang->line('create_account').'</b>');?>
<? } else {
redirect('complete_order_2/true','location');
} ?>
<? } else { 
redirect('home','location');
} ?>
</div>
</div>