Пример #1
0
 public function addComponent($area, GUIComponent $component)
 {
     switch ($area) {
         case GUIAreas::CONTENT:
             $this->content_area[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::CONTROL:
             $this->control_area[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::INFO:
             $this->info_area[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::LOGO:
             $this->logo_area[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::SEARCH:
             $this->search_area[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::FOOT:
             $this->footer_content[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         case GUIAreas::TOOLBAR:
             $this->toolbar_content[$component->getName()] = $component->getHTML();
             $this->addControlScriptsAndCss($component);
             break;
         default:
             throw new Exception("Área inválida", "INVALID_AREA");
     }
 }
Пример #2
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->toolbar = new GUITools("mainToolbar");
     $this->getControls();
     $this->createHTML();
 }
Пример #3
0
 public function __construct($name, $options = NULL, GUITableOptionsCondition $cond = NULL)
 {
     parent::__construct($name);
     $this->options = $options;
     $this->csss[] = "GUITools.css";
     $this->condic = $cond;
 }
Пример #4
0
 function __construct($name, $texto)
 {
     parent::__construct($name);
     $this->csss[] = "/smoothness/jquery-ui-1.8.20.custom.css";
     $this->texto = $texto;
     $this->name = $name;
 }
Пример #5
0
 function __construct($name)
 {
     parent::__construct($name);
     $this->html = file_get_contents(TEMPLATES_PATH . $this->template_path);
     //		   $this->csss[]="/smoothness/jquery-ui-1.8.20.custom.css";
     //		   $this->scripts[]= "jquery.js";
     //		   $this->scripts[]= "jquery-ui.js";
     $this->scripts[] = "GUITools.js";
     $this->id = $name;
     $this->components = array();
 }
Пример #6
0
 function __construct($name, $titulo = "", $mensaje, $tipo)
 {
     parent::__construct($name);
     $this->html = file_get_contents(TEMPLATES_PATH . $this->template_path);
     $this->csss[] = "/smoothness/jquery-ui-1.8.20.custom.css";
     $class = explode("#", $tipo);
     $this->html = str_replace("{tipo}", $class[0], $this->html);
     $this->html = str_replace("{ico}", $class[1], $this->html);
     $this->html = str_replace("{titulo}", $titulo, $this->html);
     $this->html = str_replace("{mensaje}", $mensaje, $this->html);
 }
Пример #7
0
 function __construct($name, $permisos, $user)
 {
     parent::__construct($name);
     $this->user = $user;
     $this->makeCode($permisos);
 }
Пример #8
0
 function __construct($name, $html = '')
 {
     parent::__construct($name);
     $this->html = $html;
     $this->makeCode();
 }
Пример #9
0
 function __construct($name)
 {
     parent::__construct($name);
 }