<?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">
<style type="text/css">
#amc-tab{}
  #amc-tab table{border:none; border-collapse:collapse; }
  #amc-tab table tr td{border-right:#808080 1px solid; border-bottom:#808080 1px solid;}
  #amc-tab table tr td:last-child{border-right:none;}
  #amc-tab table tr:last-child td{border-bottom:none;}
  #amc-tab table tr td > table tr td{border-right:#808080 1px solid; border-bottom:#808080 1px solid;}
  #amc-tab table tr td > table tr td:last-child{border-right:none;}
  #amc-tab table tr td > table tr:last-child td{border-bottom:none;}
</style>
<div class="body_contain">
 <div class="tab_div">
 <div class="new_tab">
<div class="inside_tab">
	<ul>
			<li><a href="index.php?route=ToolPlants/Transaction/asset_breakdown_completion_index&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=asset_breakdown_completion">Pending List</a></li>
		   <li><a href="index.php?route=ToolPlants/Transaction/asset_breakdown_completion_index&modid=<?php  echo $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=2&type=asset_breakdown_completion_done">Completed List</a></li>
		<div style="clear:both;"></div>
	</ul>
</div>
</div>

<div style="width:100%; float:left;">

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







