<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php echo base_url();?>/favicon.ico" type="image/x-icon">
<link rel="icon" href="<?php echo base_url();?>/favicon.ico" type="image/x-icon">

<title><?php echo SITE_TITLE;?>: Register</title>

<!-- Stylesheets -->
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/jquery-ui.css"/>
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/tmis.css"/>
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/tmis.mobile.css" media="(max-width:790px)" />
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/tmis.tablet.css" media="(min-width:791px) and (max-width: 900px)" />
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/tmis.desktop.css" media="(min-width:901px)" />
<link rel="stylesheet" href="<?php echo base_url();?>/assets/css/tmis.list.css"/>

<!-- Javascript -->
<?php echo minify_js('register-step_one', array('jquery-2.1.1.min.js', 'jquery-ui.js', 'jquery.form.js', 'tmis.js', 'tmis.callout.js', 'tmis.fileform.js', 'tmis.responsive.js'));?>
</head>
<?php  $this->session = \Config\Services::session(); ?>
<body style="margin:0px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <?php echo view("addons/public_header", array("page"=>"register"));?>
  <tr>
    <td valign="top" colspan="2" class="bodyspace">
    <form id="home_registration_form" method="post" autocomplete="off" action="<?php echo base_url();?>/Register/step_one" class='simplevalidator'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      
     
     
     <tr>
      <td style="text-align:center;">
      <div class="card-inner vregform" style="display:inline-block;">
        <table border="0" cellspacing="0" cellpadding="10" width="100%" class="registercss"> 
  <tr>
    <td colspan="2" class="h1 black"> Registration (Step 1 of 4)</td>
    </tr>
  <tr>
    <td colspan="2" ><p>Registration helps you to speed up your benefit processing, leave application, transfer and many more career tracking options.</p></td>
    </tr>
    <?php echo !empty($msg)?"<tr><td colspan='2'>".format_notice($this, $msg)."</td></tr>": "";?>
  <tr>
    <td class=""><div class="labeltxt" >Surname</div>
    <input type="text" id="lastname" name="lastname" title="Surname" class="textfield" placeholder="e.g. Doe" value="<?php echo($this->session->get('lastname')? $this->session->get('lastname'): '');?>"/>
    </td>
    <td><div class="labeltxt" >Other Names</div>
    <input type="text" id="firstname" name="firstname" title="Other Names" class="textfield" placeholder="e.g. John" value="<?php echo($this->session->get('firstname')? $this->session->get('firstname'): '');?>"/>
    </td>
  </tr>
  <tr>
    <td class=""></td>
    <td></td>
  </tr>
  <tr>
    <td class=""><div class="labeltxt" >National Identification Number (NIN)</div>
    
    <input type="text" id="nin" name="nin" title="National Identification Number (NIN)" maxlength="14" placeholder="CM879345GHJK45/CF879345GHJK45" minlength="14" class="textfield" value="<?php echo ($this->session->get('nin')? $this->session->get('nin'): '');?>"/></td>
    <td><div class="labeltxt" >Telephone</div>
    <input type="text" id="telephone" name="telephone" title="Telephone" placeholder="e.g. 0782123456" maxlength="10" class="textfield numbersonly" value="<?php echo($this->session->get('telephone')? $this->session->get('telephone'): '');?>"/>
    </td>
  </tr>
  
  <tr>
    <td class=""><div class="labeltxt" >Email Address</div></td><td>
    <?php if ($this->session->get('person_id')) {
    echo "<span class='value'>".$this->session->get('emailaddress')."</span>";
} else {?>
         <input type="text" id="emailaddress" name="emailaddress" title="Email Address" placeholder="e.g. teacher@gmail.com" class="textfield email" value="<?php echo($this->session->get('emailaddress')? $this->session->get('emailaddress'): '');?>"/>
         <?php }?>
  </tr>
  <tr>
    <td class=""><div class="labeltxt" >Gender</div>
    <div class="nextdiv"><input type="radio" name="gender" id="gender_female" value="female" <?php echo($this->session->get('gender') && $this->session->get('gender')=='female'? 'checked': '');?>>
       <label for="gender_female">Female</label></div>
       <div class="nextdiv"><input type="radio" name="gender" id="gender_male" value="male" <?php echo($this->session->get('gender') && $this->session->get('gender')=='male'? 'checked': '');?>>
       <label for="gender_male">Male</label></div>
    </td>
    <td><div class="labeltxt" >Marital Status</div>
    <div class="nextdiv"><input type="radio" name="marital" id="marital_married" value="married" <?php echo($this->session->get('marital') && $this->session->get('marital')=='married'? 'checked': '');?>>
       <label for="marital_married">Married</label></div>
       <div class="nextdiv"><input type="radio" name="marital" id="marital_single" value="single" <?php echo($this->session->get('marital') && $this->session->get('marital')=='single'? 'checked': '');?>>
       <label for="marital_single">Single</label></div>
    </td>
  </tr>
  <tr>
    <td class="label"></td>
    <td></td>
  </tr>
  <tr>
    <td class=""><div class="labeltxt" >Birth Day</div>
    <input type="text" id="birthday" name="birthday" title="Birth Day" class="textfield datefield birthday" value="<?php echo($this->session->get('birthday')? $this->session->get('birthday'): '');?>" readonly/>
    </td>
    <td><div class="labeltxt" >Birth Place</div>
    <input type="text" id="birthplace" name="birthplace" title="Birth Place" class="textfield placefield physical" value="<?php echo($this->session->get('birthplace__addressline')? $this->session->get('birthplace__addressline'): '');?>" readonly/>
    </td>
  </tr>
  <tr>
    <td class=""></td>
    <td></td>
  </tr>
  <tr>
    <td class=""><?php echo $this->session->get('just_preview_1')? "<button type='button' name='step1preview' id='step1preview' class='greybtn'>SAVE &amp; PREVIEW</button>" : "&nbsp;"; ?></td>
    <td><input type="submit" name="step2" id="step2" value="NEXT" class="btn next" /></td>
  </tr>
        </table></div>
        
      </td>
     </tr>
     <tr>
      <td>
    
      </td>
     </tr>
     </table></form>
    </td>
  </tr>
  <?php echo view("addons/public_footer");?>
</table>


</body>
</html>