Example #1
0
 public function __construct($text = NULL)
 {
     parent::__construct('legend');
     if (!is_null($text)) {
         parent::appendChild($text);
     }
 }
Example #2
0
 public function addItem($content)
 {
     $child = new HTMLElement('li');
     $child->appendChild($content);
     parent::appendChild($child);
     return $child;
 }
Example #3
0
 public function __construct($content = NULL)
 {
     parent::__construct('fieldset');
     if (!is_null($content)) {
         parent::appendChild($content);
     }
 }
Example #4
0
 private function topRightMenu()
 {
     $div = new HTMLDiv("float_right");
     $div->class = "float_right";
     $ul = new HTMLElement("ul");
     if (is_array($this->topRightMenu)) {
         foreach ($this->topRightMenu as $item) {
             $li = new HTMLElement("li");
             $li->appendChild($item);
             $ul->appendChild($li);
         }
     }
     $div->appendChild($ul);
     $this->topRightMenu = $div;
     return $this->topRightMenu;
 }
Example #5
0
 /**
  * Gera uma caixa de sele��o com os valores representando os segundos
  * @param string $name
  * @param string $cmp
  * @param  boolean $autoDraw
  * @return mixed
  */
 public function getSelectSeconds($name = "seconds", $cmp = NULL, $autoDraw = FALSE)
 {
     if (!$cmp) {
         $cmp = date("s");
     }
     $select = new HTMLElement("select");
     $select->name = $name;
     $select->id = $name;
     $select->appendChild($this->getMinutesOptions($cmp));
     return $this->autoDraw($select, $autoDraw);
 }
Example #6
0
 /**
  * Enter description here...
  *
  * @param string $text
  */
 public function __construct($content = "")
 {
     parent::__construct("span");
     parent::appendChild($content);
 }