public function __construct() { parent::__construct('ul'); $this->appendLocation(__('Principal'), Standard8_Uri::createUri(), false, 'house'); # $this->_lastLi->appendClassName('drop'); # $this->_lastLi->appendChild( # Wax_Factory::createObject( array('Standard8', 'Standard8_Location_Modules') ) # ); }
public function __construct($tagName, $name, $keys = null) { parent::__construct($tagName); $this->_name = $name; $this->_keys = array(); foreach ((array) $keys as $key) { $this->appendKey($key); } $this->generateName(); }
public function __construct($value, $label, $selected = false) { parent::__construct('Option'); $this->setAttribute('value', $value); $this->innerHTML($label); $this->removeId(); if ($selected) { $this->setAttribute('selected', 'selected'); } }
public function __construct(Standard8 $Standard8, $mail = '') { parent::__construct('div'); $SID = Standard8_Session::getSID(); if (!empty($SID)) { throw new Wax_Exception('User already sign in.'); } $form = Wax_Document::$body->createForm()->showMessages(true)->appendMessage('mail', __('CorreoElectronicoEsObligatorio'))->appendText('mail', __('CorreoElectronico'), $mail, 60, true)->appendSubmit('submit', __('RecuperarClave')); $this->appendChild($Standard8->createTitleNav(__('RecuperarClave')))->appendChild($form); $Standard8->appendLocation(__('Ingresar'), 'Personas_Ingresar', 'Standard8')->appendLocation(__('RecuperarClave'), 'Personas_Recuperar', 'Standard8', true)->appendLocation(__('SolicitarInvitacion'), 'Personas_Invitacion', 'Standard8', true)->appendLocation(__('RecuperarClave'), $this); //->appendSidebarNav( __('Ingresar'), 'Personas_Ingresar', 'Standard8'); }
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($title = null, $nav = null, $default = null) { parent::__construct('div'); settype($title, 'string'); settype($nav, 'array'); settype($default, 'array'); $this->setClassName('title-nav'); $this->_h1 = Wax_Document::createElement('h1', $this)->innerHTML($title); if (sizeof($nav) > 0) { $this->_ul = Wax_Document::createElement('ul', $this); foreach ($nav as $navLabel => $navUri) { $this->appendNav($navLabel, $navUri, in_array($navLabel, $default)); } } $this->appendChild(Wax_Document::createElement('br')); }
public function __construct($name = null, $type = self::TYPE_NORMAL, $extras = null) { parent::__construct('table'); if (!isset($extras['cellpadding'])) { $extras['cellpadding'] = 0; } if (!isset($extras['cellspacing'])) { $extras['cellspacing'] = 0; } $this->_name = $name; $this->_type = $type || self::TYPE_NORMAL; $this->setId($this->_name); $this->setAttributes($extras); $this->tHead = Wax_Factory::createObject('Wax_Document_Body_Table_THead'); $this->tFoot = Wax_Factory::createObject('Wax_Document_Body_Table_TFoot'); $this->appendChild($this->tHead)->appendChild($this->tFoot); }
public function __construct(Standard8 $Standard8) { parent::__construct('div'); $SID = Standard8_Session::getSID(); if (!empty($SID)) { throw new Wax_Exception('User already sign in.'); } $form = Wax_Document::$body->createForm('/'); $messages = Wax_Messages::getInstance(); foreach ($messages as $message) { $form->appendMessage('a', $message); } $messages->clear(); $this->appendChild($Standard8->createTitleNav(__('SolicitarInvitacion')))->appendChild($form); $Standard8->appendLocation(__('Ingresar'), 'Personas_Ingresar', 'Standard8')->appendLocation(__('RecuperarClave'), 'Personas_Recuperar', 'Standard8', true)->appendLocation(__('SolicitarInvitacion'), 'Personas_Invitacion', 'Standard8', true)->appendLocation(__('SolicitarInvitacion'), $this); //->appendSidebarNav( __('Ingresar'), 'Personas_Ingresar', 'Standard8'); }
public function __construct($options, $name = null, $value = null, $listsep = null) { parent::__construct('Div'); if (empty($listsep)) { $listsep = Wax_Document::createTextNode(' '); } elseif (is_string($listsep)) { $listsep = Wax_Document::createElement($listsep); } $i = 0; foreach ((array) $options as $radioValue => $radioLabel) { $radioId = $name . ucfirst($radioValue); $radio = Wax_Factory::createObject('Wax_Document_Body_Form_Element_Input_Radio', $name, $radioValue); if ($value == $radioValue) { $radio->setAttribute('checked', 'checked'); } $radio->setId($radioId); $this->appendChild($radio)->appendChild(Wax_Document::createTextNode(' '))->appendChild(Wax_Document::createElement('label')->innerHTML($radioLabel)->setAttribute('for', $radioId))->appendChild($listsep); $i++; } }
public function __construct(Standard8 $Standard8, $tabSelected = 'General') { parent::__construct('div'); $this->appendChild($Standard8->createTitleNav(__('Configuracion'))->appendNav(__('General'), Standard8_Uri::createUri('Configuracion_General', 'Administracion'), strtolower($tabSelected) == 'general')->appendNav(__('Avanzada'), Standard8_Uri::createUri('Configuracion_Avanzada', 'Administracion'), strtolower($tabSelected) == 'avanzada'))->appendChild(Wax_Document::$body->createForm()->appendMessage('question', __('PreguntaEsObligatorio'))->appendText('question', __('Pregunta'), null, 100, true)->appendMessage('ascii', __('ASCIIEsObligatorio'))->appendNumeric('ascii', __('ASCII'), 0, array(0, 255), true)->appendSubmit('submit')); $Standard8->appendSidebarNav(__('Primero'))->appendSidebarNav(__('Segundo')); }
public function __construct() { parent::__construct('div'); $this->setClassName('sidebar')->setTagType(Wax_Document_Element::TAG_OPEN)->isContainer(true); $this->_pagesnav = Wax_Document::createElement('ul', $this)->setClassName('nav')->isContainer(true); }
public function __construct(Standard8 $Standard8) { parent::__construct('div'); }
public function __toString() { $this->_container->appendChild($this->_bottom); return parent::__toString(); }
public function __construct() { parent::__construct('tfoot'); $this->isContainer(true); }
public function __construct(Standard8 $Standard8) { parent::__construct('div'); $this->appendChild($Standard8->createTitleNav(__('Modulos')))->appendChild(Wax_Document::createElement('div')->innerHTML('404 Not Found')); }
public function __construct() { parent::__construct('thead'); $this->_rows[$this->_index] = Wax_Document::createElement('tr', $this)->isContainer(true); $this->isContainer(true); }
public function __construct($src = null, $alt = null) { parent::__construct('img'); $this->setTagType(Wax_Document_Element::TAG_CLOSE)->setSource($src)->setAlt($alt); }
public function __construct($label) { parent::__construct('OptGroup'); $this->setAttribute('label', $label); $this->removeId(); }