<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo SOFTWARE_NAME . ' - ' . $this->conf->RazonSocial; ?></title>

    <!-- Bootstrap core CSS -->
    <?php echo link_tag('assets/bootstrap/css/bootstrap.css'); ?>
    <?php echo link_tag('assets/bootstrap/css/custom.css'); ?>    
    <?php echo link_tag('assets/bootstrap/css/bootstrap.min.css'); ?>
    <?php echo link_tag('assets/bootstrap/css/light/bootstrap-theme.min.css'); ?>
    <?php echo link_tag('assets/bootstrap/css/light/style.css'); ?>
    <?php echo link_tag('assets/bootstrap/css/light/jqgrid/ui.jqgrid.css'); ?>
   
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/jquery-1.10.2.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/bootstrap-addons.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/bootstrap.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/ini.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/jquery.validator.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/jquery.form.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/jquery.jqGrid-4.5.4/js/jquery.jqGrid.min.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/jquery.jqGrid-4.5.4/src/i18n/grid.locale-es.js'); ?>"></script>
    
    <!-- Hight Charts -->
    <script type="text/javascript" src="<?php echo base_url('assets/bootstrap/js/highcharts/highcharts.js'); ?>"></script>
    
    <script>
	    function base_url(url)
	    {
			return '<?php echo base_url('index.php'); ?>' + '/' + url;
		}

		var FormatoFecha = 'dd/mm/yyyy';
		var moneda = '<?php echo $this->conf->Moneda_id; ?>';
		var Modulos = '<?php echo MODULES; ?>';
	</script>
  </head>

  <body>
<div id="wrapper">
			






        <nav class="navbar-default navbar-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="main-menu">
			<li class="text-center">
				<a class="imagen-menu"  href="#"><img src="<?php echo base_url('assets/bootstrap/css/light/images/logoheader.png'); ?>"/></a>
			</li>
			
			
			<li>
				<a class="active-menu" href="http://www.siscontrol.desarrollobc.com/usuario/principal"><i class="fa fa-dashboard fa-3x"></i>Principal</a>
			</li>
			
            
              <li>
                        <a href="#"><i class="fa fa-bar-chart-o fa-3x"></i> Gestión de Productos<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li>
                                <a>Productos Generales<span class="fa arrow"></span></a>
                            
                                <ul class="nav nav-third-level collapse">
                                     <li>
                                        <a href="http://www.siscontrol.desarrollobc.com/articulo/listarArticulos">Listar Productos</a>
                                    </li>
                                    <li>
                                        <a href="http://www.siscontrol.desarrollobc.com/articulo/listarstock">Productos con Stock Minimo</a>
                                    </li>
                                     <li>
                                        <a href="http://www.siscontrol.desarrollobc.com/articulo/listarMinimo">Stock Minimo por Porducto</a>
                                    </li>
                                </ul>
                                </li>
                                    
                            <li>
                                <a href="http://www.siscontrol.desarrollobc.com/articulo/ListarMermas">Mermas de Productos</a>
                            </li>
                            <li>
                                <a>Productos Alimenticios<span class="fa arrow"></span></a>
                                <ul class="nav nav-third-level collapse">
                                     <li>
                                        <a href="http://www.siscontrol.desarrollobc.com/articulo/ListarAlimentos">Listar Alimentos</a>
                                    </li>
                                    <li>
                                        <a href="http://www.siscontrol.desarrollobc.com/articulo/AlimentosVencidos">Productos Vencidos</a>
                                    </li>
                                 
                                </ul>
                               
                            </li>
                        </ul>
                      </li> 
			
		<li>
				<a href="#"><i class="fa  fa-tasks fa-3x"></i>Clasificaciones<span class="fa arrow"></span></a>
				<ul class="nav nav-second-level collapse">
					<li>
						<a href="http://www.siscontrol.desarrollobc.com/articulo/listarCategorias">Categorias</a>
					</li>
                    <li>
						<a href="http://www.siscontrol.desarrollobc.com/articulo/listarSubCategorias">Sub Categorias</a>
					</li>
                    
					
				</ul>
			</li> 

			<li>
				<a href="http://www.siscontrol.desarrollobc.com/articulo/listarSalidas"><i class="fa fa-arrow-circle-left fa-3x"></i>Historial de Salidas</a>
			</li> 
            <li>
                   <a href="http://www.siscontrol.desarrollobc.com/articulo/listarEntradas"><i class="fa  fa-arrow-circle-right fa-3x"></i>Historial de Entrada</a>
			</li>

			

			
			<li>
				<a href="#"><i class="fa fa-group fa-3x"></i> Usuarios<span class="fa arrow"></span></a>
				<ul class="nav nav-second-level collapse">
					<li>
						<a href="http://www.siscontrol.desarrollobc.com/usuario/nuevoUsuario">Crear usuario</a>
					</li>
					<li>
						<a href="http://www.siscontrol.desarrollobc.com/usuario/listarUsuario">Consultar Usuarios</a>
					</li>
				</ul>
			</li>
			
			<li>
				<a href="#"><i class="fa fa-group fa-3x"></i> Proveedores<span class="fa arrow"></span></a>
				<ul class="nav nav-second-level collapse">
					<li>
						<a href="http://www.siscontrol.desarrollobc.com/proveedores/nuevoProveedor">Crear Proveedor</a>
					</li>
					<li>
						<a href="http://www.siscontrol.desarrollobc.com/proveedores/listarProveedores">Consultar Proveedor</a>
					</li>
				</ul>
			</li>

			<li>
                   <a href="http://www.siscontrol.desarrollobc.com/carrito"><i class="fa  fa-shopping-cart fa-3x"></i>Carrito de Compra</a>
			</li>
			<li>
                   <a href="http://www.siscontrol.desarrollobc.com/carrito/listarVentas"><i class="fa  fa-clipboard fa-3x"></i> Listado de Facturas</a>
			</li>
			
			
        </ul>
	</div>   
</nav> <div id="container"><!--</nav> <div id="container1">-->
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
		  <div class="navbar-header">
		    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
		      <span class="sr-only">Toggle navigation</span>
		      <span class="icon-bar"></span>
		      <span class="icon-bar"></span>
		      <span class="icon-bar"></span>
		    </button>
		    <!--<a class="navbar-brand" href="#"><?php echo $this->conf->RazonSocial; ?></a>-->
                     <a href="#"><img src="<?php echo base_url('assets/bootstrap/css/light/images/logoheader1.png'); ?>"/></a>
		  </div>
		
		  <!-- Collect the nav links, forms, and other content for toggling -->
		  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		    <ul class="nav navbar-nav">
		      <?php foreach($this->menu as $m1): ?>
		      	  <?php if($m1->Url != '#'){ ?>
			      <li class="<?php echo $this->router->class == $m1->Class ? 'active' : ''; ?>">
			      	<a href="<?php echo base_url($m1->Url); ?>">
			      		<span class="glyphicon <?php echo $m1->Css; ?>"></span> <?php echo $m1->Nombre; ?>
		      		</a>
		      	  </li>
		      	  <?php }else{ ?>
			      <li class="dropdown <?php echo $this->router->class == $m1->Class ? 'active' : ''; ?>">
			        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon <?php echo $m1->Css; ?>"></span> <?php echo $m1->Nombre; ?> <b class="caret"></b></a>
			        <ul class="dropdown-menu">
					<?php foreach($m1->Hijos as $m2): ?>
				      <?php if($m2->Separador == 1): ?>
				      <li class="divider"></li>
				      <?php endif; ?>
				      <li><?php echo anchor($m2->Url, $m2->Nombre); ?></li>
					<?php endforeach; ?>
			        </ul>
			      </li>
		      	  <?php } ?>
		      <?php endforeach; ?>
		      </ul>
		    <ul class="nav navbar-nav navbar-right">
		      <li><a>Bienvenido <b title="<?php echo $this->user->Nombre; ?>"><?php echo $this->user->Usuario; ?></b></a></li>
		      <li><?php echo anchor('acceso/logout', 'Desconectarse'); ?></li>
		    </ul>
		  </div><!-- /.navbar-collapse -->
		</nav>
   </div></div>
      
   
      
      
    <div class="container">
    
		<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
		  <div class="navbar-header">
		    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
		      <span class="sr-only">Toggle navigation</span>
		      <span class="icon-bar"></span>
		      <span class="icon-bar"></span>
		      <span class="icon-bar"></span>
		    </button>
		    <!--<a class="navbar-brand" href="#"><?php echo $this->conf->RazonSocial; ?></a>-->
                     <!--<a href="#"><img src="<?php echo base_url('assets/bootstrap/css/light/images/logoheader1.png'); ?>"/></a>-->
                      <a class="navbar-brand" href="#">Sistema ProFacStock</a>
		  </div>
		
		  <!-- Collect the nav links, forms, and other content for toggling -->
		  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		    <ul class="nav navbar-nav">
		      <?php foreach($this->menu as $m1): ?>
		      	  <?php if($m1->Url != '#'){ ?>
			      <li class="<?php echo $this->router->class == $m1->Class ? 'active' : ''; ?>">
			      	<a href="<?php echo base_url($m1->Url); ?>">
			      		<span class="glyphicon <?php echo $m1->Css; ?>"></span> <?php echo $m1->Nombre; ?>
		      		</a>
		      	  </li>
		      	  <?php }else{ ?>
			      <li class="dropdown <?php echo $this->router->class == $m1->Class ? 'active' : ''; ?>">
			        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon <?php echo $m1->Css; ?>"></span> <?php echo $m1->Nombre; ?> <b class="caret"></b></a>
			        <ul class="dropdown-menu">
					<?php foreach($m1->Hijos as $m2): ?>
				      <?php if($m2->Separador == 1): ?>
				      <li class="divider"></li>
				      <?php endif; ?>
				      <li><?php echo anchor($m2->Url, $m2->Nombre); ?></li>
					<?php endforeach; ?>
			        </ul>
			      </li>
		      	  <?php } ?>
		      <?php endforeach; ?>
		      </ul>
		    <ul class="nav navbar-nav navbar-right">
		      <li><a>Bienvenido <b title="<?php echo $this->user->Nombre; ?>"><?php echo $this->user->Usuario; ?></b></a></li>
		      <li><?php echo anchor('acceso/logout', 'Salir'); ?></li>
		    </ul>
		  </div><!-- /.navbar-collapse -->
		</nav>
    
        