示例#1
0
lang('Barcode Code');
?>
</div>
	<a href="javascript:;" class="img-thumbnail text-center" onclick="print_barcode();" style="width:100%;">
    	<div style="height:4px;"></div>
    	<img src="<?php 
echo get_barcode($product['code']);
?>
" class="img-responsive" />
    </a>
    
    
    <script>
	function print_barcode() { 
		new_window = window.open("<?php 
echo get_print_barcode($product['code']);
?>
?print", "<?php 
echo $product['code'];
?>
","location=0,status=0,scrollbars=0,width=300,height=200"); 
		new_window.moveTo(0,0); 
	}
	</script>
    
</div> <!-- /.col-md-4 -->
</div> <!-- /.row -->


</div><!-- /#product card -->
示例#2
0
    </div>
    
	<div class="box_title turq"><span class="glyphicon glyphicon-barcode mr9"></span>Barkod Kodu</div>
	<a href="javascript:;" class="img-thumbnail" onclick="print_barcode();">
    	<img src="<?php 
echo get_barcode($account['code']);
?>
" class="img-responsive" />
    </a>
    
    
    <script>
	function print_barcode() 
	{ 
		new_window = window.open("<?php 
echo get_print_barcode($account['code']);
?>
?print", "<?php 
echo $account['code'];
?>
","location=0,status=0,scrollbars=0,width=300,height=200"); 
		new_window.moveTo(0,0); 
	}
	
	function address_print() 
	{ 
		new_window = window.open("<?php 
echo site_url('account/address_print/' . $account['id']);
?>
?print", "<?php 
echo $account['code'];