<?php

ini_set('display_errors', 1);
define("ADMIN", true);
require_once("../../common/lib.php");
require_once("../../common/define.php");
define("TITLE_ELEMENT", 'Inventaire vente');
if(!isset($_SESSION['user'])){
    header("Location: /admin/login.php");
    exit();
}
require_once("../includes/fn_module.php"); ?>
<!DOCTYPE html>
<head>
    <?php include("../includes/inc_header_common.php"); ?>

</head>
<body>
    <div id="wrapper">
        <?php include("../includes/inc_top.php"); ?>
        <div id="page-wrapper">
            <div class="page-header">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-8">
                            <h1><i class="fa fa-random"></i> Inventaire vente</h1>
                        </div>
                    </div>
                </div>
            </div>
            <div class="container-fluid">
                <div class="alert-container">
                    <div class="alert alert-success alert-dismissable"></div>
                    <div class="alert alert-warning alert-dismissable"></div>
                    <div class="alert alert-danger alert-dismissable"></div>
                </div>
                <div class="row" style="width:50%">				
				
	<form method="GET" action="stock_search.php">				

	<div class="panel panel-default">
		<div class="panel-body">
			<label class="col-lg-4 control-label  text-right">Date&nbsp;<span class="red">*</span></label>
			<div class="col-lg-6">
				<div class=" form-inline">                                                                            
					<div class="input-group">
						<div class="input-group-addon"><i class="fa fa-calendar"></i></div>
						<input type="text" class="form-control datepicker" name="date" value="<? echo date('Y-m-d'); ?>" >
					</div>
				</div>
			</div>
		 </div>
	</div> 



	<div class="panel panel-default">
		<div class="panel-body">
			   <label class="col-lg-4 control-label text-right">Type Catégorie Famille &nbsp;<span class="red">*</span></label>
			   <div class="col-lg-6">
				  <div class=" form-inline">
					 <select id="product" name="cat" class="form-control">					
						<option value="vente">VENTE</option>						
						<?php
						// if($db !== false){
							// $query = "SELECT * FROM `pm_category` WHERE stockable = 1 order by id ASC";
							// $result = @$db->query($query);
                            // if($result !== false){
								// foreach($result as $row){
									// echo '<option value="'.$row['id'].'">'.$row['nom'].'</option>';
								// }	
							// }	
							
						// } ?>
					 </select>
				  </div>
			   </div>
		 </div>
	</div> 

	<div class="panel panel-default">
		<div class="panel-body">
			   <label class="col-lg-4 control-label " ></label>
			   <div class="col-lg-6">
				  <div class=" form-inline">
						<button type="submit" class="btn btn-default mt15" data-toggle="tooltip" data-placement="bottom" title="Rchercher">
							<i class="fa fa-search"></i><span class="hidden-sm hidden-xs"> Rchercher</span>
						</button>
				  </div>
			   </div>
		 </div>
	</div> 


</form>	
									
                    <?php
                    if($db !== false){
                        
                    } ?>
					
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<?php
$_SESSION['msg_error'] = "";
$_SESSION['msg_success'] = "";
$_SESSION['msg_notice'] = ""; ?>
