/** * 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 add_head() { $row = html_tr(); $col1 = html_td('ptabla01', "", html_b('Unidad')); $col2 = html_td('ptabla01', "", html_b('Descripción')); $col1->set_tag_attribute('width', "35%"); $col2->set_tag_attribute('width', "65%"); $row->add($col1); $row->add($col2); return $row; }
function add_head($from_to, $bStatus) { $row = html_tr(); $row->set_class('ptabla01'); $row->add(html_td('ptabla01', "", _HTML_SPACE)); if ($bStatus) { $row->add(html_td('ptabla01', "", _HTML_SPACE)); } $row->add(html_td('ptabla01', "", html_b($from_to))); $row->add(html_td('ptabla01', "", html_b('Asunto'))); $row->add(html_td('ptabla01', "", html_b('Fecha'))); $row->add(html_td('ptabla01', "", _HTML_SPACE)); $row->add(html_td('ptabla01', "", html_b('Conectado'))); return $row; }
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 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; }
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; }
/** * 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); $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')); $div->add(html_br(2)); $ret_val->add($div); $ret_val->add($this->addForm('newCourse', 'miguel_newCourseForm')); return $ret_val; //$div = html_div(); //$div->add($this->addForm('newCourse', 'miguel_newCourseForm')); //return $div; }
/** * Construct a summary of the active season. * */ function BuildInfoTable($swimteamid = null) { // Alternate the row colors $this->set_alt_color_flag(true); $team = new SwimTeam(); if (is_null($swimteamid)) { $swimteamid = $this->getSwimTeamId(); } if (!is_null($swimteamid) || $team->SwimTeamExistsById($swimteamid)) { $team->LoadSwimTeamById($swimteamid); $this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($team->getOrgCode())); $this->add_row(html_b("Team Code"), $team->getTeamCode()); $this->add_row(html_b("Team Name"), $team->getTeamName()); $this->add_row(html_b("Team Name Abbreviation"), $team->getTeamNameAbrv()); $this->add_row(html_b("Team Addresss 1"), $team->getTeamAddress1()); $this->add_row(html_b("Team Addresss 2"), $team->getTeamAddress2()); $this->add_row(html_b("City"), $team->getTeamCity()); $this->add_row(html_b("State"), $team->getTeamState()); $this->add_row(html_b("Postal Code"), $team->getTeamPostalCode()); $this->add_row(html_b("Country"), SDIFCodeTables::GetCountryCode($team->getTeamCountryCode())); $this->add_row(html_b("Region"), SDIFCodeTables::GetRegionCode($team->getRegionCode())); $this->add_row(html_b("Team Code 5th Character"), $team->getTeamCode5()); } else { $this->add_row("No swim team details available."); } }
/** * 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); $div = html_div("ul-big"); $div->add(Theme::getThemeImage("edcenters.png")); $div->add(agt('miguel_Courses')); $div->add(html_br(2)); $course = $this->getViewVariable("arr_courses"); $ul = html_ul(); if ($course[0]['course_id'] != '') { $countCourse = count($course); for ($i = 0; $i < $countCourse; $i++) { $elem = container(); $link = html_a(Util::format_URLPath("course/index.php", "course=" . $course[$i]["course_id"]), $course[$i]["course_name"], null, "_top"); $link->set_tag_attribute('tabindex', $i + 7); $elem->add($link); $elem->add(html_br()); $elem->add($course[$i]["course_description"]); $elem->add(html_br()); $mailLink = Theme::getMailURL($course[$i]['course_email'], Session::getValue('migueloo_userinfo_user_id')); $elem->add(html_b(agt('miguel_responsable') . ' '), html_a($mailLink, $course[$i]["course_responsable"])); $elem->add(html_br()); $elem->add(html_a(Util::format_URLPath("unsubscribe/index.php", "course_id=" . $course[$i]["course_id"]), agt('miguel_unsubscribe'), null, '_top')); $ul->add($elem); } $div->add($ul); } $ret_val->add($div); return $ret_val; }
/** * This is the method that builds the layout of where the * FormElements will live. You can lay it out any way * you like. * */ function form_content() { $table = html_table($this->_width, 0, 4); $table->set_style("border: 0px solid"); $msg = html_div("ft_form_msg"); $msg->add(html_p(html_b("Processing the SDIF Queue requires\r\n processing swimmers, swim meets, and/or swim teams which are\r\n not currently stored in the database. Specify how unknown\r\n data should be processed."), html_br())); $td = html_td(null, null, $msg); $td->set_tag_attribute("colspan", "2"); $table->add_row($td); $table->add_row($this->element_label("Swimmers"), $this->element_form("Swimmers")); $table->add_row($this->element_label("Swim Meets"), $this->element_form("Swim Meets")); $table->add_row($this->element_label("Swim Teams"), $this->element_form("Swim Teams")); $this->add_form_block(null, $table); }
function show_Details($_type, $_content, $_dt_ini, $_dt_fin, $calendar_id) { $row = html_tr(); $row->add(html_td('ptabla03', '', html_b(NLS::localiseDateTime("%d-%m-%Y", $_dt_ini)))); $row->add(html_td('ptabla03', '', html_b(NLS::localiseDateTime("%d-%m-%Y", $_dt_fin)))); $row->add(html_td('ptabla03', '', $_type)); $row->add(html_td('ptabla03', '', nl2br($_content))); $opEliminar = $this->icon_link(Util::format_URLPath('courseTask/index.php', "status=delete&id={$calendar_id}"), Theme::getThemeImagePath('delete.png'), 'Borrar', 'titulo03a'); $row->add(html_td('ptabla03', '', $opEliminar)); return $row; }
/** * @access private */ function _getShowElement($name, $tab_index, $label, $text, $element) { $this->set_form_tabindex($name, $tab_index); $label = html_label($label); $label->add(container(html_b(agt($text)), html_br(), $this->element_form($element))); return $label; }
function left_section() { //Crea el contenedor del right_block $ret_val = html_div(); //Añade una imagen del tema // $ret_val->add(Theme::getThemeImage('modules/works.png')); //Incluimos texto en negrita // $ret_val->add(html_b('Página del Alumno')); // $ret_val->add(html_br(2)); $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 2, 2); $arrMessages = $this->getViewVariable('arrMessages'); $unreaded = count($arrMessages); //Si es 1 hay que mirar que no sea nulo if ($unreaded == 1 && $arrMessages[0]['message.id'] == null) { $unreaded = 0; } $table->add($this->add_resume('Mensajes', $unreaded)); $notice_array = $this->getViewVariable('notice_array'); $unreaded = count($notice_array); //Si es 1 hay que mirar que no sea nulo if ($unreaded == 1 && $notice_array[0]['notice.author'] == null) { $unreaded = 0; } $table->add($this->add_resume('Tablón de anuncios', $unreaded)); $fieldset = html_fieldset(); $fieldset->add(html_b('Para hoy')); $fieldset->add($table); $ret_val->add($fieldset); //EnvÃŒa el contenedor del bloque right para que sea renderizado por el sistema return $ret_val; }
function form() { $table = html_table($this->_width, 0, 1, 3); //Comprueba que el formulario ha recibido todos los datos necesarios if (!$this->isFormComplete()) { return null; } $table->add('(Entradas ' . $this->getViewVariable('min_index') . ' a ' . $this->getViewVariable('max_index') . ' de ' . $this->getViewVariable('total_elements') . ')'); $table->add(html_br(2)); $fila = html_tr(); for ($i = 1; $this->getViewVariable('col_' . $i . '_description'); $i++) { $fila->add(html_b($this->getViewVariable('col_' . $i . '_description'))); } $table->add_row($fila); //Construimos el formulario a partir de las variables de la vista for ($j = 1; $this->getViewVariable('col_1_value_' . $j); $j++) { $fila = html_tr(); for ($i = 1; $this->getViewVariable('col_' . $i . '_value_1'); $i++) { $fila->add($this->getViewVariable('col_' . $i . '_value_' . $j)); } //Dibujamos la acción que se puede realizar en esta fila según la pantalla en la que estemos switch ($this->getViewVariable('admin_screen')) { case 'del_user': $username = $this->getViewVariable('col_1_value_' . $j); $fila->add(html_td('color1-bg', '', $this->add_hidden_action('Dar de baja', $username))); break; case 'edit_user_profile': $username = $this->getViewVariable('col_1_value_' . $j); $fila->add(html_td('color1-bg', '', $this->add_hidden_action('Editar perfil', $username))); break; default: break; } $table->add_row($fila); unset($fila); } //Dibujamos los botones para avanzar/retroceder en la lista de peticiones $fila = html_tr(); if ($this->getViewVariable('min_index') > 1) { $elem1 = container($this->add_hidden_action('Anterior', 'prev')); } else { $elem1 = container($this->add_action('Anterior', 1)); } if ($this->getViewVariable('max_index') < $this->getViewVariable('total_elements')) { $elem2 = container($this->add_hidden_action('Siguiente', 'next')); } else { $elem2 = container($this->add_action('Siguiente', 1)); } $fila->add(html_td('', 'left', $elem1, $elem2)); $table->add_row($fila); return $table; }
/** * this function returns the contents * of the right block. It is already wrapped * in a TD * Solo se define right_block porque heredamos de VMenu y el left_block se encuentra ya definido por defecto con el men˙ del sistema. * Si heredara de miguel_VPage entonces habrÌa que definir de igual forma right_block y main_block. Esta ˙ltima es un contenedor de left_block y right_block * @return HTMLTag object */ function right_block() { //Crea el contenedor del right_block $ret_val = container(); //Vamos a ir creando los distintos elementos (Estos a su vez son tambiÈn contenedores) del contenedor principal. //hr es una linea horizontal de HTML. $hr = html_hr(); $hr->set_tag_attribute('noshade'); $hr->set_tag_attribute('size', 2); //Añade la linea horizontal al contenedor principal $ret_val->add($hr); //Crea un bloque div y le asigna la clase ul-big del CSS $div = html_div('ul-big'); //Añade una imagen del tema $div->add(Theme::getThemeImage("menu/idea.png")); //Incluimos texto en negrita $div->add(html_b('Sugerencias')); //Ahora dos retornos de carro $div->add(html_br(2)); $ret_val->add($div); $div = html_div('medium-text'); if ($this->getViewVariable('bol_cuestion')) { //Incluye en el Div un texto. Usa la funciÛn agt('etiqueta') para internacionalizar $div->add(agt('miguelTodoText')); $div->add(html_br(2)); $ret_val->add($div); //Añadimos al contenedor principal el formulario de entrada de datos $ret_val->add($this->addForm('todo', 'miguel_todoForm')); } else { //Muestra en el Div el texto con los datos insertados $div->add(agt('miguelInsertTodo')); $div->add(html_br(2)); $ret_val->add($div); //getContextValue obtiene un par·metro de config.xml $table =& html_table(Session::getContextValue("mainInterfaceWidth"), 0, 2, 2); //add_row aÒade una fila a la tabla, html_td crea un contenedor celda de la fila $table->add_row(html_td("", "", container(html_b(agt('miguelTodoNombre')), $this->getViewVariable('sug_nombre')))); $table->add_row(html_td("", "", container(html_b(agt('miguelTodoMail')), $this->getViewVariable('sug_email')))); $table->add_row(html_td("", "", container(html_b(agt('miguelTodoComment')), html_br(), $this->getViewVariable('sug_comentario')))); $ret_val->add($table); //AÒade al contenedor principal un formulario $ret_val->add($this->addForm('common', 'miguel_navForm')); } //EnvÌa el contenedor del bloque right para que sea renderizado por el sistema return $ret_val; }
function add_candidateHead() { $row = html_tr(); $nombre = html_td('ptabla01', '', html_b('Nombre')); $surname = html_td('ptabla01', '', html_b('Apellido')); $nombre->set_tag_attribute('width', '30%'); $surname->set_tag_attribute('width', '70%'); $row->add($nombre); $row->add($surname); return $row; }
function add_noticeHead($from_to) { $row = html_tr(); $from = html_td('ptabla01', '', html_b($from_to)); $subject = html_td('ptabla01', '', html_b('Aviso')); $date = html_td('ptabla01', '', html_b('Fecha')); $from->set_tag_attribute('width', '30%'); $subject->set_tag_attribute('width', '50%'); $date->set_tag_attribute('width', '20%'); $row->add($from); $row->add($subject); $row->add($date); return $row; }
/** * Construct a summary of the active season. * */ function BuildInfoTable($resultid = null) { // Alternate the row colors $this->set_alt_color_flag(true); $result = new SwimResult(); if (is_null($resultid)) { $resultid = $this->getResultId(); } if (!is_null($resultid) || $result->ResultExistsById($resultid)) { $result->LoadResultById($resultid); $this->add_row(html_b("Swim Meet Id"), $result->getSwimmeetid()); $this->add_row(html_b("Swim Team Id"), $result->getSwimteamid()); $this->add_row(html_b("Swimmer Id"), $result->getSwimmerid()); $this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($result->getOrgCode())); $this->add_row(html_b("Swimmer Name"), $result->getSwimmerName()); $this->add_row(html_b("USS"), $result->getUSS()); $this->add_row(html_b("USS (new)"), $result->getUSSNew()); $this->add_row(html_b("USS (old)"), $result->getUSSOld()); $this->add_row(html_b("Attached"), SDIFCodeTables::GetAttachedCode($result->getAttachCode())); $this->add_row(html_b("Citizen"), SDIFCOdeTables::GetCitizenCode($result->getCitizenCode())); $this->add_row(html_b("Birth Date"), $result->getBirthDate(true)); $this->add_row(html_b("Age or Class"), $result->getAgeOrClass()); $this->add_row(html_b("Gender"), SDIFCodeTables::GetGenderCode($result->getGender())); $this->add_row(html_b("Event Gender"), SDIFCodeTables::GetEventGenderCode($result->getEventGender())); $this->add_row(html_b("Event Distance"), $result->getEventDistance()); $this->add_row(html_b("Stroke Code"), SDIFCodeTables::GetStrokeCode($result->getStrokeCode())); $this->add_row(html_b("Event Number"), $result->getEventNumber()); $this->add_row(html_b("Event Age Code"), $result->getEventAgeCode()); $this->add_row(html_b("Swim Date"), $result->getSwimDate(true)); $this->add_row(html_b("Seed Time"), $result->getSeedTime()); $this->add_row(html_b("Seed Course"), SDIFCodeTables::GetCourseCode($result->getSeedCourseCode())); $this->add_row(html_b("Prelim Time"), $result->getPrelimTime()); $this->add_row(html_b("Prelim Course"), SDIFCodeTables::GetCourseCode($result->getPrelimCourseCode())); $this->add_row(html_b("Swim Off Time"), $result->getSwimOffTime()); $this->add_row(html_b("Swim Off Course"), SDIFCodeTables::GetCourseCode($result->getSwimOffCourseCode())); $this->add_row(html_b("Finals Time"), $result->getFinalsTime()); $this->add_row(html_b("Finals Course"), SDIFCodeTables::GetCourseCode($result->getFinalsCourseCode())); $this->add_row(html_b("Prelim Heat Number"), $result->getPrelimHeatNumber()); $this->add_row(html_b("Prelim Lane Number"), $result->getPrelimLaneNumber()); $this->add_row(html_b("Finals Heat Number"), $result->getFinalsHeatNumber()); $this->add_row(html_b("Finals Lane Number"), $result->getFinalsLaneNumber()); $this->add_row(html_b("Prelim Place Ranking"), $result->getPrelimPlaceRanking()); $this->add_row(html_b("Finals Place Ranking"), $result->getFinalsPlaceRanking()); $this->add_row(html_b("Finals Points"), $result->getFinalsPoints()); $this->add_row(html_b("Event Time Class Code"), $result->getEventTimeClassCode()); $this->add_row(html_b("Swimmer Flight Status"), $result->getSwimmerFlightStatus()); } else { $this->add_row("No swim result details available."); } }
function createRow($tab_index, $label, $obj) { $ret_val = html_tr(); $this->set_form_tabindex("{$obj}", "{$tab_index}"); if (empty($label)) { $col1 = html_td("", '', $this->element_form("{$obj}")); $col2 = html_td('', '', " "); } else { $col1 = html_td('ptabla02', '', html_b(agt($label))); $col2 = html_td("", '', $this->element_form("{$obj}")); } $col1->set_tag_attribute('width', '35%'); $col2->set_tag_attribute('width', '65%'); $col2->set_id("{$obj}"); $ret_val->add($col1); $ret_val->add($col2); return $ret_val; }
/** * Construct a summary of the active season. * */ function BuildInfoTable($fulldetails = true, $swimmeetid = null) { // Alternate the row colors $this->set_alt_color_flag(true); $meet = new SwimMeet(); if (is_null($swimmeetid)) { $swimmeetid = $this->getSwimMeetId(); } if (!is_null($swimmeetid) || $meet->SwimMeetExistsById($swimmeetid)) { $meet->LoadSwimMeetById($swimmeetid); $meetstartdate = date("D M j, Y", strtotime($meet->getMeetStart())); $meetenddate = date("D M j, Y", strtotime($meet->getMeetEnd(true))); $meetenddate = date("D M j, Y", strtotime($meet->getMeetEnd(true))); if ($fulldetails) { $this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($meet->getOrgCode())); } $this->add_row(html_b("Meet Name"), $meet->getMeetName()); if ($fulldetails) { $this->add_row(html_b("Meet Addresss 1"), $meet->getMeetAddress1()); } if ($fulldetails) { $this->add_row(html_b("Meet Addresss 2"), $meet->getMeetAddress2()); } $this->add_row(html_b("City"), $meet->getMeetCity()); $this->add_row(html_b("State"), $meet->getMeetState()); if ($fulldetails) { $this->add_row(html_b("Postal Code"), $meet->getMeetPostalCode()); } if ($fulldetails) { $this->add_row(html_b("Country"), SDIFCodeTables::GetCountryCode($meet->getMeetCountryCode())); } $this->add_row(html_b("Type"), SDIFCodeTables::GetMeetCode($meet->getMeetCode())); $this->add_row(html_b("Start Date"), $meetstartdate); $this->add_row(html_b("End Date"), $meetenddate); if ($fulldetails) { $this->add_row(html_b("Pool Altitude (feet)"), $meet->getPoolAltitude()); } $this->add_row(html_b("Course"), SDIFCodeTables::GetCourseCode($meet->getCourseCode())); //$this->add_row(html_b("State"), ucfirst($meet->getLocation())) ; } else { $this->add_row("No swim meet details available."); } }
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; }
function getContent() { $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1); $table->set_class("header"); $table->set_id("header"); //Icono y bienvenida $elem1 = html_td('campuslogo', '', $this->getCabecera()); //Campus virtual if (Session::getContextValue("siteName") != '') { $link = html_a(Util::main_URLPath("index.php"), agt("Campus") . ": " . Session::getContextValue("siteName")); $link->set_tag_attribute('accesskey', 'c'); $link->set_tag_attribute('tabindex', '1'); $elem2 = html_td("", "", $link); } else { $elem2 = html_td("colorMedium-bg", "", agt("Campus")); } $elem2->set_id("cell-sitename"); $elem2->set_tag_attribute("target", "_top"); //miguel $link = html_a("https://developer.berlios.de/projects/migueloo/", "miguel"); $link->set_tag_attribute('accesskey', 'm'); $link->set_tag_attribute('tabindex', '2'); $elem3 = html_td("colorLight-bg", "", $link); $elem3->set_id("cell-indetec"); $elem3->set_tag_attribute("target", "_blank"); //Nombre del sitio web $link = html_a(Session::getContextValue("InstitutionUrl"), Session::getContextValue("Institution")); $link->set_tag_attribute('accesskey', 'i'); $link->set_tag_attribute('tabindex', '4'); $elem4 = html_td("colorDark-bg", "", $link); $elem4->set_id("cell-institution"); $elem4->set_tag_attribute("target", "_blank"); $row = html_tr(); $row->add($elem1); $row->add($elem2); $row->add($elem3); $row->add($elem4); $table->add_row($row); $elemM = html_td('', '', ' '); //$elemM->set_tag_attribute('bgcolor', Session::getContextValue('menucolor')); $table->add_row($elemM); //Sistema de mensajes de la aplicaciÛn $row = html_tr(); if ($this->str_message) { $msg = html_td("infocontainer", "", html_b($this->str_message)); } else { $msg = html_td("", "", ''); } //$msg->set_tag_attribute("colspan","4"); $msg->set_tag_attribute("colspan", "3"); $row->add($msg); if ($this->str_help) { $help = html_td("helpbox", "", $this->help_img(Util::format_URLPath("help/miguel_help.php", "help=" . $this->str_help), Theme::getThemeImagePath("help_mini.png"), "")); } else { $help = html_td("", "", ''); } $row->add($help); $table->add_row($row); //Sistema de menues $barra = $this->_menuBar(); if (!empty($barra)) { $container = container(html_img(Theme::getThemeImagePath("logo.png"), 0, 0, 0, "miguel Home"), html_br(), " "); $row = html_tr(); $menu = html_td('navigator', '', $barra); $menu->set_tag_attribute("colspan", "3"); $row->add($menu); } $table->add_row($row); return $table; }
function formatCheckBox($element, $tab_index, $text, $status = '') { $this->set_form_tabindex($element, $tab_index); $cont = container(); $cont->add($this->element_form($element)); switch ($status) { case 'ok': $img = Theme::getThemeImagePath('boton_green.gif'); break; case 'ko': $img = Theme::getThemeImagePath('boton_red.gif'); break; default: $img = Theme::getThemeImagePath('invisible.gif'); } $cont->add(html_img($img)); $cont->add(html_b(agt($text))); return $cont; }
function _addFinalRow($lit, $val) { $row = html_tr(""); $col1 = html_td(""); $col1->set_tag_attribute("align", "left"); $col1->add(html_b(agt($lit))); $col2 = html_td(""); $col2->set_tag_attribute("align", "left"); $col2->add($val); $row->add($col1, $col2); return $row; }
/** * this function returns the contents * of the right block. It is already wrapped * in a TD * Solo se define right_block porque heredamos de VMenu y el left_block se encuentra ya definido por defecto con el men˙ del sistema. * Si heredara de miguel_VPage entonces habrÌa que definir de igual forma right_block y main_block. Esta ˙ltima es un contenedor de left_block y right_block * @return HTMLTag object */ function right_block() { //Crea el contenedor del right_block $ret_val = container(); //Vamos a ir creando los distintos elementos (Estos a su vez son tambiÈn contenedores) del contenedor principal. //hr es una linea horizontal de HTML. $hr = html_hr(); $hr->set_tag_attribute('noshade'); $hr->set_tag_attribute('size', 2); //Añade la linea horizontal al contenedor principal $ret_val->add($hr); //Crea un bloque div y le asigna la clase ul-big del CSS $div = html_div(); //Añade una imagen del tema $div->add(Theme::getThemeImage('modules/announces.png')); //Incluimos texto en negrita $div->add(html_b('Tabl�n de anuncios')); //Ahora dos retornos de carro $div->add(html_br(2)); //$ret_val->add($div); //$div = html_div('medium-text'); $status = $this->getViewVariable('status'); switch ($status) { case 'menu': default: $div->add($this->icon_link(Util::format_URLPath('notice/index.php', 'status=new'), Theme::getThemeImagePath('modules/announces.png'), 'Nuevo Mensaje')); $div->add(html_br(2)); $div->add($this->icon_link(Util::format_URLPath('notice/index.php', 'status=list'), Theme::getThemeImagePath('modules/announces.png'), 'Ver Mensajes')); $div->add(html_br(2)); $ret_val->add($div); break; case 'new': //Incluye en el Div un texto. Usa la funciÛn agt('etiqueta') para internacionalizar //$div->add(agt('miguelNoticeText')); //$div->add(html_br(2)); $ret_val->add($div); //Añadimos al contenedor principal el formulario de entrada de datos $ret_val->add($this->addForm('notice', 'miguel_noticeForm')); break; case 'list': $notice_array = $this->getViewVariable('notice_array'); for ($i = 0; $i < count($notice_array); $i++) { $div->add($this->add_notice($notice_array[$i]['notice.author'], $notice_array[$i]['notice.subject'], $notice_array[$i]['notice.time'], $notice_array[$i]['notice.notice_id'])); $div->add(html_br(2)); } $ret_val->add($div); break; case 'show': $ret_val->add($this->add_noticeDetails()); break; } //EnvÌa el contenedor del bloque right para que sea renderizado por el sistema return $ret_val; }
/** * Este metodo construye el formulario en sÃŒ. */ function form() { $table =& html_table($this->_width, 0, 1, 3); //$table->set_style("border: 1px solid"); $this->set_form_tabindex("courseName", '7'); $label = html_label("coursename"); $label->add(container(html_b(agt('Nombre: ')), html_br(), $this->element_form("courseName"))); $elem = html_td("", "left", $label); $elem->set_id("courseName"); $table->add_row($elem); $this->set_form_tabindex("coursedataDescripcion", '8'); $label = html_label("coursedatadescripcion"); $label->add(container(html_b(agt('Descripción: ')), html_br(), $this->element_form("coursedataDescripcion"))); $elem = html_td("", "left", $label); $elem->set_id("coursedataDescripcion"); $table->add_row($elem); $this->set_form_tabindex("courseLanguage", '9'); $label = html_label("courselanguage"); $label->add(container(html_b(agt('Idioma: ')), html_br(), $this->element_form("courseLanguage"))); $elem = html_td("", "left", $label); $elem->set_id("courseLanguage"); $table->add_row($elem); $this->set_form_tabindex("coursedataVersion", '10'); $label = html_label("coursedataversion"); $label->add(container(html_b(agt('Version: ')), html_br(), $this->element_form("coursedataVersion"))); $elem = html_td("", "left", $label); $elem->set_id("coursedataversion"); $table->add_row($elem); $this->set_form_tabindex("coursedataPalabrasClaves", '11'); $label = html_label("coursedatapalabrasclaves"); $label->add(container(html_b(agt('Palabras Claves: ')), html_br(), $this->element_form("coursedataPalabrasClaves"))); $elem = html_td("", "left", $label); $elem->set_id("coursedatapalabrasclaves"); $table->add_row($elem); $this->set_form_tabindex("coursedataDestinatarios", '12'); $label = html_label("coursedatadestinatarios"); $label->add(container(html_b(agt('Destinatarios: ')), html_br(), $this->element_form("coursedataDestinatarios"))); $elem = html_td("", "left", $label); $elem->set_id("coursedatadestinatarios"); $table->add_row($elem); $this->set_form_tabindex("coursedataConocimientosPrevios", '13'); $label = html_label("coursedataconocimientosprevios"); $label->add(container(html_b(agt('Conocimientos Previos: ')), html_br(), $this->element_form("coursedataConocimientosPrevios"))); $elem = html_td("", "left", $label); $elem->set_id("coursedataconocimientosprevios"); $table->add_row($elem); $this->set_form_tabindex("coursedataMetodologia", '14'); $label = html_label("coursedatametodologia"); $label->add(container(html_b(agt('Metodologia: ')), html_br(), $this->element_form("coursedataMetodologia"))); $elem = html_td("", "left", $label); $elem->set_id("coursedatametodologia"); $table->add_row($elem); $this->set_form_tabindex("courseActive", '15'); $label = html_label("courseactive"); $label->add(container('', html_br(), $this->element_form("courseActive"))); $elem = html_td("", "left", $label); $elem->set_id("courseActive"); $table->add_row($elem); $this->set_form_tabindex("courseAccess", '16'); $label = html_label("courseaccess"); $label->add(container('', html_br(), $this->element_form("courseAccess"))); $elem = html_td("", "left", $label); $elem->set_id("courseAccess"); $table->add_row($elem); $this->set_form_tabindex("Aceptar", '17'); $label = html_label("submit"); $label->add($this->element_form("Aceptar")); $table->add_row(html_td("", "left", $label)); return $table; }
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 add_head($titulo = ' ') { $row = html_tr(); $type = html_td('ptabla02', '', $titulo); $type->set_tag_attribute('rowspan', '50'); $log = html_td('ptabla01', "", _HTML_SPACE); $name = html_td('ptabla01', "", html_b('Nombre')); $perfil = html_td('ptabla01', "", html_b('Perfil')); $mail = html_td('ptabla01', "", _HTML_SPACE); //$email = html_td('ptabla01', "", html_b('Correo electrónico')); //$info = html_td('ptabla01', "", html_b('Ficha')); $log->set_tag_attribute('width', "5%"); $name->set_tag_attribute('width', "70%"); //50 + 20 de email $perfil->set_tag_attribute('width', "5%"); $mail->set_tag_attribute('width', "5%"); //$email->set_tag_attribute('width',"20%"); //$info->set_tag_attribute('width','10%'); $row->add($type); $row->add($log); $row->add($name); $row->add($perfil); $row->add($mail); //$row->add($email); //$row->add($info); return $row; }