<?php 
$pageName = 'Employees Database';

require_once('config/config.php');
require_once(CLASS_DIR.'dbClass.php');
require_once(INCLUDES_DIR.'header.php');

include('hitCounter.php');

$obj = new DBClass();
?>
<style type="text/css">
<!--
.style8 {
	font-family: "Times New Roman", Times, serif; 
	color: #000000; 
	font-size: 18px;
}
-->
</style>


<!--workarea start------------------------->
<div class="workarea">
	<div class="workareatop">
		<img src="images/workareatopcorner_03.PNG" alt="" />
	</div>
	<!--workareamid start--------------------->
	<div class="workareamid">
		<div id="floatleft" style="width:590px; float:left;">
			<div class="welcomediv">
                        
                        <h2>Employees Database<div class="urls"><a href="coaljobs.php">Back</a></div></h2>

<table border="0" cellspacing="0" cellpadding="0">
		<tr>
				<td>
						<table border="0" cellspacing="0" cellpadding="0">
								<tr>
										<table class="EmpData">
												<tr>
													<?php
													$obj1 = new DBClass();																					
													$sql2 = "SELECT * FROM ".TBL_OPTIONS." where `option`='functionality' and `value`!='' and `status`=0 ORDER BY value ASC";																						
													$rs2 = $obj1->executeQry($sql2,$link);																				
													while($row2 = $obj1->fetchrow()){ 
													?>
														<td><a href="viewEmploye.php?functionalarea=<?php echo $row2['value']; ?>" title="View Details"><img src="images/jobs.PNG"/><br><div align="center"><?php echo $row2['value']; ?></div></a></td>
														<td style="border:none;width:20px;">&nbsp;</td>
													<?php $i++; if($i%3==0) { echo '</tr><tr><td style="border:none;width:2px;height:10px;margin-top:10px;"></td></tr><tr>'; } ?>	
													<?php } ?>
												</tr>
										</table>
								</tr>
						</table>
				</td>
		</tr>
</table>



						</div>
				</div>
				<?php require_once(INCLUDES_DIR.'left_bar.php');?>
                <!--floatright close-------------------->
                <div style="clear:both;"></div>
            </div>
            <!--workareamid close--------------------->
            <div class="workareabottom">
                <img src="images/workareabottomcorner_03.PNG" alt="" />
            </div>
        </div>
    <!--workarea close------------------------->
<?php require_once(INCLUDES_DIR.'footer.php');?>