Ignore:
Timestamp:
11/03/11 10:30:40 (13 years ago)
Author:
fpvanagthoven
Message:

Fixed mkdir call in ApplicationConnector?.php, now actually makes a directory instead of errors.
Cleaning up of pipeline Sequencer, smaller icons, etc. Trying to get non-db version of editor working properly, then integrate db calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/DisplayStep.php

    r142 r144  
    1818    public $imageURL;
    1919    public $selected = false;
    20     public $name;
     20    public $caption;
     21    public $id;
    2122
    22     public function __construct($t, $ref=null, $n) {
    23        
     23    public function __construct($t, $ref=null, $c, $id) {
     24
    2425        $this->type = $t;
    2526        $this->reference = $ref;
    26         $this->name = $n;
    27        
     27        $this->caption = $c;
     28        $this->id = $id;
     29
    2830        switch ($this->type) {
    2931            case "Questionnaire":
    30                 $this->imageURL = "images/icons/questionnaire2.png";
     32                $this->imageURL = "images/icons/questionnaire.png";
    3133                break;
    3234            case "Dashboard":
    33                 $this->imageURL = "images/icons/dashboard2.png";
     35                $this->imageURL = "images/icons/dashboard.png";
    3436                break;
    3537            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";
    4039                break;
    4140            default:
     
    4342                break;
    4443        }
    45        
     44
    4645        //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>';
    5148    }
    5249
Note: See TracChangeset for help on using the changeset viewer.