<?php 
$PageSecurity = 2;
$_SESSION['modid']=$_REQUEST['modid'];
$_SESSION['frmid']=$_REQUEST['frmid'];
$frmpermission= $px->GetFileAccess($_SESSION['modid'],$_SESSION['frmid'],$_SESSION['ACGRoleId']);
$_SESSION['frmAdd']=$frmpermission[0];
$_SESSION['frmEdit']=$frmpermission[1];
$_SESSION['frmDelete']=$frmpermission[2];
$_SESSION['frmView']=$frmpermission[3];
 ?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
 
</table>

<link rel="stylesheet" href="css/new_mxerp.css">
<div class="body_contain">

<div class="tab_div">

<div class="new_tab">
<div class="inside_tab">
	<ul>
		
		<li><a href="index.php?route=HRModule/vacancy_posting&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=jobspending">Jobs Pending to Post</a></li>
       <li><a href="index.php?route=HRModule/vacancy_posting&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=jobsposted">Jobs Posted</a></li>
		<div style="clear:both;"></div>
	</ul>
</div>
</div>
<div style="width:100%; ">

	<?php 
	
		if($_REQUEST['tab']==1){
	?>

			<?php
			if($_REQUEST['route']!='' && $_REQUEST['type']!='')
			{
				include($_REQUEST['type'].".php");
			} ?>

	<?php }else if($_REQUEST['tab']==2){
	
			if($_REQUEST['route']!='' && $_REQUEST['type']!='')
			{
				include($_REQUEST['type'].".php");
			} 
	}else{
            
	include("jobspending.php");
	}
	?>
</div>
</div>
</div>
