Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach ($_printer as $p) {
- $series = $p->getPrinterseries();
- if(!$series) {
- $series = '/';
- }
- ?>
- <select>
- <?php
- if($p->getBrand() != $lp) {
- echo "<option value='".$this->htmlEscape($p->getBrand()."'>".$this->htmlEscape($p->getBrand()."</option>";
- $lp = $p->getBrand();
- }
- ?>
- </select>
- <select>
- <?php
- if($series != $ls || $lp != $p->getBrand()) {
- echo "<option value='".$this->htmlEscape($series)."'>".$this->htmlEscape($series)."</option>";
- $lp = $p->getBrand();
- }
- ?>
- </select>
- <select>
- <?php
- echo "<option value='".$p->getDescription()."'>".$p->getDescription()."</option>";
- ?>
- </select>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement