[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/includes/modules/batch_print/templates/ -> grid.php (source)

   1  <?php
   2  
   3  // set paper type and size

   4  if ($pageloop == "0") {
   5  $pdf = new Cezpdf(A4,portrait);
   6  } else {
   7  
   8  $pdf->selectFont(BATCH_PDF_DIR . 'Helvetica.afm');
   9  $pdf->setFontFamily(BATCH_PDF_DIR . 'Helvetica.afm');
  10  $y=10;
  11  $i=0;
  12  do
  13  {
  14  $i++;
  15  $y = $y+20;
  16  $pdf->setLineStyle(1);
  17  $pdf->line(0,$y,600,$y);
  18  $pdf->addText(0,$y,8,"$y");
  19  $pdf->ezSetY($y);
  20  $dup_y = $y;
  21  }
  22  while ($i<40);
  23  
  24  
  25  $x=10;
  26  $i=0;
  27  do
  28  {
  29  $i++;
  30  $x = $x+20;
  31  $pdf->setLineStyle(1);
  32  $pdf->line($x,0,$x,900);
  33  $pdf->addText($x,0,8,"$x");
  34  $pdf->ezSetY($x);
  35  $dup_x = $x;
  36  }
  37  while ($i<30);
  38  
  39  }
  40  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7