<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">
<p><em><?=$this->lang->line('register_form_desc')?></em></p>
<? $attributes = array('class' => 'yform','AUTOCOMPLETE'=>'off'); ?> 
<?=form_open('page/create_user', $attributes); ?>
   <? $countries = $this->MFuncs->getCountries();?>
   <? foreach ($countries as $countries => $country){
	$options_country[0] = 'Select Country';
	$options_country[$country['id']]=$country['name'] ;
	} ?>

          <fieldset>
            <legend><?=$this->lang->line('register_form_title')?></legend>
            <div class="type-text"> <?=form_label(lang('fname')." *", 'fname')?> <? $data = array('name'=>'fname','id'=>'fname','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('lname')." *", 'lname')?> <? $data = array('name'=>'lname','id'=>'lname','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('address')." *", 'address')?> <? $data = array('name'=>'address','id'=>'address','size'=>25)?> <?=form_input($data); ?> </div>
			<div class="type-select"><? echo "<label for='country'>".$this->lang->line('country')." *"."</label>";
	echo form_dropdown('country',$options_country, 0) .""; ?>
			</div>      
            <div class="type-text"> <?=form_label(lang('city')." *", 'city')?> <? $data = array('name'=>'city','id'=>'city','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('postal')." *", 'postal')?> <? $data = array('name'=>'postal','id'=>'postal','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('floor'), 'floor')?> <? $data = array('name'=>'floor','id'=>'floor','size'=>25)?> <?=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)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('tel')." *", 'tel')?> <? $data = array('name'=>'tel','id'=>'tel','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('mob')." *", 'mob')?> <? $data = array('name'=>'mob','id'=>'mob','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('email')." *", 'email')?> <? $data = array('name'=>'email','id'=>'email','size'=>25)?> <?=form_input($data); ?> </div>
            <div class="type-text"> <?=form_label(lang('password')." *", 'password')?> <? $data = array('name'=>'password','id'=>'password','size'=>25)?> <?=form_input($data); ?> </div>
          </fieldset>
          
           <div class="buttons"><button type="submit" class="positive"> <?=$this->lang->line('send')?> </button></div>
          <?=form_close();?></div>
          
  </div>
</div>