Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. foreach ($_printer as $p) {
  3.         $series = $p->getPrinterseries();
  4.         if(!$series) {
  5.                 $series = '/';
  6.         }
  7.         ?>
  8.        
  9.         <select>
  10.         <?php
  11.                 if($p->getBrand() != $lp) {
  12.                         echo "<option value='".$this->htmlEscape($p->getBrand()."'>".$this->htmlEscape($p->getBrand()."</option>";  
  13.                         $lp = $p->getBrand();
  14.                 }
  15.         ?>
  16.         </select>
  17.         <select>
  18.         <?php
  19.                 if($series != $ls || $lp != $p->getBrand()) {
  20.                         echo "<option value='".$this->htmlEscape($series)."'>".$this->htmlEscape($series)."</option>";  
  21.                         $lp = $p->getBrand();
  22.                 }
  23.         ?>
  24.         </select>
  25.         <select>
  26.         <?php
  27.                 echo "<option value='".$p->getDescription()."'>".$p->getDescription()."</option>";  
  28.         ?>
  29.         </select>
  30. <?php
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement