<?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];
include('includes/stockcalculation.php');
?>
<link rel="stylesheet" href="css/new_mxerp.css">
<div class="body_contain">
<div class="tab_div">
<h1>TA DA Claim</h1>
<p align="left"><a href="index.php?route=CRM/TA_DA_Claim_form&modid=<?php echo $_REQUEST['modid']; ?>&frmid=<?php echo $_REQUEST['frmid']; ?>"><button type="button" class="search">Add New</button></a></p>

<div class="new_tab">
<div class="inside_tab">
	<ul>
		<li><a href="index.php?route=CRM/ta_da_index&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=ta_da_created">My TA/DA</a></li>
		<li><a href="index.php?route=CRM/ta_da_index&modid=<?php  echo $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=2&type=ta_da_approval">Approved TA/DA</a></li>
		<div style="clear:both;"></div>
	</ul>
</div>
</div>
<div style="height:3px;"></div>

	<?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("ta_da_created.php");
	}
	?>

</div>
</div>







