<?php
session_start();
require_once('conexion.php');
if (isset($_SESSION['usu_nombre']))
{
    require_once('include/sesiones.php');
    $regis=mysqli_query($con,"SELECT * from permiso where modulo_mod_id='4' and usuario_usu_id='$usu_id'") or die(mysqli_error($con));
    $reg=mysqli_fetch_array($regis);
    if($reg['per_visualizar']=="Activo")
    {
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php include ('head.php');?>
</head>
<body >
<?php
$inicio="";
$M_inventario="active";
$M_contactos="";
$M_compras="";
$M_ventas="";
$M_pedidos="";
$M_pos="";
$R_reportes="";

$m_familias="";
$m_articulos="";
$m_combos="";
$m_servicios="";
$m_productos="";
$m_tarifas="";
$m_bodegas="";
$m_traslados="";
$m_ajustes="";
$m_etiquetas="";
$m_ubicacion="";
$m_marca="active";
include ('menu.php');
?> 
    
<div class="main">
    <div class="col-md-2">
	    <?php include ('include/menu_inventario.php');?> 
    </div> <!-- /span6 -->
 	
    <div class="col-md-3">  
        <div class="widget stacked">
            <div class="widget stacked widget-table acti on-table">
                <div class="widget-content">
                     <form  name="add_name" id="add_name" method="post"  action="" enctype="multipart/form-data">
                        <div class="modal-body">
					        <div class="">
						        <label>Nueva Marca</label>
						        <input type="text"  name="marca_nombre" id="marca_nombre" class="form-control" autocomplete="off"  value="" required >

                                <label>&nbsp</label>
                                <label for="imagen" style="width: 100%;">Subir Imagen </label>
                                <input type="file"  name="imagen" id="imagen" >

					        </div> <!-- /.form-group -->
                            <div class="modal-footer">
                                <button type="submit" id="submit" class="btn btn-success"><i class="icon-ok"></i> <strong>Registrar</strong></button>
                            </div>
                        </div>
                    </form>
                </div> <!-- /widget-content -->
            </div> <!-- /widget -->
        </div>
    </div>
    <div class="col-md-7" >
        <div class="widget stacked">
            <div class="widget-content">
                <div class="widget stacked">
                    <div class="widget-content">
                        <section id="buttons">
                            <div class="col-md-7"></div>
                            <div class="col-md-5">
                                <input type="text" class="form-control" id="q" placeholder="Buscador" onKeyUp='load(1);' autofocus value="" autocomplete="off">
                            </div>
                        </section>
                    </div>
                </div>
                <center> <span id="loader"></span></center>
                <div id="resultados"></div><!-- Carga los datos ajax -->
                <div class='outer_div'></div><!-- Carga los datos ajax -->
                <?php include ('include/pie_de_pagina.php'); ?>
            </div>    
        </div>
    </div> <!-- /span8 -->
</div> <!-- /main -->
<?php
    include('php_marca/form_modificar_marca.php'); 
    include ('php_caja/caja_abrir.php');
    include ('script.php');
?>
<script type="text/javascript" src="php_marca/ajax.js"></script>
</body>
</html>

<?php
}
else
{
    echo '<script>alert("No tienes permiso para ver esta pagina")</script>';
    echo '<script> setTimeout("history.back(1)", 0); </script>';
}
}
else
{
    echo '<script>location.href = "index.php";</script>';
}
?>