<?php
session_start();
if($_SESSION["username"]=="")
{
 	echo "You are not Logged in Please <a href='index.html'>Sign in </a> First ";
}
else
{
include 'dbc.php';
date_default_timezone_set("Asia/Karachi");
$today=date("Y-m-d");
$month = date("m",strtotime($today));
		$year = date("Y",strtotime($today));
		 $month_name = date("F", mktime(0, 0, 0, $month, 10));
		 $my=$month_name . " " . $year;
$userid=$_SESSION["userid"];
include 'dbc.php';

$username=$_SESSION["username"];

    $id= $_REQUEST['id'];
	
	
?>
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
 
   <?php include("includes/header.php") ?>
</head>

<body>


    <!-- Left Panel -->

    <!-- /#left-panel -->

    <!-- Left Panel -->

    <!-- Right Panel -->

    <div id="right-panel" class="right-panel">

        <!-- Header-->
        <header id="header" class="header">

             <?php include("includes/headermenu.php") ?>

        </header><!-- /header -->
        <!-- Header-->

        <div class="breadcrumbs">
            <div class="col-sm-6">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><? echo "" . $_SESSION["userid"]; ?></h1>
                    </div>
                </div>
            </div>
			
            <div class="col-sm-6">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li class="active"><h2>Total Amount:  <?php echo $tfeerec1; ?>:::Total Items:  <?php echo $tqty; ?></h2></li>
                        </ol>
						<ol class="breadcrumb text-right">
                            <li class="active"><? echo "" . $_SESSION["username"]; ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <div class="content mt-3">
            <div class="animated fadeIn">
                <div class="row">
<div class="col-lg-6">
                        <div class="card">
                            <div class="card-header"><strong>Check Price by Item Name</strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Price_List_Save1.php" method="post" enctype="multipart/form-data" class="form-group">
						
							
			
								<!DOCTYPE html>
<!-- http://www.vivekmoyal.in/autocomplete-textbox-using-jquery-php-mysql/
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body> <br/> <br/>
        <input type="text" id="statelist" name="statelist" placeholder="Search Item Name" value="" size="30" class="form-control">
        <br/>
        <div id="suggesstion-box">
            
        </div>
    </body>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
	$("#statelist").keyup(function(){
		$.ajax({
		type: "POST",
		url: "autocomplete-search.php",
		data:'keyword='+$(this).val(),
		success: function(data){
			$("#suggesstion-box").show();
			$("#suggesstion-box").html(data);
		}
		});
	});
});
function selectState(val) {
$("#statelist").val(val);
$("#suggesstion-box").hide();
}
    </script>
</html>

            </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> Check Price
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>
											
											
											
											<div class="col-lg-6">
                        <div class="card">
                            <div class="card-header"><strong>Check Price by Barcode No</strong><small> Form</small></div>
                            <div class="card-body card-block">
							<form action="Price_List_Save.php" method="post" enctype="multipart/form-data" class="form-group">
							
			
								<div class="col-4">
                                <div class="form-group"><label for="feedisc1" class=" form-control-label"> Barcode No</label><input type="text" id="barcode" name="barcode" placeholder="" class="form-control"></div>
								</div>
								

                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> Check Price
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
                                            </div>
											<div class="col-md-18">
                        
                    </div>
					
					
   
   
    

            	
											
                    


                </div>
            </div><!-- .animated -->
        </div> <!-- .content -->
    </div><!-- /#right-panel -->

    <!-- Right Panel -->

   <?php include("includes/footermenu.php") ?>

</body>
 
</html>
<?php
}

?>