<?php
// Desactivar toda notificación de error
error_reporting(0);
?>

<!DOCTYPE HTML>
<!--
	Desarrollado por: Eduardo Alfonso Torres Luna
-->
<html>
	<head>
		<title>SISTEMA DE CONTROL COMERCIAL</title>
		<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"/>
		<meta charset="iso-8859-1" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
		<link rel="stylesheet" href="assets/css/main.css" />
		<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
	</head>
	<body onLoad="deshabilitaRetroceso();">
	
		<div id="aula_virtual" style=" height:0px; ">  
		  
		</div>		
			
		<div id="page-wrapper">
			
			
			<div id="header-wrapper" style="margin-top:20px;">
				<div class="container">
					<div class="row">
						<div class="12u">

							<?php
							include("cabecera.php");
							
							?>
							
						</div>
					</div>
				</div>
			</div>
						
			
			<div id="main" >									
			
				<div class="container" style=" width:1200px; height:300px;">
										
					<div class="row main-row" style="clear:both; width:560px; float:left;">										
					<?php
					if($_SESSION['s_compras']==1){
					?>

					  <div class="4u 12u(mobile)" >

							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center">
								<a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_compras.submit(); return false;"><img src="images/compras.png" width="114" height="87">								</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_compras.submit(); return false;">COMPRAS </a></div>
							</div>								
							</section>
					  </div>
					<?php
					}
					?>



					<?php
					if($_SESSION['s_ventas']==1){
					?>
					  <div class="4u 12u(mobile)" style="  
					  <?php  
					  if($_SESSION['s_tipo_usuario']!=3 and $_SESSION['s_tipo_usuario']!=2 and 1==0){  
					  ?> 
					  	display:none; 
					  <?php 
					  } 
					  ?> ">

							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center">
								<a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_cotizaciones_pedidos.submit(); return false;" ><img src="images/cotizaciones.png" width="84" height="87">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_cotizaciones_pedidos.submit(); return false;">COTIZACIONES DE VENTAS</a></div>
							</div>								
							</section>
					  </div>


					  <div class="4u 12u(mobile)">

							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center">
								<a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_pedidos.submit(); return false;" ><img src="images/ventas.png" width="86" height="89">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_pedidos.submit(); return false;">VENTAS</a></div>
							</div>								
							</section>
					  </div>
					<?php
					}
					?>



					<?php
					if($_SESSION['s_almacen']==1){
					?>						
					  <div class="4u 12u(mobile)">

							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center">
								<a href="#"  onClick="javascript:frame_menus_formularios.document.fmenu_almacen_ingreso.submit(); return false;"><img src="images/almacen.png" width="85" height="89">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_almacen_ingreso.submit(); return false;">INGRESOS  ALMACEN </a></div>
							</div>								
							</section>
					  </div>
					<?php
					}
					?>



					<?php
					if($_SESSION['s_almacen_salidas']==1){
					?>						
					  <div class="4u 12u(mobile)">

							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center">
								<a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_almacen_salida.submit(); return false;" ><img src="images/almacen.png" width="85" height="89">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_almacen_salida.submit(); return false;">SALIDAS  ALMACEN </a></div>
							</div>								
							</section>
					  </div>
					<?php
					}
					?>
					
					
					<?php
					if($_SESSION['s_caja']==1){
					?>					
					  <div class="4u 12u(mobile)">
							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center" style=" height:100px;">
								<a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_caja.submit(); return false;"><img src="images/caja.png" width="97" height="72">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#" onClick="javascript:frame_menus_formularios.document.fmenu_caja.submit(); return false;">OPERACIONES DE CAJA </a></div>
							</div>								
							</section>
					  </div>
					<?php
					}
					?>


						
					  <?php
						/*

					  <div class="4u 12u(mobile)">
							<a href="#">
							<section>
						    </section>
							</a>
							<section><div align="center" >
								<a href="#"><img src="images/configuraciones.png" width="105" height="103">							</a></div>
							<div style="padding-bottom:20px;">	
								<div align="center" style="font-size:15px;"><a href="#">CONFIGURACIONES </a></div>
							</div>								
							</section>
					  </div>
						*/
					  ?>					  										
					
					<a name="enfoque1"></a>
					</div>
						
					<div style="  width:600px; float:left; margin-top:-70px;">
						<?php  
						//if($_SESSION['s_tipo_usuario']!=3 and $_SESSION['s_tipo_usuario']!=2){  
						//}else{
						if(1==0){
						?>						
						<iframe src="graficos/ventas30dias.php" id="frame_grafico" name="frame_grafico" width="650" height="450" frameborder="0" scrolling="Yes" marginheight="0" marginwidth="0" allowtransparency="AllowTransparency"></iframe>
						<?php  
						}
						?>												
					</div>						
					
				</div>				
				
			</div>
			
			<?
			include("pie.php");
			
			?>	
			
			
		</div>

		<!-- Scripts -->
			<script src="assets/js/jquery.min.js"></script>
			<script src="assets/js/skel.min.js"></script>
			<script src="assets/js/skel-viewport.min.js"></script>
			<script src="assets/js/util.js"></script>
			<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
			<script src="assets/js/main.js"></script>
			
			

	</body>
</html>