ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/custom-barcode-print.php

<?php require_once('header.php'); ?>
<style>

    @media print {
    body{
        min-width: 50.8mm;
        min-height: 25.4mm;
       
        /*margin: 3mm 3mm 3mm 3mm;*/ 
         /*change the margins as you want them to be. */
   } 
}
div.solid {
    /*border-style: solid;*/
    min-width:50.8mm;min-height:25.4mm;
    background-color: white;
}


@import url('http://fonts.cdnfonts.com/css/candice');
</style>
    

<script>
function goBack() {
  window.history.back();
}
</script>
<br>
<body >
    
<div style="margin-left:35%;margin-right:35%;">
    <center><button class="btn btn-sm btn-warning" onclick="printDiv('printableArea')"> <i class="fa fa-print" ></i> Print Now</button>&ensp;
    <a href="custom-barcode-generator.php"><button class="btn btn-sm btn-danger" > <i class="fa fa-arrow-left" ></i> Back to Generate Barcode</button></a>&ensp;<br><br></center>
	<div id="printableArea">
	    
	    
	  <?php 
	  
    $barcode_number=array();
    $barcode_end_number=array();
    
    $barcode_number = $_POST['barcode_number'];
    $barcode_end_number = $_POST['barcode_end_number'];
$r=0;
foreach($barcode_number as $barcode_no){
    //200  200>=100 ; 200--
	  for($n=$barcode_end_number[$r];$n>=$barcode_number[$r];$n--){ ?>
	        <div class="solid" >
	            
	            
	            <table style="font-size:11px;" width="100%">
	                <tr>
	                    <td><center style="font-weight:900;font-size:17px;padding:2px;font-family: 'Candice', sans-serif;"><b>SPEEDLINK SERVICE</b></center></td>
	                </tr>
	                <tr>
	                    <td><center><img alt='Barcode' width='170px' height='40px' src='barcode/barcode.php?codetype=Code128&size=35&text=<?=$n?>'/>
	                    <br><b style="font-size:18px;"><?=$n?></b></center></td>
	                </tr>
	           </table>

        </div>
    <?php } $r++;}?>
    
    
</div>
    </div>
</body>
<!-- page script -->


<script>
 $(document).on('click', '.remove_variation', function() {
        $(this).closest('.row').remove();
    });
    $('#add_packate_variation').on('click', function() {
        html = '<div class="row" style="padding-left: 1.5%;"><div class="col-sm-3"><div class="form-group"><input type="number" class="form-control" name="barcode_number[]" placeholder="Enter Barcode Number" required/></div></div><div class="col-sm-3"><div class="form-group"><input type="number" class="form-control" name="barcode_start_number[]" placeholder="Enter Barcode Number Start Number" required/></div></div><div class="col-sm-3"><div class="form-group"><input type="number" class="form-control" name="barcode_end_number[]" placeholder="Enter Barcod End Number" required/></div></div><div class="col-sm-3"><div class="form-group"><a class="remove_variation text-danger" title="Remove variation of product" style="cursor: pointer;"><i class="fa fa-times fa-2x"></i></a></div></div></div>';
        $('#variations').append(html);
    });
</script>


<script>

 
  function printDiv(divName) {
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}

  $(function () {
    $("#example1").DataTable();
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
    });
  });
</script>
<?php require_once('footer.php'); ?>

Zerion Mini Shell 1.0