<?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><?php echo $s->getField('modules_form','id',$_REQUEST['frmid'],'description');?></h1>
<div class="new_tab">
<div class="inside_tab">
	<ul>
		<li><a href="index.php?route=ToolPlants/Transaction/machine_breakdown_assingment_index&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=asset_breakdown_assignments">Pending For Assign</a></li>
		<li><a href="index.php?route=ToolPlants/Transaction/machine_breakdown_assingment_index&modid=<?php  echo $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=2&type=asset_breakdown_assignments_done">Assigned List</a></li>
	</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_assignments.php");
	}
	?>
</div>
</div>
</div>







