Changeset 1351


Ignore:
Timestamp:
Jan 30, 2011, 9:52:48 PM (7 years ago)
Author:
dkg
Message:

highlight blocks of 4 rows each on the attendee index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.pdf.php

    r1329 r1351  
    268268                  $this->SetFont($this->_font, '');
    269269
     270          $this->SetFillColor(224);
     271
    270272                  while ((count($peops) > 0) && ($row < $peopspercol)) {
    271273                        $peop = array_shift($peops);
    272274                        $this->SetXY($this->_margin + $col*($colwid + $gutter), $this->_margin + ($row+1)*$linehi);
    273                         $this->fitCell($colwid/2, $linehi, iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $peop['last_name'].', '.$peop['first_name'].' '.$peop['middle_name']));
    274                         $this->fitCell($colwid/3, $linehi, $jpdd->isEmpty($peop['workshop']) ? ' ' : $peop['workshop']);
    275                         $this->fitCell($colwid/6, $linehi, $jpdd->isEmpty($peop['room']) ? ' ' : $peop['room'], 0,0,'R');
     275            $fillthisrow = floor($row/4)%2;
     276                        $this->fitCell($colwid/2, $linehi, iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $peop['last_name'].', '.$peop['first_name'].' '.$peop['middle_name']), 0, 0, 'L', $fillthisrow);
     277                        $this->fitCell($colwid/3, $linehi, $jpdd->isEmpty($peop['workshop']) ? ' ' : $peop['workshop'], 0, 0, 'L', $fillthisrow);
     278                        $this->fitCell($colwid/6, $linehi, $jpdd->isEmpty($peop['room']) ? ' ' : $peop['room'], 0, 0, 'R', $fillthsrow);
    276279                        $row++;
    277280                  }
Note: See TracChangeset for help on using the changeset viewer.