/** * @return Standard8_Sidebar */ public function appendLine($label = null) { $li = Wax_Document::createElement('li')->setClassName('line'); if (!empty($label)) { $li->appendChild(Wax_Document::createElement('span')->innerHTML($label)); } else { $li->appendChild(Wax_Document::createComment('')); } $this->_pagesnav->appendChild($li); }
public function __construct($action = '', $method = self::METHOD_POST) { parent::__construct('Form'); $this->_hiddens = Wax_Document::createElement('div', $this)->setClassName('hiddens')->appendChild(Wax_Document::createComment('')); $this->_dl[0] = Wax_Document::createElement('dl', $this); if (is_null($method)) { $method = self::METHOD_POST; } $this->setAttribute('action', $action); $this->setAttribute('method', $method); Wax_Document::$head->importJavaScript('/javascripts/jquery.metadata.js'); Wax_Document::$head->importJavaScript('/javascripts/jquery.validate.js'); Wax_Document::$head->importJavaScript('/@JavaScript/Wax_Document_Body_Form'); # Wax_Document::$head->importJavaScript($this); }
public function __construct() { parent::__construct('div'); $this->_locationBar = Wax_Factory::createObject(array('Standard8', 'Standard8_Location')); if (Standard8_Session::getSID()) { $username = Standard8_Session::getData('usuario'); $this->_locationLogout = Wax_Document::createElement('div')->setClassName('logout')->appendChild(Wax_Document::createElement('a')->appendChild(Wax_Document::$body->createImage(Standard8_Uri::createUriIcon('user'), $username))->appendChild(Wax_Document::createTextNode($username))->setAttribute('href', Standard8_Uri::createUriProfile($username)))->appendChild(Wax_Document::createTextNode(' - '))->appendChild(Wax_Document::createElement('a')->setAttribute('href', Standard8_Uri::createUri('Personas_Salir', 'Standard8'))->innerHTML(__('Salir'))); } $this->_locationDiv = Wax_Document::createElement('div', $this)->setClassName('location')->appendChild(Wax_Document::createElement('strong')->innerHTML('Standard8'))->appendChild($this->_locationBar)->appendChild($this->_locationLogout); $this->_sidebar = Wax_Factory::createObject(array('Standard8', 'Standard8_Sidebar')); $this->appendChild($this->_sidebar); $SID = Standard8_Session::getSID(); if (!empty($SID)) { $this->appendLocation(__('Administracion'), '', 'Administracion')->appendLocation(__('Configuracion'), 'Configuracion', 'Administracion', true, 'cog')->appendLocation(__('Personas'), 'Personas', 'Administracion', true, 'user'); } $this->_container = Wax_Document::createElement('div', $this)->setClassName('container'); $this->_bottom = Wax_Document::createElement('div')->setClassName('bottom')->appendChild(Wax_Document::createComment(' ')); }