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()
 {
     $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;
 }
 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 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;
 }
 /**
  * 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 add_info($_title, $_value)
 {
     $row = html_tr();
     $item1 = html_td('ptabla02', '', $_title);
     $item2 = html_td('ptabla03', '', $_value);
     $item1->set_tag_attribute('width', '35%');
     $item2->set_tag_attribute('width', '65%');
     $row->add($item1);
     $row->add($item2);
     return $row;
 }
 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;
 }
 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;
 }
 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;
 }
 /**
  * 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, 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, 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 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 add_activity($title, $body, $id, $index)
 {
     $row = html_tr();
     $lDelete = html_a(Util::format_URLPath('courseActivities/index.php', "status=delete&idi={$id}"), 'Eliminar');
     $lUpdate = html_a(Util::format_URLPath('courseActivities/index.php', "status=showForm&index={$index}"), 'Modificar');
     $tdLinks = html_td('ptabla03', '', $lDelete, $lUpdate);
     $title = html_td('ptabla02', '', $title);
     $body = html_td('ptabla03', '', $body);
     $row->add($title);
     $row->add($body);
     $row->add($tdLinks);
     return $row;
 }
 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');
     $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;
 }
 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()
 {
     $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;
 }
 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()
 {
     $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;
 }
 /**
  * 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;
 }
 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;
 }
 function main_block()
 {
     $main = html_div();
     $main->set_id("content");
     $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0);
     $table->set_class("simple");
     //Centros
     $elem1 = html_td("color1-bg", "", $this->left_block());
     $elem1->set_id("anonymous");
     //Nombre del sitio web
     $elem2 = html_td("colorLogin-bg", "", $this->right_block());
     $elem2->set_id("identification");
     $row = html_tr();
     $row->add($elem1);
     $row->add($elem2);
     $table->add_row($row);
     $main->add($table);
     return $main;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2, 'center');
     $row = html_tr();
     $label = html_label("título");
     $label->add(container(agt("Nombre del enlace"), _HTML_SPACE, $this->element_form('ptabla01')));
     $elem1 = html_td('ptabla02', '', $label);
     $row->add($elem1);
     $label = html_label("enlace");
     $label->add(container(agt("Dirección Web"), _HTML_SPACE, $this->element_form("enlace")));
     $elem2 = html_td('ptabla02', '', $label);
     $row->add($elem2);
     $table->add_row($row);
     $row2 = html_tr();
     $elem3 = html_td('ptabla02', '', $this->element_form("aceptar"));
     $elem3->set_tag_attribute('align', 'center');
     $elem3->set_tag_attribute('colspan', '2');
     $row2->add($elem3);
     $table->add_row($row2);
     return $table;
 }
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $labelAdd = html_label('submit');
     $labelAdd->add($this->element_form('submit'));
     $tdsubmit = html_td('', 'left', $labelAdd);
     $this->set_form_tabindex('submit', '10');
     $menu_id = $this->getViewVariable('menu_id');
     $arrSmn = $this->getViewVariable('arrSubmenus');
     for ($i = 0; $i < count($arrSmn); $i++) {
         if ($arrSmn[$i]['name'] != '') {
             $submenu_id = $arrSmn[$i]['submenu_id'];
             $tdDelete = html_td('', '', html_a(Util::format_URLPath('moduleManager/index.php', "status=deleteSubmenu&menu_id={$menu_id}&submenu_id={$submenu_id}"), 'Eliminar'));
             $opt_id = 'submenu' . $submenu_id;
             $table->add_row($this->_showElement($opt_id, 7 + $i, $opt_id, $arrSmn[$i]['name'], $opt_id, 'left'), $tdDelete);
         }
     }
     $table->add_row($tdsubmit);
     return $table;
 }
 function right_block()
 {
     $main = html_div();
     $main->set_tag_attribute('width', Session::getContextValue('mainInterfaceWidth'));
     $hr = html_hr();
     $hr->set_tag_attribute('noshade');
     $hr->set_tag_attribute('size', 2);
     //Añade la linea horizontal al contenedor principal
     $main->add($hr);
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0);
     $table->set_tag_attribute('border');
     //Cabecera
     $elem1 = html_td('ptabla02', '', html_b('Perfil'));
     $elem1->set_tag_attribute('width', '50%');
     $elem2 = html_td('ptabla02', '', html_b('Conexiones'));
     $elem2->set_tag_attribute('align', 'right');
     $elem3 = html_td('ptabla02', '', html_b('%'));
     $elem3->set_tag_attribute('align', 'right');
     $table->add_row($elem1, $elem2, $elem3);
     $arrUsers = $this->getViewVariable('arrUsers');
     $iTotalCon = $this->getViewVariable('iTotalCon');
     for ($i = 0; $i < count($arrUsers); $i++) {
         $elem1 = html_td('ptabla03', '', $arrUsers[$i]['user.user_alias']);
         $elem2 = html_td('ptabla03', '', $arrUsers[$i]['countLogin']);
         $elem2->set_tag_attribute('align', 'right');
         $porc = sprintf('%.2f', $arrUsers[$i]['countLogin'] * 100 / $iTotalCon);
         $elem3 = html_td('ptabla03', '', $porc);
         $elem3->set_tag_attribute('align', 'right');
         $table->add_row($elem1, $elem2, $elem3);
     }
     $elem1 = html_td('ptabla03', '', html_b('TOTAL'));
     $elem2 = html_td('ptabla03', '', html_b($iTotalCon));
     $elem2->set_tag_attribute('align', 'right');
     $elem3 = html_td('ptabla03', '', html_b(100));
     $elem3->set_tag_attribute('align', 'right');
     $table->add_row($elem1, $elem2, $elem3);
     $main->add($table);
     return $main;
 }
 function main_block()
 {
     $content = container();
     //$hr = html_hr();
     //$hr->set_tag_attribute("noshade");
     //$hr->set_tag_attribute("size", 2);
     //$ret_val->add($hr);
     $content->add(html_h4(agt('Preinscripción')));
     $content->add(html_br());
     if ($this->issetViewVariable('strError')) {
         $strError = $this->getViewVariable('strError');
         $ret_val->add(html_b(agt('Falta de informar los siguientes campos obligatorios: ') . $strError));
         $ret_val->add(html_br(2));
     }
     if ($this->issetViewVariable('newclient') && $this->getViewVariable('newclient') == 'ok') {
         $content->add(html_h2(agt('Preinscripción de usuario correcta.')));
         $content->add(html_a(Util::format_URLPath('main/index.php'), agt('Volver')));
     } else {
         $content->add($this->addForm('newInscription', 'miguel_inscriptionForm'));
     }
     $ret_val = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0);
     $ret_val->add_row(html_td('', '', _HTML_SPACE), html_td('', '', $content), html_td('', '', _HTML_SPACE));
     return $ret_val;
 }
 function main_block()
 {
     $main = html_div();
     $main->set_id('content');
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0);
     $table->set_class('simple');
     //Barra Herramientas
     if ($this->str_type == 'toolbar') {
         $elem1 = html_td('', '', $this->left_block());
         //$elem1->set_id("anonymous");
         //$elem1->set_tag_attribute('width', 40);
         //$elem1->set_tag_attribute('valign', 'top');
     }
     //Principal
     $elem2 = html_td('toolmain', '', $this->right_block());
     //$elem2->set_tag_attribute('valign', 'top');
     //$elem2->set_id("identification");
     $row = html_tr();
     $row->add($elem1);
     $row->add($elem2);
     $table->add_row($row);
     $main->add($table);
     return $main;
 }