function add_mainMenu() { $div = html_div(''); $div->add(html_br()); $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $row = html_tr(); $blank = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 10, 10)); //$blank->set_tag_attribute('colspan','4'); $image = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 20, 14)); $image->set_tag_attribute('align', 'right'); $image->set_tag_attribute('width', '40%'); $link = html_a(Util::format_URLPath("profileManager/index.php", 'submit=new'), agt('Nuevo perfil'), null, "_top"); $link->set_tag_attribute('class', ''); $item1 = html_td('', '', $link); $item1->set_tag_attribute('width', '20%'); /*$link = html_a(Util::format_URLPath("profileManager/index.php",'submit=del'), agt('Baja perfil'), null, "_top"); $link->set_tag_attribute('class', ''); $item2 = html_td('', '', $link); $item2->set_tag_attribute('width', '20%'); */ $row->add($blank); $row->add($image); $row->add($item1); //$row->add($item2); $table->add_row($row); $div->add($table); return $div; }
function processPetition() { //Se controla que el usuario no tenga acceso. Por defecto, se tiene acceso. $institution_id = -1; //Primero comprueba si estamos identificados y si no es asi entonces vamos a ver si es una peticion de autenticacion $user_id = $this->getSessionElement('userinfo', 'user_id'); if (isset($user_id) && $user_id != '') { $institution_id = 0; } else { header('Location:' . Util::format_URLPath('main/index.php')); } if ($institution_id >= 0) { //Navega por la jerarquía $this->setViewClass("miguel_VMain"); $this->setMessage(agt('miguel_institutionList')); $this->setPageTitle("miguel_institutionList"); //$this->clearNavBarr(); $this->addNavElement(Util::format_URLPath('institution/index.php', 'id=institution'), agt("miguel_Institution")); $this->setViewVariable('arr_categories', $this->obj_data->getInstitutionResume()); $this->setCacheFile("miguel_VInstitution_" . $this->getSessionElement("userinfo", "user_id")); $this->setCacheFlag(true); $this->setHelp("EducContent"); } else { header('Location:' . Util::format_URLPath('main/index.php')); } }
function processPetition() { //Se controla que el usuario no tenga acceso. Por defecto, se tiene acceso. $institution_id = -1; //Primero comprueba si estamos identificados y si no es asi entonces vamos a ver si es una peticion de autenticacion $user_id = $this->getSessionElement('userinfo', 'user_id'); if (isset($user_id) && $user_id != '') { if ($this->issetViewVariable('institution_id')) { $institution_id = $this->getViewVariable('institution_id'); } else { $institution_id = -1; } } else { header('Location:' . Util::format_URLPath('main/index.php')); } if ($institution_id >= 0) { $this->setViewVariable('institution_id', $institution_id); $arr_categories = $this->obj_data->getFacultyResume($institution_id); if (!$arr_categories[0]['id']) { header('Location:' . Util::format_URLPath('department/index.php', 'institution_id=' . $institution_id . '&faculty_id=0')); } $this->setViewVariable('arr_categories', $arr_categories); //$this->setViewVariable('arr_courses', $this->obj_data->getCourse( $institution_id ) ); $this->addNavElement(Util::format_URLPath('faculty/index.php', 'institution_id=' . $institution_id), agt('miguel_Faculty')); $this->setCacheFile("miguel_VMain_Faculty_" . $this->getSessionElement("userinfo", "user_id")); $this->setMessage(agt('miguel_FacultyList')); $this->setPageTitle('miguel_FacultyList'); $this->setCacheFlag(true); $this->setHelp("EducContent"); } else { header('Location:' . Util::format_URLPath('main/index.php')); } }
function processPetition() { if ($this->issetViewVariable('status')) { $status = $this->getViewVariable('status'); } else { $status = 'main'; $status = $this->setViewVariable('status', 'main'); } switch ($status) { case 'main': default: //Presentación de mensajería $arrMessages = $this->obj_data->getNewUserMessages(Session::getValue('USERINFO_USER_ID')); $this->setViewVariable('arrMessages', $arrMessages); //Presentación de tablón de anuncios $NoticeArray = $this->obj_data->getNotices(); $this->setViewVariable('notice_array', $NoticeArray); break; } $this->clearNavBarr(); $this->addNavElement(Util::format_URLPath('alumnPage/index.php'), agt('Inicio')); $this->setPageTitle('miguel Alumn Page'); $this->setMessage(''); $this->setHelp(''); }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { //we want an confirmation page for this form. //$this->set_confirm(); //Crea una caja de texto llamada nombre y longitud 50 $elemT = new FEText("Asunto", FALSE, 50); //$elemT->set_style_attribute('align', 'right'); //Le asignamos el id nombre y la tecla de acceso n (ctrl+n) $elemT->set_attribute("id", "asunto"); $elemT->set_attribute("accesskey", "n"); //Añade en el contenedor formulario el elemento creado e inicializado $this->add_element($elemT); //Creamos un Area de Texto llamada comentario $elemTA = new FETextArea("Comentario", FALSE, 10, 60, "500px", "100px"); $elemTA->set_attribute('wrap', 'physical'); //Le asignamos el id email y la tecla de acceso c (ctrl+c) $elemTA->set_attribute("id", "comentario"); $elemTA->set_attribute("accesskey", "d"); //Añade en el contenedor formulario el elemento creado e inicializado $this->add_element($elemTA); //Añade un campo oculto llamado id. En ocasiones este campo se utiliza para indicar ciertas operaciones. //OJO!! es un punto sensible porque el usuario podría cambiar su valor de forma inexperada para el código. // $this->add_hidden_element("id"); //Añade un boton con la acción submit $submit = $this->_formatElem("base_SubmitButton", "Aceptar", "submit", agt("miguel_Enter")); //$submit->set_attribute('id',''); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element('status'); $this->set_hidden_element_value('status', 'new'); }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { $elemNombre = $this->_formatElem("FEText", "Nombre", "nom_form", FALSE, "25", "25"); $elemNombre->set_attribute('class', ''); $this->add_element($elemNombre); $elemDescripcion = $this->_formatElem("FEText", "Descripción", "des_form", FALSE, "75", "100"); $elemDescripcion->set_attribute('class', ''); $this->add_element($elemDescripcion); $elemPriority = $this->_formatElem("FEText", "Prioridad", "pri_form", FALSE, "2", "2"); $elemPriority->set_attribute('class', ''); $this->add_element($elemPriority); $profiles = $this->getViewVariable('perfiles'); for ($i = 0; $i < count($profiles); $i++) { $id = $profiles[$i]['profile.id_profile']; $pri = $profiles[$i]['profile.profile_priority']; $elemNewPriority[$i] = $this->_formatElem("FEText", "Nueva Prioridad " . $i, "newpri_form_" . $pri, FALSE, "2", "2"); $elemNewPriority[$i]->set_attribute('class', ''); $this->add_element($elemNewPriority[$i]); $elemNewPriorityBtn[$i] = $this->_formatElem("base_SubmitButton", "Modificar " . $i, "submit", agt("modificar " . $pri)); $elemNewPriorityBtn[$i]->set_attribute('class', 'p'); $this->add_element($elemNewPriorityBtn[$i]); } $elemOK = $this->_formatElem("base_SubmitButton", "Insertar", "submit", agt('Insertar perfil')); $elemOK->set_attribute('class', 'p'); $this->add_element($elemOK); }
/** * 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; }
/** * 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 right_block() { $main = html_div(); $main->set_id("content"); $course_name = $this->getViewVariable('course_name'); $main->add(agt('miguel_userSubscriptionOk') . ' -> ' . $course_name); return $main; }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { //$this->add_element($this->_formatElem("FEListBox", "Idioma", "lang", FALSE, "100px", NULL, array(agt("Español")=>"spanish", agt("Inglés")=>"english"))); $this->add_element($this->_formatElem("base_SubmitButton", "Siguiente", "submit", agt("Siguiente") . " >")); $this->add_element($this->_formatElem("base_SubmitButton", "Regresar", "back", "< " . agt("Regresar"))); //lets add a hidden form field //$this->add_hidden_element("install_step"); }
function right_block() { $div = html_div(); $titulo = html_p(agt('miguel_ContactDetail')); $titulo->set_tag_attribute('class', 'ptabla01'); $div->add($titulo); $div->add($this->_contactDetail()); return $div; }
function &factory($interface) { $class = 'Setup_' . $interface; if (class_exists($class)) { return $ret =& new $class(); } else { exit(agt('noClassAvail') . sprintf(" %s.", $interface)); } }
function form_init_elements() { $elemTitulo = $this->_formatElem("FEText", "Nombre de la carpeta", "folderName", FALSE, "100"); $elemTitulo->set_attribute('class', 'ptabla03'); $this->add_element($elemTitulo); $submit = $this->_formatElem("base_SubmitButton", "Crear", "submit", agt("Crear")); $submit->set_attribute('class', 'p'); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element("folder_id"); }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { $elem = new FEImgRadioGroup("valoracion", array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5), array(Theme::getThemeImagePath('valoracion1.gif'), Theme::getThemeImagePath('valoracion2.gif'), Theme::getThemeImagePath('valoracion3.gif'), Theme::getThemeImagePath('valoracion4.gif'), Theme::getThemeImagePath('valoracion5.gif'))); //$elem->set_attribute('class','ptabla03'); $this->add_element($elem); $submit = $this->_formatElem("base_SubmitButton", "aceptar", "submit", agt('Valorar')); $submit->set_attribute('class', 'p'); $submit->set_attribute("id", "submit"); $submit->set_attribute("accesskey", "r"); $this->add_element($submit); }
function right_block() { $ret_val = container(); $div = html_div(); $titulo = html_p(agt('miguel_NewCourse')); $titulo->set_tag_attribute('class', 'ptabla01'); $div->add($titulo); $div->add($this->addForm('newCourse', 'miguel_newCourseForm')); $ret_val->add($div); return $ret_val; }
function processPetition() { /* * Set various "burocratic" things */ $this->addNavElement(Util::format_URLPath('authortool/index.php'), agt("nav_authortool")); $this->setMessage(agt('miguel_AuthorTool')); $this->setPageTitle(agt('miguel_AuthorTool')); $this->setHelp("EducAuthorTool"); /* * Get action status, if none -> set to list */ if ($this->IsSetVar('status')) { $status = $this->getViewVariable('status'); } else { $status = 'list'; $this->setViewVariable('status', $status); } /* * Get current folder id, if none -> set to 0, * which is the root one of actual course */ if ($this->issetViewVariable('current_folder_id')) { $folder_id = $this->getViewVariable('current_folder_id'); } else { $folder_id = 0; $this->setViewVariable('current_folder_id', $folder_id); } /* * Sets read access to this course files and folder */ $bol_hasaccess = false; $user_id = $this->getSessionElement('userinfo', 'user_id'); $course_id = $this->getSessionElement('courseinfo', 'course_id'); $course_id = 7; if (isset($user_id) && $user_id != '' && isset($course_id) && $course_id != '') { $bol_hasaccess = true; $user_alias = $this->getSessionElement('userinfo', 'user_alias'); $ret_sql = $this->obj_data->Select('user', 'id_profile', 'user_id = ' . $user_id); $user_profile_id = $ret_sql[0]['user.id_profile']; $this->setCacheFile('miguel_VAuthorTool_' . $course_id . '_' . $user_id); $this->setCacheFlag(true); /* * Execute the required action depdending on status once checked * access permission. */ $this->_exec_by_status($status, $folder_id, $user_id, $user_profile_id, $course_id); } else { /* * Otherwise, give control to main module */ $this->giveControl('main', 'miguel_CMain'); } }
function form_init_elements() { $this->add_element($this->_formatElem("FEText", agt("Nuevo nombre"), "newName", FALSE, "100")); $submit = $this->_formatElem("base_SubmitButton", "Aceptar", "submit", agt("Aceptar")); $submit->set_attribute('class', 'p'); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element("id"); $this->add_hidden_element("tp"); $this->add_hidden_element("status"); }
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', agt('Asunto') . ':', 'nombre', 'left')); $table->add_row($this->_showElement('opinion', '9', 'opinion', agt('Comentario') . ':', 'opinion', '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_init_elements() { $this->add_element($this->_formatElem("FEFile", agt("Nombre del archivo"), "fileName", FALSE, "100")); $elemCB1 = new FECheckBox('fileZip', agt('El archivo está comprimido')); $elemCB1->set_style_attribute('align', 'left'); $elemCB1->set_attribute('class', 'ptabla03'); $elemCB1->set_attribute("accesskey", "o"); $this->add_element($elemCB1); $submit = $this->_formatElem("base_SubmitButton", "Aceptar", "submit", agt("Aceptar")); $submit->set_attribute('class', 'p'); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element("folder_id"); }
function add_noticeHead() { $row = html_tr(); $from = html_td('ptabla01', '', agt('De')); $subject = html_td('ptabla01', '', agt('Aviso')); $date = html_td('ptabla01', '', agt('Fecha')); $from->set_tag_attribute('width', '20%'); $subject->set_tag_attribute('width', '60%'); $date->set_tag_attribute('width', '20%'); $row->add($from); $row->add($subject); $row->add($date); return $row; }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { $elemTema = $this->_formatElem("FEListBox", "Tema", "theme", FALSE, "200px", NULL, $this->getViewVariable('themes')); $elemTema->set_attribute('class', 'ptabla03'); $this->add_element($elemTema); $elemNombre = $this->_formatElem("FEText", "Nombre", "nom_form", FALSE, "20"); $elemNombre->set_attribute('class', 'ptabla03'); $this->add_element($elemNombre); $submit = $this->_formatElem("base_SubmitButton", "Regresar", "submit", agt("Regresar")); $submit->set_attribute('class', 'boton'); $submit->set_attribute("id", "submit"); $submit->set_attribute("accesskey", "r"); $this->add_element($submit); }
/** * 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() { //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; }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { //we want an confirmation page for this form. //$this->set_confirm(); $TextNombre = $this->_formatElem("FEText", 'nombre', 'nombre', FALSE, 50); $TextNombre->set_attribute('class', 'ptabla03'); $this->add_element($TextNombre); $submit = $this->_formatElem("base_SubmitButton", "Aceptar", "submit", agt("miguel_Enter")); $submit->set_attribute('class', 'ptabla03'); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element('status'); $this->set_hidden_element_value('status', 'list_topic'); $this->add_hidden_element('id_forum'); }
function processPetition() { if ($this->issetViewVariable('desc')) { $this->setViewVariable('str_error', $this->getViewVariable('desc')); } else { $this->setViewVariable('str_error', $this->error . ': ' . $this->error_message); } if ($this->issetViewVariable('url')) { $this->setViewVariable('str_url', $this->getViewVariable('url')); } else { $this->setViewVariable('str_url', Util::main_URLPath('index.php')); } $this->setPageTitle('Error en miguel'); $this->clearNavBarr(); $this->setMessage(agt('miguel_ErrorLit')); $this->setHelp(''); $this->setCacheFlag(true); }
/** * this function returns the contents * of the left block. It is already wrapped * in a TD * * @return HTMLTag object */ function right_block() { $ret_val = container(); $hr = html_hr(); $hr->set_tag_attribute("noshade"); $hr->set_tag_attribute("size", 2); $ret_val->add($hr); $ret_val->add(html_h4("Alta Título Bibliográfico de la Bibilioteca Virtual del Campus")); if ($this->issetViewVariable('newbook') && $this->getViewVariable('newbook') == 'ok') { $ret_val->add(html_h2(agt('Alta de título correcto.'))); $ret_val->add(html_a(Util::format_URLPath("main/index.php", 'id=institution'), agt('Volver'))); $ret_val->add(_HTML_SPACE); $ret_val->add(html_a(Util::format_URLPath('newBook/index.php'), agt('Nuevo Título Bibliográfico'))); } else { $ret_val->add($this->addForm('newBook', 'miguel_bookForm')); } return $ret_val; }
function form_init_elements() { $elemTitulo = $this->_formatElem("FEText", 'titulo', 'titulo', FALSE, "100"); $elemTitulo->set_attribute('class', 'ptabla03'); $this->add_element($elemTitulo); $elemAutor = $this->_formatElem("FEText", "autor", "autor", FALSE, "100"); $elemAutor->set_attribute('class', 'ptabla03'); $this->add_element($elemAutor); $elemDate = $this->_formatElem("FEYears", "año", "f_edicion", FALSE, null, null, '1900', date('Y')); $elemDate->set_attribute('class', 'ptabla03'); $this->add_element($elemDate); $elemEditorial = $this->_formatElem("FEText", "editorial", "editorial", FALSE, "100"); $elemEditorial->set_attribute('class', 'ptabla03'); $this->add_element($elemEditorial); $elemLugar = $this->_formatElem("FEText", "lugar de publicación", "lugar_pub", FALSE, "100"); $elemLugar->set_attribute('class', 'ptabla03'); $this->add_element($elemLugar); $elemIsbn = $this->_formatElem("FEText", "ISBN", "isbn", FALSE, "20"); $elemIsbn->set_attribute('class', 'ptabla03'); $this->add_element($elemIsbn); $elemDescripcion = $this->_formatElem("FETextArea", "descripción", "descripcion", FALSE, 20, 10, "400px", "100px"); $elemDescripcion->set_attribute('class', 'ptabla03'); $this->add_element($elemDescripcion); $elemIndice = $this->_formatElem("FETextArea", "tabla de contenidos", "indice", FALSE, 20, 10, "400px", "100px"); $elemIndice->set_attribute('class', 'ptabla03'); $this->add_element($elemIndice); /* $elemDonde = $this->_formatElem("FEText", "Lugar y/o forma de obtenerlo", "como_obtener", FALSE, "100"); $elemDonde->set_attribute('class','ptabla03'); $this->add_element($elemDonde); */ // file upload $elemFile = new FEFile("imagen", false, "200px"); $elemFile->add_valid_type('image/gif'); $elemFile->add_valid_type('image/jpeg'); $elemFile->set_max_size(1024 * 10); //1024 * numero de KB $this->add_element($elemFile); $submit = $this->_formatElem("base_SubmitButton", "Aceptar", "submit", agt('Añadir')); $submit->set_attribute('class', 'p'); $submit->set_attribute('accesskey', 'e'); $this->add_element($submit); $this->add_hidden_element("status"); }
function form_init_elements() { //Caja de texto de To $TextTo = $this->_formatElem("FEText", "To", "to", FALSE, "50"); $TextTo->set_attribute('class', 'ptabla03'); $this->add_element($TextTo); $subject = $this->_formatElem("FEText", "Subject", "subject", FALSE, "50"); $subject->set_attribute('class', 'ptabla03'); $body = $this->_formatElem("FETextArea", "Body", "body", FALSE, 10, 60, '500px', '100px'); $body->set_attribute('class', 'ptabla03'); //Añade un boton con la acción submit $submit = $this->_formatElem('base_SubmitButton', 'Enviar', 'submit', agt('miguel_Send')); $submit->set_attribute('id', 'submit'); $submit->set_attribute('class', 'ptabla03'); $submit->set_attribute('accesskey', 'e'); $this->add_element($subject); $this->add_element($body); $this->add_element($submit); $this->add_hidden_element('status'); $this->set_hidden_element_value('status', 'new'); }
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 right_block() { $ret_val = container(); $hr = html_hr(); $hr->set_tag_attribute('noshade'); $hr->set_tag_attribute('size', 2); $ret_val->add($hr); $div = html_div('ul-big'); $div->add(html_img(Util::app_URLPath('../var/themes/Miguel/image/menu/addcourse.png'), 0, 0, 0, '')); $div->add(html_b('Nuevo Curso Adicionado')); $div->add(html_br(2)); $ret_val->add($div); $div1 = html_div(); $div1->add(agt('El curso se ha adicionado correctamente en la base de datos.')); $div1->add(html_br(2)); $div1->add(agt('NOMBRE DEL CUSRSO'), ' : ', $this->getViewVariable('courseName')); $div1->add(html_br(2), agt('DESCRIPCION'), ' : ', $this->getViewVariable('courseDescription')); $div1->add(new FormProcessor(new miguel_resultNewCourseForm(), 'resultNewCourse', Util::format_URLPath('main/index.php'))); $ret_val->add($div1); return $ret_val; }