Example #1
0
 /**
  * Class Constructor
  * @param $source Image path
  */
 public function __construct($source)
 {
     parent::__construct('img');
     // assign the image path
     $this->src = $source;
     $this->border = 0;
 }
 public function __construct()
 {
     parent::__construct('div');
     $this->id = 'AreaChart' . uniqid();
     $this->width = '900';
     $this->height = '500';
 }
 public function __construct($width, $height)
 {
     parent::__construct('iframe');
     $this->width = "{$width}";
     $this->height = "{$height}";
     $this->style = "border:0;";
 }
 /**
  * Class Constructor
  */
 public function __construct()
 {
     $this->id = ++self::$scrollCounter . '_' . uniqid();
     $this->margin = 0;
     $this->transparency = FALSE;
     parent::__construct('div');
 }
Example #5
0
 public function __construct()
 {
     parent::__construct('audio');
     $this->id = 'audio' . uniqid();
     $this->controls = true;
     $this->sources = array();
 }
Example #6
0
 /**
  * método construtor
  * instancia objeto TImage
  * @param $source = localização da imagem
  */
 public function __construct($source)
 {
     parent::__construct('img');
     // atribui a localização da imagem
     $this->src = $source;
     $this->border = 0;
 }
 function __construct()
 {
     parent::__construct('div');
     $this->id = 'windos' . uniqid();
     $this->width = null;
     $this->height = null;
     $this->title = null;
 }
 public function __construct($width = 500, $height = 400)
 {
     parent::__construct('div');
     $this->id = "PPanelGrupe" . uniqid();
     $this->style = "\nborder:1px solid #000;\nwidth :{$width}px;\nheight :{$height}px;\n";
     TPage::include_css('app/lib/PComponetes/util/fieldset.css');
     $this->code = array();
 }
 /**
  * Handle paths from a XML file
  * @param $xml_file path for the file
  */
 public function __construct()
 {
     parent::__construct('div');
     $this->{'id'} = 'div_breadcrumbs';
     $this->container = new TElement('ol');
     $this->container->{'class'} = 'breadcrumbs';
     parent::add($this->container);
 }
Example #10
0
 public function __construct($width, $heigth)
 {
     parent::__construct('video');
     $this->id = 'video' . uniqid();
     $this->width = $width;
     $this->heigth = $heigth;
     $this->controls = true;
     $this->sources = array();
 }
Example #11
0
 /**
  * Class constructor
  * @param $label  The menu label
  * @param $action The menu action
  * @param $image  The menu image
  */
 public function __construct($label, $action, $image = NULL)
 {
     parent::__construct('li');
     $this->label = $label;
     $this->action = $action;
     if (file_exists($image)) {
         $this->image = $image;
     }
 }
Example #12
0
 /**
  * Class Constructor
  * @param $name Name of the widget
  */
 public function __construct()
 {
     parent::__construct('div');
     self::$counter++;
     $this->useOKButton = TRUE;
     $this->{'id'} = 'jquery_dialog' . self::$counter . '_' . uniqid();
     $this->{'widget'} = 'T' . 'Window';
     $this->{'style'} = "overflow:auto";
 }
Example #13
0
 /**
  * Class Constructor
  * @param $xml SimpleXMLElement parsed from XML Menu
  */
 public function __construct($xml)
 {
     parent::__construct('ul');
     $this->{'class'} = 'dropdown-menu';
     $this->items = array();
     if ($xml instanceof SimpleXMLElement) {
         $this->parse($xml);
     }
 }
Example #14
0
 /**
  * Class Constructor
  * @param $source Image path
  */
 public function __construct($type = 'danger', $msg = 'alerta', $titulo = "Alerta")
 {
     TPage::include_js('app/lib/PComponetes/util/js/bootstrap.js');
     TPage::include_css('app/lib/PComponetes/util/css/bootstrap.css');
     parent::__construct('div');
     $this->setType($type);
     $this->titulo = $titulo;
     $this->msg = $msg;
     $this->class = "alert alert-dismissable {$this->type} ";
     $this->role = "alert";
 }
Example #15
0
 /**
  * Class Constructor
  * @param $source video path
  * @see format .flv
  */
 public function __construct($source, $youtube = true)
 {
     parent::__construct('embed');
     // assign the image path
     if ($youtube == true) {
         $this->src = "http://www.youtube.com/v/{$source}";
     } else {
         $this->src = $source;
     }
     $this->type = "application/x-shockwave-flash";
 }
Example #16
0
 /**
  * Class Constructor
  */
 public function __construct($id = NULL)
 {
     parent::__construct('div');
     if ($id) {
         $this->id = 'taccordion_' . $id;
         $this->useDialog = true;
     } else {
         $this->id = 'taccordion_' . uniqid();
     }
     $this->elements = array();
 }
Example #17
0
 public function __construct()
 {
     parent::__construct('ul');
     $this->class = 'dropdown-menu dropdown-messages';
     $messages = array();
     $messages[] = array(TSession::getValue('login'), 'Yesterday', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...');
     $messages[] = array(TSession::getValue('login'), 'Yesterday', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...');
     $messages[] = array(TSession::getValue('login'), 'Yesterday', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...');
     $a = new TElement('a');
     $a->{'class'} = "dropdown-toggle";
     $a->{'data-toggle'} = "dropdown";
     $a->{'href'} = "#";
     $a->add(TElement::tag('i', '', array('class' => "fa fa-envelope fa-fw")));
     $a->add(TElement::tag('span', count($messages), array('class' => "badge badge-notify")));
     $a->add(TElement::tag('i', '', array('class' => "fa fa-caret-down")));
     $a->show();
     foreach ($messages as $message) {
         $name = $message[0];
         $date = $message[1];
         $body = $message[2];
         $li = new TElement('li');
         $a = new TElement('a');
         $div = new TElement('div');
         $a->href = '#';
         $li->add($a);
         $a->add($div);
         $div->add(TElement::tag('strong', $name));
         $div->add(TElement::tag('span', TElement::tag('em', $date), array('class' => 'pull-right text-muted')));
         $div2 = new TElement('div');
         $div2->add($body);
         $a->add($div2);
         parent::add($li);
         parent::add(TElement::tag('li', '', array('class' => 'divider')));
     }
     $li = new TElement('li');
     $a = new TElement('a');
     $li->add($a);
     $a->class = 'text-center';
     $a->href = '#';
     $a->add(TElement::tag('strong', 'Read messages'));
     $a->add($i = TElement::tag('i', '', array('class' => 'fa fa-inbox')));
     parent::add($li);
     parent::add(TElement::tag('li', '', array('class' => 'divider')));
     $li = new TElement('li');
     $a = new TElement('a');
     $li->add($a);
     $a->class = 'text-center';
     $a->href = '#';
     $a->add(TElement::tag('strong', 'Send message'));
     $a->add($i = TElement::tag('i', '', array('class' => 'fa fa-envelope-o')));
     parent::add($li);
 }
Example #18
0
 function __construct($local = 'pt_BR')
 {
     require_once "lib/gantti.php";
     parent::__construct('iframe');
     $this->style = "border:0;";
     $this->data = array();
     date_default_timezone_set('UTC');
     if ($local = 'pt_BR') {
         setlocale(LC_ALL, $local, 'ptb');
     } else {
         setlocale(LC_ALL, $local);
     }
 }
Example #19
0
 /**
  * Class Constructor
  * @param  $width   Panel's width
  * @param  $height  Panel's height
  */
 public function __construct($width, $height)
 {
     self::$counter++;
     // creates the panel style
     $painel_style = new TStyle('tpanel' . self::$counter);
     $painel_style->position = 'relative';
     $painel_style->width = $width . 'px';
     $painel_style->height = $height . 'px';
     // show the style
     $painel_style->show();
     $this->panelId = self::$counter;
     parent::__construct('div');
     $this->{'class'} = 'tpanel' . self::$counter;
 }
 public function __construct($width, $heigth)
 {
     parent::__construct('div');
     $this->id = 'tabs' . uniqid();
     $width1 = $width + 10;
     $heigth1 = $heigth + 20;
     $this->ul = new TElement('ul');
     $this->ul->id = 'pnotebook' . uniqid();
     $this->ul->class = "tabs";
     $this->style = "width :{$width1}px;heigth :{$heigth1}px;";
     $this->ul->style = "width : {$width}px;heigth :{$heigth}px";
     $this->elements = array();
     $this->content = new TElement('div');
 }
Example #21
0
 public function __construct($label)
 {
     parent::__construct('a');
     $this->id = 'tlink_' . uniqid();
     $this->class = 'tlink';
     $style = new TStyle('tlink');
     $style->display = 'inline-block';
     $style->border = '1px solid #000';
     $style->padding = '4px';
     $style->border_radius = '5px 5px 5px 5px';
     $style->background = '#FFFFD8';
     $style->cursor = 'pointer';
     $style->show();
     parent::add($label);
 }
 /**
  * método __construct()
  * instancia objeto TPanel.
  * @param $width     = largura do painel
  * @param $height = altura do painel
  */
 public function __construct($width, $height)
 {
     // instancia objeto TStyle
     // para definir as características do painel
     $painel_style = new TStyle('tpanel');
     $painel_style->position = 'relative';
     $painel_style->width = $width;
     $painel_style->height = $height;
     $painel_style->border = '2px solid';
     $painel_style->border_color = 'grey';
     $painel_style->background_color = '#f0f0f0';
     // exibe o estilo na tela
     $painel_style->show();
     parent::__construct('div');
     $this->class = 'tpanel';
 }
Example #23
0
 /**
  * Class Constructor
  * @param  $value text label
  */
 public function __construct($width = NULL, $height = NULL)
 {
     parent::__construct('fieldset');
     self::$counter++;
     $this->frameId = self::$counter;
     // creates the default field style
     $style = new TStyle('tfieldset' . self::$counter);
     $style->border = 'solid';
     $style->border_color = '#a0a0a0';
     $style->border_width = '1px';
     $style->padding_left = '3px';
     $style->padding_right = '3px';
     $style->padding_top = '3px';
     $style->padding_bottom = '3px';
     if ($width) {
         $style->width = $width . 'px';
     }
     if ($height) {
         $style->height = $height . 'px';
     }
     $style->show();
     $this->id = 'tfieldset' . self::$counter;
     $this->{'class'} = 'tfieldset' . self::$counter;
 }
Example #24
0
 function __construct()
 {
     parent::__construct('div');
     require_once 'lib/GoogChart.class.php';
     $this->chart = new GoogChart();
 }
Example #25
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct('tr');
 }
Example #26
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct('div');
     $this->id = 'taccordion_' . uniqid();
     $this->elements = array();
 }
Example #27
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct('div');
     $this->style = 'display: inline-block';
 }
Example #28
0
 /**
  * método __construct()
  */
 public function __construct()
 {
     // define o elemento que irá representar
     parent::__construct('html');
 }
 /**
  * Class Constructor
  */
 public function __construct()
 {
     $this->id = 'ttreeview_' . uniqid();
     $this->collapsed = FALSE;
     parent::__construct('ul');
 }
Example #30
0
 /**
  * Class Constructor
  * @param $value  TableCell content
  */
 public function __construct($value)
 {
     parent::__construct('td');
     parent::add($value);
 }