Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $this->record++;
- $initr=$this->record;
- //set top margin
- $topmargin=.75; //.75 bumping up the top margin moved the Full Address down and was how I gave the barcode room on the label
- // change this number to the number of items per page
- $r=($initr % 30);
- if ($r==0) {
- //also change this to items per page
- $r=30;
- }
- //column 1
- if (($r % 3) == 1) {
- $x=.25;
- $y=((floor($r/3)+1)*$h)-($h-$topmargin);
- }
- //column 2
- if (($r % 3) == 2) {
- $x=3;
- $y=((floor($r/3)+1)*$h)-($h-$topmargin);
- }
- //column 3
- if (($r % 3) == 0) {
- $x=5.75;
- $y=((floor($r/3)+1)*$h)-((2*$h)-$topmargin);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement