/**
  *
  */
 function main_block()
 {
     $main = html_div();
     $main->set_id('content');
     $title = html_h2('Se ha producido un error');
     $title->set_tag_attribute('class', 'warncolor');
     $main->add($title);
     //Puede no estar definido el contexto
     $width = Session::getContextValue('mainInterfaceWidth');
     if (!isset($width)) {
         $width = '100%';
     }
     $table = html_table($width, 0, 1, 0);
     //Puede no estar definido el error
     $error = $this->getViewVariable('str_error');
     if (!isset($error)) {
         $error = 'No error code was given';
     }
     $row = html_td('warncolor', '', $error);
     $row->set_tag_attribute('align', 'center');
     $table->add_row($row);
     //Puede no estar definido la url de retorno
     $url = $this->getViewVariable('str_url');
     if (isset($url)) {
         $row = html_td('', '', html_a($url, agt('Volver')));
         $row->set_tag_attribute('align', 'center');
         $table->add_row($row);
     }
     $main->add($table);
     return $main;
 }
 /**
  *
  */
 function main_block()
 {
     $main = html_div();
     $main->set_id("content");
     $title = html_h2("Se ha producido un error");
     $title->set_tag_attribute("class", "warncolor");
     $main->add($title);
     //Puede no estar definido el contexto
     $width = Session::getContextValue("mainInterfaceWidth");
     if (!isset($width)) {
         $width = "100%";
     }
     $table = html_table($width, 0, 8, 0);
     //Puede no estar definido el error
     $error = $this->getViewVariable('str_error');
     if (!isset($error)) {
         $error = "No error code was given";
     }
     $row = html_td("warncolor", "", $error);
     $row->set_tag_attribute("align", "center");
     $table->add_row($row);
     //Puede no estar definido la url de retorno
     $url = $this->getViewVariable('str_url');
     if (isset($url)) {
         $row = html_td("", "", html_a($url, _('Volver')));
         $row->set_tag_attribute("align", "center");
         $table->add_row($row);
     }
     $main->add($table);
     return $main;
 }
 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $ret_val = container();
     $table =& html_table($this->_width, 0, 3);
     $table->set_class("mainInterfaceWidth");
     //$table->set_style("border: 1px solid");
     $row = html_tr("");
     $col1 = html_td("");
     $col1->set_tag_attribute("align", "right");
     $col1->add(html_b(agt("Idioma")));
     $col2 = html_td("");
     $col2->set_tag_attribute("align", "left");
     $col2->add($this->element_form("miguel_lang"));
     $row->add($col1, $col2);
     $table->add($row);
     $ret_val->add($table);
     $ret_val->add(html_br(2));
     $table =& html_table($this->_width, 0, 0);
     $table->set_class("table100 main-info-cell");
     $row = html_tr("");
     $col1 = html_td("");
     $col1->set_tag_attribute("align", "left");
     $col1->add($this->element_form("Salir"));
     $col2 = html_td("");
     $col2->set_tag_attribute("align", "right");
     $col2->add($this->element_form("Siguiente"));
     $row->add($col1, $col2);
     $table->add($row);
     $ret_val->add($table);
     return $ret_val;
 }
 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $ret_val = container();
     $table =& html_table($this->_width, 0, 2);
     $table->set_class("table100 main-info-cell");
     $row0 = html_tr("");
     $col0 = html_td("");
     $col0->set_tag_attribute("align", "center");
     $col0->set_tag_attribute("colspan", "2");
     $col0->add($this->element_form("Licence"));
     $row0->add($col0);
     $table->add($row0);
     $row00 = html_tr("");
     $col00 = html_td("");
     $col00->set_tag_attribute("align", "center");
     $col00->set_tag_attribute("colspan", "2");
     $col00->add(html_a(Util::app_urlPath('install/include/gpl_print.txt'), agt('Versión Imprimible')));
     $row00->add($col00);
     $table->add($row00);
     $row = html_tr("");
     $col1 = html_td("");
     $col1->set_tag_attribute("align", "left");
     $col1->add($this->element_form("Salir"));
     $container = container();
     $container->add($this->element_form("Regresar"));
     $container->add($this->element_form("Acepto"));
     $col2 = html_td("");
     $col2->set_tag_attribute("align", "right");
     $col2->add($container);
     $row->add($col1, $col2);
     $table->add($row);
     $ret_val->add($table);
     return $ret_val;
 }
 function right_block()
 {
     //$this->add(html_br());
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0);
     $table->add_row(html_td('', '', $this->_getFileContent($this->getViewVariable('url'))));
     return $table;
 }
 /**
  * Este metodo construye el formulario en sÌ.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 0, 0);
     //$table->set_style("border: 1px solid");
     $table->add_row($this->add_action("Regresar"), _HTML_SPACE);
     return $table;
 }
 function form()
 {
     $table = html_table('100%', 0, 1, 3);
     $elem = html_td('color1-bg', 'left', container(html_b('Ruta del archivo CSV'), $this->element_form('path'), $this->add_action('Procesar')));
     $elem->set_id('identification');
     $table->add_row($elem);
     return $table;
 }
 function main_block()
 {
     $main = html_div();
     $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0);
     $table->add_row($this->_block());
     $main->add($table);
     return $main;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $this->set_form_tabindex('Modificar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Modificar'));
     $table->add_row(html_td('', 'center', $label));
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 3);
     $table->set_class("mainInterfaceWidth");
     //$table->set_style("border: 1px solid");
     $row = html_tr('ptabla03');
     $row->add(html_td('ptabla02', '', $this->element_label('Nombre de la carpeta')), html_td('ptabla03', '', $this->element_form('Nombre de la carpeta')), html_td('', '', $this->element_form("Crear")));
     $table->add_row($row);
     //$table->add_row($this->element_form("Crear"), _HTML_SPACE);
     return $table;
 }
 /**
  * Este metodo construye el formulario en sÌ.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2, 'center');
     $item1 = html_td('', '', $this->element_form("valoracion"));
     $item1->set_tag_attribute('align', 'center');
     $item2 = html_td('', '', $this->element_form("aceptar"));
     $item2->set_tag_attribute('align', 'center');
     $table->add_row($item1);
     $table->add_row($item2);
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 3);
     $table->set_class("mainInterfaceWidth");
     //$table->set_style("border: 1px solid");
     $table->add_row($this->_tableRow("Nuevo nombre"));
     $elem = html_td('ptabla03', '', container($this->element_form("Aceptar")));
     $elem->set_tag_attribute('colspan', '9');
     $table->add_row($elem);
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla01');
     $labelAdd = html_label('anadir');
     $labelAdd->add($this->element_form('anadir'));
     $tdAnadir = html_td('', 'left', $labelAdd);
     $this->set_form_tabindex('anadir', '10');
     $table->add_row($this->_showElement('name', '7', 'name', 'Nuevo submenú', 'name', 'left'), $tdAnadir);
     return $table;
 }
 /**
  * Este metodo construye el formulario que se va a mostrar en la Vista.
  * Formatea la forma en que se va a mostrar al usuario los distintos elementos del formulario.
  */
 function form()
 {
     //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $table->add_row($this->_showElement('nombre', '8', 'nombre', 'Nuevo Tema: ', 'nombre', 'left'));
     $this->set_form_tabindex('Aceptar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Aceptar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 3);
     $table->set_class("mainInterfaceWidth");
     //$table->set_style("border: 1px solid");
     $table->add_row($this->_tableRow("Nombre del archivo"));
     $this->set_form_tabindex("fileZip", '15');
     $elem = html_td('ptabla03', '', container($this->element_form("fileZip"), _HTML_SPACE, $this->element_form("Aceptar")));
     $elem->set_tag_attribute('colspan', '9');
     $table->add_row($elem);
     return $table;
 }
 function add_info($arrActivities)
 {
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 5);
     $title = html_td('ptabla01', '', 'Activities del curso');
     $title->set_tag_attribute('colspan', 3);
     $table->add_row($title);
     for ($i = 0; $i < count($arrActivities); $i++) {
         $table->add($this->add_activity($arrActivities[$i]['title'], $arrActivities[$i]['body'], $arrActivities[$i]['id'], $i));
     }
     $table->add_row($title);
     return $table;
 }
 function form()
 {
     $table = html_table('50%', 0, 1, 3);
     $fila = html_tr();
     $elem = html_td('color1-bg', 'left', $this->element_form('name'), $this->add_action('Editar perfil'));
     $elem->set_id('identification');
     $fila->add($elem);
     $table->add_row($fila);
     unset($fila);
     unset($elem);
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $table->add_row($this->_showElement('title', '7', 'title', 'Concepto', 'title', 'left'));
     $table->add_row($this->_showElement('body', '8', 'body', 'Descripción', 'body', 'left'));
     $this->set_form_tabindex('Guardar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Guardar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $table->add_row($this->_showElement('objectives', '7', 'objectives', 'Objetivos', 'objectives', 'left'));
     $table->add_row($this->_showElement('description', '8', 'description', 'Descripción', 'description', 'left'));
     $table->add_row($this->_showElement('contents', '9', 'contents', 'Contenidos', 'contents', 'left'));
     $this->set_form_tabindex('Guardar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Guardar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     //$table->set_style("border: 1px solid");
     $elem = html_td("colorLogin-bg", "", container("Nombre de usuario", html_br(), $this->element_form("Nombre de usuario")));
     $elem->set_id("identification");
     $table->add_row($elem);
     $elem = html_td("colorLogin-bg", "", container("Clave de acceso", html_br(), $this->element_form("Clave de acceso")));
     $elem->set_id("identification");
     $table->add_row($elem);
     $table->add_row($this->add_action("Entrar"), _HTML_SPACE);
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     //$table->add_row($this->_showElement('From', '6', 'To', 'miguel_fromMail', 'From', 'left' ));
     $table->add_row($this->_showElement('To', '7', 'To', 'miguel_toMail', 'To', 'left'));
     $table->add_row($this->_showElement('Subject', '8', 'Subject', 'miguel_subjectMail', 'Subject', 'left'));
     $table->add_row($this->_showElement('Body', '9', 'Body', 'miguel_bodyMail', 'Body', 'left'));
     $this->set_form_tabindex('Enviar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Enviar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
 function form()
 {
     //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario
     $table =& html_table('40%', 0, 0, 0, 'center');
     $table->set_class('ptabla03');
     $param = '&id_forum=' . $this->getViewVariable('id_forum') . '&id_topic=' . $this->getViewVariable('id_topic');
     $link = html_td('p', '', html_a(Util::format_URLPath('forum/index.php', 'status=new_post' . $param), agt('Añadir nuevo hilo'), 'boton02a'));
     $this->set_form_tabindex('orden', '14');
     $sort = html_td('ptabla03', '', $this->element_form('orden'));
     $this->set_form_tabindex('Aceptar', '15');
     $boton = html_td('ptabla03', '', $this->element_form('Aceptar'));
     //$boton->set_tag_attribute('valign', 'center');
     $table->add_row($link, $sort, $boton);
     return $table;
 }
 function form()
 {
     //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario
     $table =& html_table('40%', 0, 0, 0, 'center');
     $table->set_class('ptabla03');
     $this->set_form_tabindex('orden', '13');
     $sort = html_td('ptabla03', '', $this->element_form('orden'));
     $this->set_form_tabindex('orden', '14');
     $link = html_td('ptabla03', '', $this->element_form('data_form'));
     $this->set_form_tabindex('Aceptar', '15');
     $boton = html_td('ptabla03', '', $this->element_form('Aceptar'));
     //$boton->set_tag_attribute('valign', 'center');
     $table->add_row($sort, $link, $boton);
     return $table;
 }
 /**
  * Este metodo construye el formulario que se va a mostrar en la Vista.
  * Formatea la forma en que se va a mostrar al usuario los distintos elementos del formulario.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2, 'center');
     $label = html_label("comentario");
     $label->add(container(agt('Añadir comentario'), html_br(), $this->element_form("Comentario")));
     $elem = html_td('ptabla03', '', $label);
     $table->add_row($elem);
     $item1 = html_td('', '', $this->element_form("valoracion"));
     $item1->set_tag_attribute('align', 'center');
     $item2 = html_td('', '', $this->element_form("aceptar"));
     $item2->set_tag_attribute('align', 'center');
     $table->add_row($item1);
     $table->add_row($item2);
     return $table;
 }
 function form()
 {
     $table = html_table('25%', 0, 1, 3);
     $elem = html_td('color1-bg', 'center', container(html_b('Nombre del nuevo usuario'), html_br(), $this->element_form('name')));
     $elem->set_id('identification');
     $table->add_row($elem);
     $elem = html_td('color1-bg', 'center', container(html_b('Clave de acceso'), html_br(), $this->element_form('pass')));
     $elem->set_id('identification');
     $table->add_row($elem);
     $elem = html_td('color1-bg', 'center', container(html_b('Confirmar clave de acceso'), html_br(), $this->element_form('pass_confirm')));
     $elem->set_id('identification');
     $table->add_row($elem);
     $table->add_row(html_td('', 'center', $this->add_hidden_action('Procesar', 'add_user')));
     return $table;
 }
 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 3);
     $table->set_class("mainInterfaceWidth");
     //$table->set_style("border: 1px solid");
     $table->add_row($this->_tableRow("Nombre"));
     $table->add_row($this->_tableRow("Descripción"));
     $table->add_row($this->_tableRow("URL"));
     //$table->add_row($this->_tableRow("Politica de privacidad"));
     $row = html_tr();
     $row->add("Politica de privacidad", "Los datos serán almacenados de forma segura y no se cederán a terceras partes.");
     $table->add_row($row);
     $table->add_row($this->element_form("Cancelar"), $this->element_form("Aceptar"), _HTML_SPACE);
     return $table;
 }
 function get_element()
 {
     $container = html_table('100%', 0, 0, 0);
     $row = html_tr();
     $count = count($this->_data_list);
     for ($x = 0; $x <= $count - 1; $x++) {
         list($name, $value) = each($this->_data_list[$x]);
         $elem = container();
         $elem->add($this->_get_index_element($x), html_br(), html_img($this->_img_list[$x]));
         $col = html_td('', '', $elem);
         $col->set_tag_attribute('align', 'center');
         $row->add($col);
     }
     $container->add_row($row);
     return $container;
 }
 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $ret_val = container();
     $table =& html_table($this->_width, 0, 0);
     $table->set_class("table100 main-info-cell");
     $row = html_tr("");
     $col1 = html_td("");
     $col1->set_tag_attribute("align", "left");
     $col1->add($this->element_form("Regresar"));
     $col2 = html_td("");
     $col2->set_tag_attribute("align", "right");
     $col2->add($this->element_form("Siguiente"));
     $row->add($col1, $col2);
     $table->add($row);
     $ret_val->add($table);
     return $ret_val;
 }
 /**
  * Este metodo construye el formulario en sÌ.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $rowNombre = $this->_tableRow("Nombre");
     $rowNombre->set_class('ptabla03');
     $table->add_row($rowNombre);
     $rowTema = $this->_tableRow("Tema");
     $rowTema->set_class('ptabla03');
     $table->add_row($rowTema);
     $table->add_row(html_td('ptexto01', '', $this->element_form("Regresar")));
     $btnCancelar = $this->element_form("Cancelar");
     $btnCancelar->set_class('ptabla03');
     $btnAceptar = $this->element_form("Aceptar");
     $btnAceptar->set_class('ptabla03');
     $table->add_row($btnCancelar, $btnAceptar, _HTML_SPACE);
     return $table;
 }
 function add_info($objectives, $description, $contents)
 {
     //        $row = html_tr();
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 5);
     $title = html_td('ptabla01', '', 'Ficha del curso');
     $title->set_tag_attribute('colspan', 2);
     $titleObj = html_td('ptabla02', '', 'Objetivos');
     $textObj = html_td('ptabla03', '', $objectives);
     $titleDes = html_td('ptabla02', '', 'Descripción');
     $textDes = html_td('ptabla03', '', $description);
     $titleCon = html_td('ptabla02', '', 'Contenidos');
     $textCon = html_td('ptabla03', '', $contents);
     $table->add_row($title);
     $table->add_row($titleObj, $textObj);
     $table->add_row($titleDes, $textDes);
     $table->add_row($titleCon, $textCon);
     $table->add_row($title);
     return $table;
 }