<? include "top.php"; 
	//include "barcode/barcode.php";
?>
<!DOCTYPE html>
<html>
<head>
	
	<title>Cable Customer List</title>
	
</head>
<body style="padding:5%;">
	
	<style type="text/css">
		
		th{

			font-size: 14px;
		}

		td{

			font-size: 12px;
		}
	</style>
	<style>

img.barcode {
    border: 1px solid #ccc;
    padding: 20px 10px;
    border-radius: 5px;
}

#string, #size {
    height: 30px;
}

</style>
	
	
						<table style="width: 100%;">
							<thead>
								<tr>
									<th>Barcode</th>
									<th>Name</th>
									
								</tr>
							</thead>
							<tbody>
								<?
									$getc=mysqli_query($con,"SELECT * FROM adduser WHERE is_cable=0 ORDER BY name");
									while($arr=mysqli_fetch_array($getc)){

										$getar=f(q("SELECT * FROM tbl_area WHERE arid='$arr[area_id]'"));

										$string = trim($arr['custid']);
					                    $type='code128';
					                    $orientation='horizontal';
					                    $size='20';
					                    $print='true';


								?>
								<tr>
									<td class="table-plus" style="text-align: center;">
										<?
										//echo "barcode.php?text=$string&codetype=$type&orientation=$orientation&size=$size&print=$print";
	//file_get_contents('barcode.php?text=$string&codetype=$type&orientation=$orientation&size=$size&print=$print');
										?>
										<img style='width: 0px;height:0px' alt='.' src="barcode.php?text=<?=$string?>&codetype=<?=$type?>&orientation=<?=$orientation?>&size=<?=$size?>&print=<?=$print?>"/>

										<img class="barcode" alt='<?=$string?>' src="bcodes/<?=$string?>.png"/>

									</td>
									<td  style="text-align: center;"><?=$arr['name']?><br><?=$arr['phone']?><br><?=$arr['custid']?></td>
											
									
									
								</tr>
								<? } ?>	
							</tbody>
						</table>
					
</body>
</html>