<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; ?>

<div id="orderForm">           
<? $attributes = array('class' => 'yform','AUTOCOMPLETE'=>'off'); ?> 
<?=form_open('page/update_user', $attributes); ?>
   <? $countries = $this->MFuncs->getCountries();?>
   <? foreach ($countries as $countries => $country){
	$options_country[0] = 'Select Country';
	$options_country[$country['id']]=$country['name'] ;
	} ?>
          <fieldset>
            <div class="type-text"> <?=form_label(lang('fname'), 'fname')?> <? $data = array('name'=>'fname','id'=>'fname','size'=>25, 'value'=>$userdata['fname'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('lname'), 'lname')?> <? $data = array('name'=>'lname','id'=>'lname','size'=>25, 'value'=>$userdata['lname'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('address'), 'address')?> <? $data = array('name'=>'address','id'=>'address','size'=>25, 'value'=>$userdata['address'])?> <?=form_input($data); ?> </div>
			<div class="type-select"><? echo "<label for='country'>".$this->lang->line('country')." *"."</label>";
	echo form_dropdown('country',$options_country, $userdata['country_id']) .""; ?>
			</div>      
            <div class="type-text"> <?=form_label(lang('city'), 'city')?> <? $data = array('name'=>'city','id'=>'city','size'=>25, 'value'=>$userdata['city'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('postal'), 'postal')?> <? $data = array('name'=>'postal','id'=>'postal','size'=>25, 'value'=>$userdata['postal'])?> <?=form_input($data); ?> </div>

            <div class="type-text"> <?=form_label(lang('floor'), 'floor')?> <? $data = array('name'=>'floor','id'=>'floor','size'=>25, 'value'=>$userdata['floor'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('name_bell'), 'name_bell')?> <? $data = array('name'=>'name_bell','id'=>'name_bell','size'=>25, 'value'=>$userdata['name_bell'])?> <?=form_input($data); ?> </div>

            <div class="type-text"> <?=form_label(lang('tel'), 'tel')?> <? $data = array('name'=>'tel','id'=>'tel','size'=>25, 'value'=>$userdata['tel'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('mob'), 'mob')?> <? $data = array('name'=>'mob','id'=>'mob','size'=>25, 'value'=>$userdata['mob'])?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('email'), 'email')?> <? $data = array('name'=>'email','id'=>'email','size'=>25, 'value'=>$userdata['email'])?> <?=form_input($data); ?> </div>
          </fieldset>
          
           <div class="buttons"><button type="submit" class="positive"><?=$this->lang->line('send')?> </button></div>
          <?=form_close();?></div>
          
  </div>
</div>