<?php
session_start();
include_once "../config.php";
require_once '../database1.php';
require_once "../check_admin.php";

class product extends database
{

	public function GetCategory()
    {
		return $this->fetchAll('tb_product_category');
	}
	public function GetBrand()
    {
		return $this->fetchAll('tb_brands');
	}
}	
$obj = new product();
$productCategories = $obj->GetCategory();

$brands=$obj->GetBrand();
include '../header.php';
?>

<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/style.css">
<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/jquery.fileupload.css">
<input type="hidden" class="file_url" value="<?php echo DOMAIN ?>/ajax/update_ean_bulk_csv" />
<script src="<?php echo DOMAIN ?>/ckeditor/ckeditor.js"></script>
            <!-- MAIN CONTENT-->
            <div class="main-content">
                <div class="section__content section__content--p30">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="overview-wrap">
                                    <h2 class="title-1">Update EAN from csv</h2>
                                    
                                </div>
								<?php if($msg !=''){echo '<span class="col-md-6 alert alert-danger pull-left">' . $msg .  '</span>';}?>
                            </div>
                        </div>
                        
                        <div class="row m-t-25 m-row">
					
                            <div class="col-lg-10">
                                <div class="card">
                                    
                                    <div class="card-body card-block">
    									<form method="post" class="form"  >
                                            <div class="form-group col-xs-12 input-container file_upload_container">
			                                    <div class="col-xs-12 control-label">
			                                    	Upload csv file*
			                                    </div>
			                                    <div class="col-xs-12 contact-input">
			                                        <input type="hidden" class="image file_url" name="image" />
			                                            <input type="hidden" class="name"   />
			                                                <!-- The container for the uploaded files -->
			                                                <span class="btn btn-success fileinput-button">
			                                                <i class="glyphicon glyphicon-plus"></i>
			                                                <span>Select file</span>
			                                                <!-- The file input field used as target for the file upload widget -->
			                                                <input class="fileupload" type="file" name="file" >
			                                                </span>
			                                                <br>
			                                            <br>
			                                            <!-- The global progress bar -->
			                                            <div class="progress">
			                                                <div class="progress-bar progress-bar-success"></div>
			                                            </div>
			                                            <!-- The container for the uploaded files -->
			                                            <div class="files_area"></div>
			                                            <div class="file_name">
			                                                    
			                                            </div>
			                                        <div class="error_area"></div>
			                                        <div class="error-input"></div>
			                                    </div>
			                                </div>
                                            <div class="error-main"></div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                          
                        </div>
                        
                    <script>
						$(document).ready(function(){
							$('.active').removeClass('active');
							$('#cat-menu').addClass('active');
						});
					</script>   

          
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.fileupload.js"></script>

<?php
  include '../footer.php';
?>