<?php error_reporting(0); ?>
<link href="css/dashboard1.css" rel="stylesheet" type="text/css" />

<div class="maindiv">

	<!--insert table 1 start --><div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="color:#FFFFFF;">
  <tr>
    <td style="padding-left:10px;font-size:22px;">Purchase Dashboard</td>
    <td style="font-size:22px;text-align:right; padding-right:10px;"><i>Reporting Analysis</i></td>
    <td align="right" width="190"><img src="images/reporting.png" /></td>
  </tr>
</table>
	</div><!--insert table 1 close -->


	<!--insert table 2 start --><div>
	<img src="images/banner-new.jpg" />
	</div><!--insert table 2 close -->

    <div id="body_part">
	<!-- left part of main body -->	
	  <div class="body_left">
		<h1>Total Purchase</h1>	  
		<div style="margin-top:3px;margin-bottom:5px; overflow:auto; height:150px;">
			<?php include("ceodashboard_totalsale_new.php"); ?>
					
		</div>
	  </div>	<!-- left part of main body close -->	




		<!-- right part of main body -->		
	  <div class="body_right">
  		<h1>Pending Purchase Order for MRN</h1>	  
		<div style="margin-top:3px;margin-bottom:5px; overflow:auto; height:150px;">
			<div id="Executive">
			<?php include("ceodashboard_executive_new.php"); ?>
			</div>
		</div>
	  </div><!-- left part of main body close -->	
	  <div class="cl"></div>


	<div style="height:15px;"></div>


<!-- Table 3 -4 Start here -->

<!-- Table 3 Start herer -->
<div class="body_left">
		<h1>Pending Purchase Orders for Approval</h1>	  
		<div style="margin-top:3px;margin-bottom:5px; overflow:auto; height:150px;">
		<div id="divdata">
		<?php include("ceodashboard_topsaleproduct_new.php"); ?>
		</div>
		</div>
	  </div>	<!-- Table 3 Close herer -->




		<!-- Table 4 Start herer -->
	  <div class="body_right">
  		<h1>Pending Job Order</h1>	  
		<div style="margin-top:3px;margin-bottom:5px; overflow:auto; height:150px;">
			<div id="customersale">
			<?php include("ceodashboard_topcustomerbysale_new.php"); ?>
			</div>
		</div>
	  </div><!-- Table 4 Start herer -->


	  
	  
	  
	  
<!-- Table 3 -4 Start Close -->	  
	  <div class="cl"></div>	  
    </div>
</div>

<script>
function showsalesdata()	
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
	xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if (xmlhttp.readyState==4 && xmlhttp.status==200)
	{
	document.getElementById("divdata").innerHTML=xmlhttp.responseText;
	}
	}
	xmlhttp.open("GET","getsaleorderpending.php",true);
	xmlhttp.send();	
}


	
function showcustomersalesdata()	
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
	xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if (xmlhttp.readyState==4 && xmlhttp.status==200)
	{
	document.getElementById("customersale").innerHTML=xmlhttp.responseText;
	}
	}
	xmlhttp.open("GET","getcustomersaleorderapprove.php",true);
	xmlhttp.send();	
}



function showExecutivesalesdata()	
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
	xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if (xmlhttp.readyState==4 && xmlhttp.status==200)
	{
	document.getElementById("Executive").innerHTML=xmlhttp.responseText;
	}
	}
	xmlhttp.open("GET","getExecutivesaleorderapprove.php",true);
	xmlhttp.send();	
}
</script>
