Location: PHPKode > projects > Rainbow Trading > rgbtrade/includes/box.php
<?php
  /* Class Box
  *  This file is part of the rgbTrade system, enabling the use of a 3-D monetary unit for trading. 
  *  For details see www.kleureneconomie.nl or sourceforge.net/rgbtrade
  *  @author  Barry Voeten, hide@address.com
  *  @license Gnu Public License 
  */

  class Box {
    var $title;
    var $cssclass;
    var $text;
    var $visible;

    function Box()  {
      $this->style="";
      $this->title="";
      $this->text="";
      $this->visible = false ;
    }

    function show()  {
      if($this->visible == true){
        print "<div id='dynaBox' class='" . $this->getCssClass() . "'><h1 class='" . $this->getCssClass() . "'>" . $this->getTitle() . "</h1>" .  $this->getTheText() . "</div>"  ;
      }
    }
    function setTitle($title) {
        $this->title=$title;
    }
    function getTitle() {
        return $this->title;
    }
    function setCssClass($class) {
        $this->cssclass = $class;
    }
    function getCssClass() {
        return $this->cssclass;
    }

    function setText($text) {
        $this->text = $text;
    }
    function getTheText() {
        return($this->text);
    }

    function setVisible($visible) {
        $this->visible = $visible;
    }

    function getVisible() {
        return($this->visible);
    }

  }
?>
Return current item: Rainbow Trading