<!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 class="h1 grey">Teacher Registration</td>
     </tr>
     <tr>
     <td>
     <table width="100%" border="0" cellspacing="0" cellpadding="0" id="stepstracker">
     	<tr>
    		<td class='stepone visited'><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></td>
     		<td class='unvisitedfiller'>&nbsp;</td>
     		<td class='steptwo unvisited'><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></td>
     		<td class='unvisitedfiller'>&nbsp;</td>
     		<td class='stepthree unvisited'><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></td>
     		<td class='unvisitedfiller'>&nbsp;</td>
     		<td class='stepfour unvisited'><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div></td>
     	</tr>
     	<tr>
     		<td class='visited'>Personal Information</td>
     		<td>&nbsp;</td>
     		<td class='unvisited'>Contact &amp; Employment</td>
     		<td>&nbsp;</td>
     		<td class='unvisited'>Education &amp; Qualifications</td>
     		<td>&nbsp;</td>
    		<td class='unvisited'>Preview &amp; Submit</td>
     	</tr>
     </table>
     </td>
     </tr>
     
     <?php echo !empty($msg)?"<tr><td>".format_notice($this, $msg)."</td></tr>": "";?>
     
     <tr>
      <td>
      
        <table border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td class="label">Surname:</td>
    <td><input type="text" id="lastname" name="lastname" title="Surname" class="textfield" value="<?php echo($this->session->get('lastname')? $this->session->get('lastname'): '');?>"/></td>
  </tr>
  <tr>
    <td class="label">Other Names:</td>
    <td><input type="text" id="firstname" name="firstname" title="Other Names" class="textfield" value="<?php echo($this->session->get('firstname')? $this->session->get('firstname'): '');?>"/></td>
  </tr>
  <tr>
    <td class="label">National Identification Number (NIN):</td>
    <td><input type="text" id="nin" name="nin" title="National Identification Number (NIN)" maxlength="14" minlength="14" class="textfield" value="<?php echo ($this->session->get('nin')? $this->session->get('nin'): '');?>"/></td>
  </tr>
  <tr>
    <td class="label">Telephone:</td>
    <td><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="label">Email Address:</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" class="textfield email" value="<?php echo($this->session->get('emailaddress')? $this->session->get('emailaddress'): '');?>"/>
         <?php }?></td>
  </tr>
  <tr>
    <td class="label">Gender:</td>
    <td><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>
  </tr>
  <tr>
    <td class="label">Marital Status:</td>
    <td><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">Birth Day:</td>
    <td><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>
  </tr>
  <tr>
    <td class="label">Birth Place:</td>
    <td><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>
</table>
        
      </td>
     </tr>
     <tr>
      <td>
     <table width="100%" border="0" cellspacing="0" cellpadding="0" class='buttonnav'>
     <tr>
     <td>&nbsp;</td>
     <td class='spacefiller'>&nbsp;</td>
     <td><?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> 
      </td>
     </tr>
     </table></form>
    </td>
  </tr>
  <?php echo view("addons/public_footer");?>
</table>


</body>
</html>