<!DOCTYPE html>
<html lang="en">
  <?php
    echo $style;
  ?>


  <body data-spy="scroll" data-target="#navbarResponsive">
    <div id="home">
    <?php 
    echo $menu;
    $a = '';
    $b = '';
    for($i = 0; $i<sizeof($data); $i++)
    {
      if($i == 0)
      {
        $j = 0;
      }
      if($data[$i]['fk_designation_id'] == 1)
      {
        if($j%2 == 0)
        {
          $a .= '<div class="row" style="text-align: center; font-size: 1.1rem; margin-top:10px;">';
          $a .= '<div class="col-lg-6">';
          $a .= '<img src="/mainsite/img/team/user.png" class="image" height="80px" width="80px" style="display: block;  margin-left: auto; margin-right: auto;">';
          $a .= $data[$i]['salutation'].' '.$data[$i]['name'];
          
          if($data[$i]['pstatus'] == 1)
          {
            $a .= '<p>From:'.$data[$i]['fromdate'].'</p>';
          }
          else
          {
            $a .= '<p>From: '.$data[$i]['fromdate'].' To: '.$data[$i]['todate'].'</p>';
          }
          $a .= '</div>';
          $j++;
        }
        else
        {
          $a .= '<div class="col-lg-6">';
          $a .= '<img src="/mainsite/img/team/user.png" height="80px" width="80px" style="display: block;  margin-left: auto; margin-right: auto;">';
          $a .= $data[$i]['salutation'].' '.$data[$i]['name'];
          if($data[$i]['pstatus'] == 1)
          {
            $a .= '<p>From: '.$data[$i]['fromdate'].'</p>';
          }
          else
          {
            $a .= '<p>From: '.$data[$i]['fromdate'].' To: '.$data[$i]['todate'].'</p>';
          }
          $a .= '</div>';
          $a .= '</div>';
          $j++;
        }
      }
    }
    for($i = 0; $i<sizeof($data); $i++)
    {
      if($i == 0)
      {
        $j = 0;
      }
      if($data[$i]['fk_designation_id'] == 2)
      {
        if($j%2 == 0)
        {
          $b .= '<div class="row" style="text-align: center; font-size: 1.1rem; margin-top:10px;">';
          $b .= '<div class="col-lg-6">';
          $b .= '<img src="/mainsite/img/team/user.png" height="80px" width="80px" style="display: block;  margin-left: auto; margin-right: auto;">';
          $b .= $data[$i]['salutation'].' '.$data[$i]['name'];
          
          if($data[$i]['pstatus'] == 1)
          {
            $b .= '<p>From: '.$data[$i]['fromdate'].'</p>';
          }
          else
          {
            $b .= '<p>From: '.$data[$i]['fromdate'].' To: '.$data[$i]['todate'].'</p>';
          }
          $b .= '</div>';
          $j++;
        }
        else
        {
          $b .= '<div class="col-lg-6">';
          $b .= '<img src="/mainsite/img/team/user.png" height="80px" width="80px" style="display: block;  margin-left: auto; margin-right: auto;">';
          $b .= $data[$i]['salutation'].' '.$data[$i]['name'];
          if($data[$i]['pstatus'] == 1)
          {
            $b .= '<p>From: '.$data[$i]['fromdate'].'</p>';
          }
          else
          {
            $b .= '<p>From: '.$data[$i]['fromdate'].' To: '.$data[$i]['todate'].'</p>';
          }
          $b .= '</div>';
          $b .= '</div>';
          $j++;
        }
      }
    }
    ?>


    </div>
    <!--- End Home Section -->
    <!--- Start Organization Profile Section -->
    <div id="presidenst" class="offset" style="margin-top: 50px;">
      <div class="">
        <div class="narrow">
          <div class="os-animation" data-animation="fadeInUp">
          <div class="missionborder"><!--#98c17d, #fdf39e-->
            <h3 class="heading" style="margin-top: 20px; font-size: 30px;">List of Presidents</h3>
            <div class="heading-underline"></div>
              <?php echo $a; ?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!--- End Organization Profile Section -->
    <!--- Start MissionSection -->
    <div id="mission" class="offset">
      <div class="">
        <div class="narrow">
          <div class="os-animation" data-animation="fadeInUp">
          <div class="missionborder"><!--#98c17d, #fdf39e-->
            <h3 class="heading" style="margin-top: 20px; font-size: 30px;">List of Secretaries</h3>
            <div class="heading-underline"></div>
            <?php echo $b; ?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
    <div class="col-md-2"><div class="container">
  <img src="/mainsite/img/team/user.png" class="image" width="100px" height="100px">
  </div>
    </div>
<?php echo $script;?>
	<script type="text/javascript">
	$(document).ready(function () {

	});
  </body>
</html>
