<?php

/* $Id: SelectCustomer.php 7133 2015-02-07 03:23:51Z daintree $*/

include('includes/session.inc');
$Title = _('Search Product items');
include('includes/header.inc');
include('includes/SQL_CommonFunctions.inc');
  

	
			//echo ' <div class="row"> ';
	$SQL = "SELECT stockmaster.stockid,
							stockmaster.description,
							
							stockmaster.barcode
						
							
						FROM stockmaster
						
						
		";
		
		
	$ErrMsg = _('This customer could not be added because');
			
		$result4 = DB_query($SQL,$ErrMsg);
	
		
		
echo '<div class="table-responsive"><table id="projectreport" class="table">';
	echo '<thead> <tr class="info">
			<th>' . _('Stock ID') . '</th>
			
			<th>' . _('Barcode') . '</th>
			
	       	<th>' . _('Description') . '</th>
			  
	
			</thead></tr>';
		
		while ($myrow4= DB_fetch_array($result4)) {
		echo 		
					'<tr><td>' . $myrow4['stockid'] . '</td>
					 
					<td>' . $myrow4['barcode']. '</td>
					
					<td>' . $myrow4['description']. '</td>
					
					
			
				
					</tr>';
		}
	
	
	
	unset($_POST['Barcode']);
unset($_POST['description']);
unset($_POST['quote']);
	
?>

<script>$(document).ready(function() {
    $('#projectreport').DataTable( {
        dom: 'Bfrtip',
        buttons: [
           
		{
                extend: 'pdfHtml5',
                orientation: 'portrait',
			pageSize: 'A4',
			
			
                customize: function(doc) {
      doc.defaultStyle.fontSize = 12; //<-- set fontsize to 16 instead of 10 
					  
   }  
            },
			{
                extend: 'excelHtml5'},
			
			{
                extend: 'copyHtml5'}
			
			
		]
    } );
} );
	
</script>	