Changeset 144 for Dev/trunk/classes/DisplayStep.php
- Timestamp:
- 11/03/11 10:30:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/DisplayStep.php
r142 r144 18 18 public $imageURL; 19 19 public $selected = false; 20 public $name; 20 public $caption; 21 public $id; 21 22 22 public function __construct($t, $ref=null, $ n) {23 23 public function __construct($t, $ref=null, $c, $id) { 24 24 25 $this->type = $t; 25 26 $this->reference = $ref; 26 $this->name = $n; 27 27 $this->caption = $c; 28 $this->id = $id; 29 28 30 switch ($this->type) { 29 31 case "Questionnaire": 30 $this->imageURL = "images/icons/questionnaire 2.png";32 $this->imageURL = "images/icons/questionnaire.png"; 31 33 break; 32 34 case "Dashboard": 33 $this->imageURL = "images/icons/dashboard 2.png";35 $this->imageURL = "images/icons/dashboard.png"; 34 36 break; 35 37 case "Application": 36 $this->imageURL = "images/icons/application2.png"; 37 break; 38 case "Notice": 39 $this->imageURL = "images/icons/notice2.png"; 38 $this->imageURL = "images/icons/application.png"; 40 39 break; 41 40 default: … … 43 42 break; 44 43 } 45 44 46 45 //output a display object 47 echo '<div class="displayStep" style="background-image: url(\''; 48 echo $this->imageURL; 49 echo '\');" ><p>'.$this->name.'</p></div>'."\n"; 50 46 //echo '<div class="displayStep"><div class="displayStepIcon" style="background-image: url('.$this->imageURL.');"></div>'.$this->caption.'</div>'."\n"; 47 echo '<div class="displayStep"><div class="displayStepIcon"><img src="' . $this->imageURL . '" /></div>' . $this->caption . '</div>'; 51 48 } 52 49
Note: See TracChangeset
for help on using the changeset viewer.