<?php 
$query="SELECT * FROM ".$prefix2."company";
$companyType=mysqli_query($linkid,$query);
?>

<div id="contentwrapper">
  <div class="main_content">
    <nav>
      <div id="jCrumbs" class="breadCrumb module">
        <ul>
          <li> <a href="#"><i class="icon-home"></i></a> </li>
          <li> <a href="#">Setup</a> </li>
		  <li> <a href="index.php?tab=company">Company</a> </li>
        </ul>
      </div>
    </nav>
    <div class="row-fluid">
      <div class="span12">
        <h3 class="heading">Location <span style="float:right; text-decoration:none; font-size:14px;"> <a href="index.php?tab=new-location"><img src="images/details_open.png" /> New Company</a></span> </h3>
        <table class="table table-striped table-bordered dTableR" id="dt_a">
          <thead>
            <tr>
              <th>Short Code</th>
              <th>Name</th>
              <th width="20%">Action</th>
            </tr>
          </thead>
          <tbody>
            <?php 


								  if($locationType)


									{


									while($mydata = mysqli_fetch_assoc($locationType))


									{


								  ?>
            <tr>
              <td><?php echo $mydata['code']?></td>
              <td><?php echo $mydata['name']?></td>
              <td><table width="80%" border="0">
                  <tr>
                    <td align="center"><a style="color:#0066CC; float:left"><img src="images/edit.png" border="0"  alt="Edit" title="Edit" width="16" height="16"></a></td>
                    <td align="center"><a href="javascript:void(0);" class="delete_button"><img src="images/remove.png" alt="Delete" title="Delete" border="0"></a></td>
                    <td width="33%"  align="center"><a href="javascript:void(0);">
                      <?php


													 if($mydata['active']==1) echo "<img src='images/unlocked.png' alt='Unlock' title='Unlock' border='0'>";


													 else echo "<img src='images/locked.png' alt='Lock' title='Lock'  border='0'>";


													?>
                      </a> </td>
                  </tr>
                </table></td>
            </tr>
            <?php 


				 }


				 } 


?>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
