/** * */ 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; }
/** * */ 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; }
/** * 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 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 addData() { $ret_val = container(); 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') { $ret_val->add(html_h2(agt('Preinscripción de usuario correcta.'))); //$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('userManager/index.php'), agt('Nueva Inscripción'))); } else { $ret_val->add($this->addForm('userManager', 'miguel_inscriptionForm')); } return $ret_val; }
function content_section() { //Registrar entidad if ($this->issetViewVariable('view') && $this->getViewVariable('view') == 'reg') { $table_fields = $this->add_registra_entity_form(); $title = 'Registrar entidad'; } //ficha entidad if ($this->issetViewVariable('view') && $this->getViewVariable('view') == 'fic') { $table_fields = $this->add_ficha_entity_form(); $title = 'Ficha entidad'; } $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $table->add_row(html_td('ptabla01', '', $title)); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); if ($this->issetViewVariable('strError')) { $strError = $this->getViewVariable('strError'); $table->add_row(html_td('ptabla03', '', html_h2($strError))); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); } $table->add_row(html_td('ptabla03', '', $table_fields)); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); $table->add_row(html_td('ptabla01pie', '', $title)); return $table; }
/** * 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("Inscripción al Campus Virtual")); if ($this->issetViewVariable('newclient') && $this->getViewVariable('newclient') == 'ok') { $ret_val->add(html_h2(agt('Alta de usuario correcta.'))); $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('auth/index.php'), agt('Nuevo Usuario'))); } else { $ret_val->add($this->addForm('auth', 'miguel_inscriptionForm')); } return $ret_val; }
function content_section() { $content = container(); if ($this->issetViewVariable('strError')) { $strError = $this->getViewVariable('strError'); $content->add(html_b(agt('Falta de informar los siguientes campos obligatorios: ') . $strError)); $content->add(html_br(2)); } if ($this->issetViewVariable('userProfileSave') && $this->getViewVariable('userProfileSave') == 'noid') { $content->add(html_h2(agt('Usuario no existe.'))); //$content->add(html_a(Util::format_URLPath('main/index.php'), agt('Volver'))); } else { if ($this->issetViewVariable('userProfileSave') && $this->getViewVariable('userProfileSave') == 'ok') { $content->add(html_h2(agt('Perfil usuario actualizado.'))); $content->add($this->addForm('userProfile', 'miguel_userprofileForm')); //$content->add(html_a(Util::format_URLPath('userProfile/index.php'), agt('Volver'))); } else { $content->add($this->addForm('userProfile', 'miguel_userprofileForm')); } } $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $title = 'Perfil'; $table->add_row(html_td('ptabla01', '', $title)); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); $table->add_row(html_td('ptabla03', '', $content)); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); $table->add_row(html_td('ptabla01pie', '', $title)); return $table; }
/** * 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("Insertar nuevo enlace")); if ($this->issetViewVariable('newlink') && $this->getViewVariable('newlink') == 'ok') { $ret_val->add(html_h2(agt('Inserción de enlace correcto.'))); $ret_val->add(html_a(Util::main_URLPath('index.php'), agt('Regresar a la página principal'))); $ret_val->add(html_br(2)); $ret_val->add(html_a(Util::app_URLPath('links/index.php'), agt('Página de Enlaces'))); } else { if ($this->issetViewVariable('msgError') && $this->getViewVariable('msgError') != '') { $ret_val->add(html_h2($this->getViewVariable('msgError'))); } $ret_val->add($this->addForm('links', 'miguel_insertionform')); } return $ret_val; }
function _installStep7() { $ret_val = container(); $div = html_div("ul-big"); //Add install image $div->add($this->_addImage()); $div->add(html_h2(agt("Instalación de miguel - Paso 7"))); $div->add(html_h3(agt("Personalización del Campus Virtual"))); $div->add(html_br(2)); $div->add(agt("Ahora ya puede empezar a disfrutar de miguel, su plataforma e-Learning GPL.")); $div->add(html_br(2)); $div->add(html_a(Util::main_URLPath('index.php'), 'Acceder a miguel')); $div->add(html_br(2)); $ret_val->add($div); return $ret_val; }
function content_section() { $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $title = 'Perfiles'; $table_form = $this->add_profile_form(); //$table_list = $this->add_profile_list(); $table->add_row(html_td('ptabla01', '', $title)); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); if ($this->issetViewVariable('strError')) { $strError = $this->getViewVariable('strError'); $table->add_row(html_td('ptabla03', '', html_h2($strError))); $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); } $table->add_row(html_td('ptabla03', '', $table_form)); /*if ($table_list != null){ $table->add_row(html_td('ptabla03', '', $table_list)); }else{ $table->add_row(html_td('ptabla03', '', html_h2('No existen perfiles'))); }*/ $table->add_row(html_td('ptabla03', '', _HTML_SPACE)); $table->add_row(html_td('ptabla01pie', '', $title)); return $table; }
/** * This function is responsible for building * the header block that lives at the top * of every page. * * @return HTMLtag object. */ function header_block() { $header = html_div('pageheader'); $header->add(html_comment('HEADER BLOCK AREA')); $logo = html_a('/', html_img('/images/OnYourMarksWhite_080x066.png'), null, null, 'Home'); $logo->set_style('headerimage'); $header->add($logo, html_h2(FT_PAGE_HEADER), html_h4(FT_PAGE_SUBHEADER)); return $header; }