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("bibliography/index.php"), agt('Catálogo'), null, "_top"); $link->set_tag_attribute('class', ''); $item1 = html_td('', '', $link); $item1->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("bibliography/index.php", 'status=ref'), agt('Referencias bibliográficas'), null, "_top"); $link->set_tag_attribute('class', ''); $item2 = html_td('', '', $link); $item2->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("bibliography/index.php", 'status=link'), agt('Enlaces de interés'), null, "_top"); $link->set_tag_attribute('class', ''); $item3 = html_td('', '', $link); $item3->set_tag_attribute('width', '20%'); $row->add($blank); $row->add($image); $row->add($item1); $row->add($item2); $row->add($item3); $table->add_row($row); $div->add($table); return $div; }
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("entityManager/index.php", 'submit=new'), agt('Registrar entidad'), null, "_top"); $link->set_tag_attribute('class', ''); $item1 = html_td('', '', $link); $item1->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("entityManager/index.php", 'submit=ficha entidad'), agt('Ficha entidad'), null, "_top"); $link->set_tag_attribute('class', ''); $item2 = html_td('', '', $link); $item2->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("entityManager/index.php", 'submit=del&entity=' . $this->getViewVariable('id')), agt('Baja entidad'), null, "_top"); $link->set_tag_attribute('class', ''); $item3 = html_td('', '', $link); $item3->set_tag_attribute('width', '20%'); $row->add($blank); $row->add($image); $row->add($item1); $row->add($item2); $row->add($item3); $table->add_row($row); $div->add($table); return $div; }
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; }
/** * 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 initialize() { //Preparamos valores para los header de la página // <META HTTP-EQUIV="refresh" content="5; URL=http://"> // html_meta (string $content, [string $http_equiv = ""], [string $name = ""]) //$this->add_head_content("<meta http-equiv=\"refresh\" content=\"5\" url=\"".Util::main_URLPath('index.php')."\">"); $this->add_head_content("<meta name=\"keywords\" content=\"miguel,hispalinux,indetec,campus,ecampus,e-campus,classroom,elearning,learning,pedagogy,platform,teach,teaching,teacher,prof,professor,student,study,open,source,gpl,mysql,php,e-learning, apprentissage,ecole,universite,university,contenu,classe, universidad, enseñanza, virtual, distribuida, sl, gpl, software, libre, clases, aprendizaje, proceso\">"); $this->add_head_content("<link rel=\"icon\" href=\"" . Theme::getThemeImagePath('favicon.png') . "\" type=\"image/png\">"); //Hojas de estilo CSS $this->add_css_link(Theme::getThemeCSSPath('common.css')); //$this->add_js_link(Theme::getThemeJSPath('miguel.js')); }
function main_block() { $wrapper_div = html_div(''); $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0); $elem1 = html_td('', '', html_img(Theme::getThemeImagePath("esquina.gif"), 37, 39, 0, '')); $elem1->set_tag_attribute('width', '1%'); $elem2 = html_td('', '', ''); $elem2->set_tag_attribute('width', '96%'); $elem3 = html_td('', '', ''); $elem3->set_tag_attribute('width', '3%'); $row = html_tr(); $row->add($elem1); $row->add($elem2); $row->add($elem3); $table->add_row($row); $row = html_tr(); $space = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"))); $space->set_tag_attribute('width', '3%'); $row->add($space); //Preparamos contenido $content = html_td('', '', $this->content()); $content->set_tag_attribute('width', '94%'); $row->add($content); $row->add($space); $table->add_row($row); $marco = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0); $mc_cont = html_td('plomoizda', '', $table); $mc_cont->set_tag_attribute('valign', 'top'); $marco->add_row($mc_cont); //add the main body $wrapper_div->add($marco); //linea fondo $linea = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0); $yellowLine = html_tr(); $yellowLine->set_tag_attribute('bgcolor', '#FFCC33'); //$yellowLine->set_tag_attribute('valign','top'); $line = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 10, 10)); $line->set_tag_attribute('colspan', '3'); $yellowLine->add($line); $linea->add_row($yellowLine); $wrapper_div->add($linea); $this->add($wrapper_div); }
/** * Este metodo se llama cada vez que se instancia la clase. * Se utiliza para crear los objetos del formulario */ function form_init_elements() { //Creamos un Area de Texto llamada comentario $elemTA = new FETextArea("Comentario", FALSE, 10, 60, "100%", "100px"); $elemTA->set_attribute('class', ''); //$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); $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('Añadir Comentario')); $submit->set_attribute('class', 'p'); $submit->set_attribute("id", "submit"); $submit->set_attribute("accesskey", "r"); $this->add_element($submit); }
/** * Permite añadir un enlace pop-up en la ventana * @param string $str_url Nombre del módulo que se invoca * @param string $str_param Parametros adicionales (opcional) * @param string $str_image Nombre de la imagen * @param string $str_image_text Texto para la imagen (opcional) * @param string $int_h Ancho de la ventana (opcional) * @param string $int_w Alto de la ventana (opcional) * @param string $int_x Posición horizontal de la ventana (opcional) * @param string $int_y Posición vertical de la ventana (opcional) * @return object Instancia de html_a */ function addPopup($str_url, $str_image, $str_param = '', $str_image_text = '', $int_w = 0, $int_h = 0, $int_x = 0, $int_y = 0) { if ($str_param == '') { $path_action = Util::format_URLPath($str_url); } else { $path_action = Util::format_URLPath($str_url, $str_param); } $path_action = Util::format_URLPath($str_url, $str_param); $link = html_a($path_action); //$link = html_a('#',''); $link->add(html_img(Theme::getThemeImagePath($str_image), null, null, null, $str_image_text)); /* if($str_param == ''){ $path_action = Util::format_URLPath($str_url); } else { $path_action = Util::format_URLPath($str_url, $str_param); } $path_action = Util::format_URLPath($str_url, $str_param); $link->set_tag_attribute('onClick', "javascript:newWin('".$path_action."', ".$int_w.", ".$int_h.", ".$int_x.", ".$int_y.")"); $link->set_tag_attribute('onClick', "javascript:ponerIframe('".$path_action."')"); */ $link->set_tag_attribute('target', 'myFrame'); return $link; }
function add_referenceInfo($_bookid, $_title, $_value) { $row = html_tr(); $title = html_td('ptabla03', '', agt($_title)); //$link = $this->imag_alone(Util::format_URLPath('bibliography/index.php',"status=resum&id=$_bookid"), // , agt('Resumen')); $link = html_a("#", ""); $link->add(html_img(Theme::getThemeImagePath('icono01.gif'), 0, 0, 0, 'resumen')); $path_action = Util::format_URLPath('bibliography/index.php', "status=resum&id={$_bookid}"); $link->set_tag_attribute("onClick", "javascript:newWin('" . $path_action . "',750,400,25,100)"); $resum = html_td('ptabla03', '', $link); $resum->set_tag_attribute('align', 'center'); $value = html_td('ptabla03', '', html_img(Theme::getThemeImagePath('valoracion' . $_value . '.gif'))); $value->set_tag_attribute('align', 'center'); $title->set_tag_attribute("width", "80%"); $resum->set_tag_attribute("width", "10%"); $value->set_tag_attribute("width", "10%"); $row->add($title); $row->add($resum); $row->add($value); return $row; }
function _addImage() { //Choose image switch (PHP_OS) { case "WIN32": case "WINNT": $wizardImage = "install/windowsWizard.png"; break; case "Linux": $wizardImage = "install/linuxWizard.png"; break; default: $wizardImage = "install/defaultWizard.png"; } $wizImage = html_img(Theme::getThemeImagePath($wizardImage), 0, 0, 0, "Wizzard Image"); $wizImage->set_tag_attribute("align", "right"); return $wizImage; }
/** * 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() { $this->initialize(); $table =& html_table($this->_width, 0, 0, 0); $table->set_class("mainInterfaceWidth"); //$table->set_style("border: 1px solid"); //$titulo = html_td('ptabla01','', agt('Ficha alumno')); //$titulo->set_tag_Attribute('colspan', '2'); //$table->add_row($titulo); //Tabla de detalle $row = html_tr(); $arr_data = $this->getViewVariable('arr_info'); //Debug::oneVar($arr_data); if ($arr_data['image'] != '') { $img = Util::main_URLPath('var/secretary/user_image/user_' . $arr_data['person_id'] . '.' . $arr_data['image']); } else { $img = Theme::getThemeImagePath("anonimo.jpg"); } $image = html_td('', '', html_img($img, 90, 118)); $image->set_tag_attribute("width", "12%"); $image->set_tag_attribute("align", "center"); $detail_table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $this->add_class_row($detail_table, "Nombre"); $detail_table->add_row(html_td('ptabla02', '', agt('Apellido')), html_td('ptabla03', '', container($this->element_form("Primer Apellido"), $this->element_form("Segundo Apellido")))); //Condicionar vvvvvvvvv $label1 = $this->element_label("Usuario"); $label1->set_tag_attribute('class', 'ptabla02'); $label2 = $this->element_label("Contraseña"); $label2->set_tag_attribute('class', 'ptabla02'); if ($this->getViewVariable('status') == 'show') { $detail_table->add_row(html_td('ptabla02', '', agt('Datos de acceso')), html_td('ptabla03', '', container($label1, $this->element_form("Usuario"), $label2, $this->element_form("Contraseña")))); } $this->add_class_row($detail_table, "DNI"); $this->add_class_row($detail_table, "Dirección"); $this->add_class_row($detail_table, "Población"); $this->add_class_row($detail_table, "Provincia"); $this->add_class_row($detail_table, "Pais"); $this->add_class_row($detail_table, "Código Postal"); $row->add($image); $row->add($detail_table); $table->add($row); /* //$this->add_class_row($table,"Tratamiento"); $this->add_class_row($table,"Nombre"); //$this->add_class_row($table,"Primer Apellido"); //$this->add_class_row($table,"Segundo Apellido"); $table->add_row(html_td('ptabla02','',agt('Apellido')), html_td('ptabla03', '', container($this->element_form("Primer Apellido"), $this->element_form("Segundo Apellido")))); $this->add_class_row($table,"DNI"); //$this->add_class_row($table,"Fecha de nacimiento"); $this->add_class_row($table,"Dirección"); $this->add_class_row($table,"Población"); $this->add_class_row($table,"Provincia"); $this->add_class_row($table,"Pais"); $this->add_class_row($table,"Código Postal"); */ //$this->add_class_row($table,"Teléfono"); $table->add_row(html_td('ptabla02', '', agt('Teléfono')), html_td('ptabla03', '', container($this->element_form("Teléfono1"), $this->element_form("Teléfono2")))); $this->add_class_row($table, "Fax"); //$this->add_class_row($table,"E-mail"); $table->add_row(html_td('ptabla02', '', agt('e-mail')), html_td('ptabla03', '', container($this->element_form("E-mail1"), $this->element_form("E-mail2"), $this->element_form("E-mail3")))); $this->add_class_row($table, "Web"); if ($this->getViewVariable('status') == 'new') { $table->add_row(html_td('ptabla02', '', agt('Fotografía')), html_td('ptabla03', '', $this->element_form("imagen"))); } if ($this->getViewVariable('pid') == 3) { $table->add_row(html_td('ptabla02', '', agt('C.V.')), html_td('ptabla03', '', $this->element_form("cv_doc"))); } if ($arr_data['cv'] != '') { $link = Util::main_URLPath('var/secretary/user_cv/user_' . $arr_data['person_id'] . '.' . $arr_data['cv']); $table->add_row(html_td('ptabla02', '', agt('CV')), html_td('ptabla03', '', html_a($link, agt('Abrir'), 'titulo03a'))); } $this->add_class_row($table, "Observaciones"); //$table->add_row($this->_tableRow("Nombre de usuario")); //$table->add_row($this->_tableRow("Clave de acceso")); //$table->add_row($this->_tableRow("Clave de acceso (confirmación)")); //$table->add_row($this->_tableRow("Correo electrónico")); //$table->add_row($this->_tableRow("Tema")); //$table->add_row($this->_tableRow("Perfil de usuario")); //$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."); $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(_HTML_SPACE, $this->element_form("Aceptar")); 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 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%'); $item1 = html_td('', '', 'Mi progreso'); $item1->set_tag_attribute('width', '12%'); $item2 = html_td('', '', 'Mis accesos directos'); $item2->set_tag_attribute('width', '16%'); $item3 = html_td('', '', 'Mis contactos'); $item3->set_tag_attribute('width', '12%'); $item4 = html_td('', '', 'Mis notas'); $item4->set_tag_attribute('width', '10%'); $link = html_a(Util::format_URLPath("filemanager/index.php"), agt('Mis documentos'), null, "_top"); $link->set_tag_attribute('class', ''); $item5 = html_td('', '', $link); $item5->set_tag_attribute('width', '12%'); $row->add($blank); $row->add($image); $row->add($item1); $row->add($item2); $row->add($item3); $row->add($item4); $row->add($item5); $table->add_row($row); $div->add($table); return $div; }
function addMenu() { $row = html_tr(); $tdTitulo = html_td('ptabla01', '', 'Menú'); $manageMenu = html_td('ptabla01', 'center', $this->imag_alone(Util::format_URLPath('moduleManager/index.php', "status=selectSubmenusForm&menu_id={$_menu_id}"), Theme::getThemeImagePath('redactar_mensaje.gif'), agt('Editar'))); $tdWriteXML = html_td('ptabla01', '', html_a(Util::format_URLPath('moduleManager/index.php', "status=writeXML&menu_id={$_menu_id}"), 'Crear XML')); $row->add($tdTitulo, $manageMenu, $tdWriteXML); return $row; }
/** * Permite añadir un enlace pop-up en la ventana * @param string $str_url Nombre del módulo que se invoca * @param string $str_param Parametros adicionales (opcional) * @param string $str_image Nombre de la imagen * @param string $str_image_text Texto para la imagen (opcional) * @param string $int_h Ancho de la ventana (opcional) * @param string $int_w Alto de la ventana (opcional) * @param string $int_x Posición horizontal de la ventana (opcional) * @param string $int_y Posición vertical de la ventana (opcional) * @return object Instancia de html_a */ function addPopup($str_url, $str_image, $str_param = '', $str_image_text = '', $int_w = 0, $int_h = 0, $int_x = 0, $int_y = 0) { $link = html_a("#", ""); $link->add(html_img(Theme::getThemeImagePath($str_image), null, null, null, $str_image_text)); if ($str_param == '') { $path_action = Util::format_URLPath($str_url); } else { $path_action = Util::format_URLPath($str_url, $str_param); } $path_action = Util::format_URLPath($str_url, $str_param); $link->set_tag_attribute("onClick", "javascript:newWin('" . $path_action . "', " . $int_w . ", " . $int_h . ", " . $int_x . ", " . $int_y . ")"); return $link; }
/** * Este metodo construye el formulario en sí. */ function form() { //Inicializa campos $this->initialize(); //inicializa la tabla $table =& html_table($this->_width, 0, 0, 0); $table->set_class("mainInterfaceWidth"); //inicializa tabla detalle de la primera fila $detail_table =& html_table($this->_width, 0, 0, 0); $detail_table->set_class("mainInterfaceWidth"); //añade filas a la tabla detalle $this->add_class_row($detail_table, "Nombre"); $detail_table->add_row(html_td('ptabla02', '', agt('Apellido')), html_td('ptabla03', '', container($this->element_form("Primer Apellido"), $this->element_form("Segundo Apellido")))); $this->add_class_row($detail_table, "Ultima Modificacion"); $row = html_tr(); $row->set_class('ptabla03'); $img = Theme::getThemeImagePath("anonimo.jpg"); $image = html_td('', '', html_img($img, 90, 118)); $image->set_tag_attribute("width", "12%"); $image->set_tag_attribute("align", "center"); $row->add($image); $row->add($detail_table); $table->add($row); //Tabla de detalle $row = html_tr(); //añade filas a la tabla $this->add_class_row($table, "Quién soy"); $this->add_class_row($table, "Qué te puedo ofrecer"); $this->add_class_row($table, "Qué estoy dispuesto a aprender"); $this->add_class_row($table, "Páginas de interes"); $this->add_class_row($table, "Cita favorita"); $row = html_tr(); //$row->add("Politica de privacidad", "Los datos serán almacenados de forma segura y no se cederán a terceras partes."); $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); //añade el boton de guardar $table->add_row(_HTML_SPACE, $this->element_form("Aceptar")); return $table; }
function addProfileList() { //inicializa la tabla $table =& html_table($this->_width, 0, 0, 0); $table->set_class("mainInterfaceWidth"); $profiles = $this->getViewVariable('perfiles'); if ($profiles != null) { $row1 = html_tr(); $id = html_td('ptabla01', '', 'ID'); $id->set_tag_attribute("width", "5%"); $profile = html_td('ptabla01', '', 'Perfil'); $profile->set_tag_attribute("width", "25%"); $description = html_td('ptabla01', '', 'Descripción'); $description->set_tag_attribute("width", "50%"); $priority = html_td('ptabla01', '', 'Prioridad'); $priority->set_tag_attribute("width", "10%"); $newpriority = html_td('ptabla01', '', 'Nueva prioridad'); $newpriority->set_tag_attribute("width", "5%"); $cambiar = html_td('ptabla01', '', 'Modificar prioridad'); $cambiar->set_tag_attribute("width", "5%"); $eliminar = html_td('ptabla01', '', 'Eliminar'); $eliminar->set_tag_attribute("width", "5%"); //$row->add($id); $row1->add($profile); $row1->add($description); $row1->add($priority); $row1->add($newpriority); $row1->add($cambiar); $row1->add($eliminar); $table->add_row($row1); for ($i = 0; $i < count($profiles); $i++) { $rowN = html_tr(); $profileid = $profiles[$i]['profile.id_profile']; $pri = $profiles[$i]['profile.profile_priority']; $id = html_td('ptabla03', '', $profiles[$i]['profile.id_profile']); $id->set_tag_attribute("width", "0%"); $profile = html_td('ptabla03', '', $profiles[$i]['profile.profile_description']); $profile->set_tag_attribute("width", "25%"); $description = html_td('ptabla03', '', $profiles[$i]['profile.profile_notes']); $description->set_tag_attribute("width", "50%"); $priority = html_td('ptabla03', '', $profiles[$i]['profile.profile_priority']); $priority->set_tag_attribute("width", "10%"); $newpriority = html_td('ptabla03', 'center', $this->element_form("Nueva Prioridad {$i}")); $newpriority->set_tag_attribute("width", "5%"); //$img = html_img(Theme::getThemeImagePath("boton_red.gif")); //$url = html_a(Util::format_URLPath('profileManager/index.php',"submit=mod&id=".$profilepri."&val=".$valor),$img, 'ptabla03'); //$modificar = html_td('ptabla03', 'center', $url); $boton = $this->element_form("Modificar " . $i); $boton->set_tag_attribute("width", "5"); $modificar = html_td('ptabla03', 'center', $boton); $modificar->set_tag_attribute('align', 'center'); $modificar->set_tag_attribute("width", "1%"); $img = html_img(Theme::getThemeImagePath("boton_papelera.gif")); $url = html_a(Util::format_URLPath('profileManager/index.php', "submit=del&id=" . $profileid . "&pri=" . $pri), $img, 'ptabla03'); $eliminar = html_td('ptabla03', '', $url); $eliminar->set_tag_attribute('align', 'center'); $eliminar->set_tag_attribute("width", "5%"); //$row->add($id); $rowN->add($profile); $rowN->add($description); $rowN->add($priority); $rowN->add($newpriority); $rowN->add($modificar); $rowN->add($eliminar); $table->add_row($rowN); } } else { return null; } return $table; }
function add_mainMenu() { $div = html_div(''); $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('email/index.php', 'status=new'), agt('Enviar correo'), null, "_top"); $link->set_tag_attribute('class', ''); $item1 = html_td('', '', $link); $item1->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath('pageViewer/index.php', "url=contactos_alumno.htm"), agt('Contactos'), 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); $row->add($item3); $table->add_row($row); $div->add($table); return $div; }
/** * this function returns the contents * of the left block. It is already wrapped * in a TD * * @return HTMLTag object */ function left_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(); $table = html_table('', 0, 0, 0, ''); //$table = html_table('100%',0,0,0,'center'); //$table->set_class('toolbar'); $table->set_class('rollover'); //$table->set_id('barra'); $arr_elem = $this->_getBarrElements(); //$arr_elem = $this->_getBarrElementsbyFile(); $profile = $this->getSessionElement('userinfo', 'profile_id'); foreach ($arr_elem as $app => $params) { //Para acceso con gacl. Bloquada hasta versiones superiores. //if($this->checkAccess('miguel_VMenu', $params[0], 'profile', $profile)){ if ($this->checkAccess($params[0], $profile)) { if (strncmp($params[1], 'http://', 7) != 0) { $table->add_row($this->imag_alone(Util::format_URLPath($params[1], $params[2]), Theme::getThemeImagePath('menu/' . $params[3]), $params[4])); } else { $table->add_row($this->imag_alone($params[1], Theme::getThemeImagePath('menu/' . $params[3]), $params[4])); } } } $div->add($table); $ret_val->add($div); return $ret_val; }
function navigationBar() { $div = html_div(); $div->set_tag_attribute('valign', 'top'); $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0); $table->set_class('fondopagina'); $row = html_tr(); $space = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"))); //$space->set_tag_attribute('align', 'right'); $space->set_tag_attribute('width', '3%'); $image = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"))); $image->set_tag_attribute('align', 'right'); //$image->set_tag_attribute('width', '5%'); //$row->add(html_td('menubar', '', $this->_navBar())); //$table->add_row($this->_getServicesBar()); $state = html_td('banner', '', $this->_navBar()); $state->set_tag_attribute('width', '90%'); $state->set_tag_attribute('height', '20'); $state->set_tag_attribute('align', 'left'); $inicio = html_a(Util::format_URLPath("main/index.php"), "Inicio", null, "_top"); $inicio->set_tag_attribute('class', 'bannera'); $progress = html_td('banner', '', $inicio); $progress->set_tag_attribute('width', '5%'); //$row->add($space); //$row->add($image); $row->add($state); $row->add($progress); $table->add_row($row); $div->add($table); return $div; }
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; }
function right_block() { $ret_val = container(); $div = html_div(); $div->add(html_br()); $titulo = html_p('Tablón de anuncios'); $titulo->set_class('ptabla01'); $div->add($titulo); $status = $this->getViewVariable('status'); switch ($status) { case 'menu': default: $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 2, 2); $table->add_row(html_td('ptabla02', '', $this->icon_link(Util::format_URLPath('notice/index.php', 'status=new'), Theme::getThemeImagePath('boton_siguiente.gif'), 'Nuevo Mensaje'))); $table->add_row(html_td('ptabla02', '', $this->icon_link(Util::format_URLPath('notice/index.php', 'status=list'), Theme::getThemeImagePath('boton_siguiente.gif'), 'Ver Mensajes'))); $div->add($table); $ret_val->add($div); break; case 'new': $ret_val->add($div); $ret_val->add($this->addForm('notice', 'miguel_noticeForm')); break; case 'list': $notice_array = $this->getViewVariable('notice_array'); $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 2, 2); $table->add($this->add_noticeHead()); for ($i = 0; $i < count($notice_array); $i++) { $table->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($table); $ret_val->add($div); break; case 'show': $ret_val->add($this->add_noticeDetails()); break; } return $ret_val; }
function getUtilBar() { $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0); //Icono y bienvenida //NO CAMBIAR CLASE en elemento 1 $elem1 = html_td('fondopagina', '', html_img(Theme::getThemeImagePath("esquina.gif"), 37, 39)); $elem1->set_tag_attribute('width', '1%'); $elem1->set_tag_attribute('height', '39'); $elem2 = html_td('', '', $this->getNavBar()); $elem2->set_tag_attribute('width', '99%'); $elem2->set_tag_attribute('height', '39'); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); return $table; }
function addRadioButton($indexCheck, $variable, $status = '') { // $this->set_form_tabindex($element, $tab_index); $row = html_tr(); //$check = html_td('ptabla02', '', $this->element_form($element)); switch ($status) { case 'ok': $img = Theme::getThemeImagePath('rcorrecta.gif'); break; case 'ko': $img = Theme::getThemeImagePath('rincorrecta.gif'); break; default: $img = Theme::getThemeImagePath('invisible.gif'); } $element =& $this->get_element($variable); $td_radio = html_td('ptabla02', '', $element->get_element($indexCheck, true, $img)); $row->add($td_radio); return $row; }
function right_section() { $div = html_div(); $div->set_id('content'); $div->add(html_br()); $status = $this->getViewVariable('status'); switch ($status) { case 'new_post': $div->add($this->addForm('discuss', 'miguel_newPostForm')); break; case 'new': $div->add($this->addForm('discuss', 'miguel_newTopicForm')); break; case 'list_topic': $div->add($this->addTopicList()); break; case 'list_post': $div->add($this->processListPost()); break; case 'norm': $div->add($this->addForumNormative()); break; case 'topic': default: $div->add($this->addForumDescription()); } $div->add(html_br()); $div->add(html_img(Theme::getThemeImagePath("hr01.gif"), 400, 15)); $div->add(html_br(2)); return $div; }
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("pageViewer/index.php", 'url=agenda_tareas_pendientes.htm'), agt('Tareas pendientes'), null, "_top"); $link->set_tag_attribute('class', ''); $item1 = html_td('', '', $link); $item1->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("pageViewer/index.php", 'url=agenda_calendario.htm'), agt('Calendario'), null, "_top"); $link->set_tag_attribute('class', ''); $item2 = html_td('', '', $link); $item2->set_tag_attribute('width', '20%'); $link = html_a(Util::format_URLPath("contact/index.php"), agt('Contactos'), null, "_top"); $link->set_tag_attribute('class', ''); $item3 = html_td('', '', $link); $item3->set_tag_attribute('width', '20%'); $row->add($blank); $row->add($image); $row->add($item1); $row->add($item2); $row->add($item3); $table->add_row($row); $div->add($table); return $div; }
function main_block() { $table = html_table(Session::getContextValue("mainInterfaceWidth")); $table->set_tag_attribute('align', 'center'); //Cabecera $row0 = html_tr(); $item1 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta00.gif"), 42, 106)); $item1->set_tag_attribute('width', '1%'); $item1->set_tag_attribute('valign', 'top'); $row0->add($item1); $item2 = html_td('tituloalerta', '', $this->banner); $item2->set_tag_attribute('background', Theme::getThemeImagePath("fondo_alerta02.gif")); $item2->set_tag_attribute('width', '95%'); $item2->set_tag_attribute('valign', 'middle'); $row0->add($item2); $item3 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta03.gif"), 40, 106)); $item3->set_tag_attribute('width', '4%'); $item3->set_tag_attribute('valign', 'top'); $row0->add($item3); //$table->add_row($row0); //Cuerpo $row1 = html_tr(); $item11 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta04.gif"), 42, 106)); $item11->set_tag_attribute('width', '1%'); $item11->set_tag_attribute('valign', 'top'); //$row1->add($item11); $row1->add(html_td('ptexto01', '', $this->text)); $item13 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta05.gif"), 40, 106)); $item13->set_tag_attribute('width', '4%'); $item13->set_tag_attribute('valign', 'top'); //$row1->add($item13); $table->add_row($row1); $row2 = html_tr(); $item21 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta04.gif"), 42, 106)); $item21->set_tag_attribute('width', '1%'); $item21->set_tag_attribute('valign', 'top'); //$row2->add($item21); //Dejar así, no usar $this->addForm(), ya que el enlace se hace sin SID include_once Util::app_Path("common/view/classes/miguel_navform.class.php"); $boton = html_td('', '', new FormProcessor(new miguel_navForm(), 'reload', Util::main_URLPath('index.php'))); $row2->add($boton); $item23 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta05.gif"), 40, 106)); $item23->set_tag_attribute('width', '4%'); $item23->set_tag_attribute('valign', 'top'); //$row2->add($item23); $table->add_row($row2); //Pie $row9 = html_tr(); $item91 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta06.gif"), 42, 42)); //$item91->set_tag_attribute('width','1%'); $item91->set_tag_attribute('valign', 'top'); $row9->add($item91); $item92 = html_td('', '', _HTML_SPACE); $item92->set_tag_attribute('background', Theme::getThemeImagePath("fondo_alerta07.gif")); //$item92->set_tag_attribute('width','95%'); $item92->set_tag_attribute('valign', 'top'); $row9->add($item92); $item93 = html_td('', '', html_img(Theme::getThemeImagePath("fondo_alerta08.gif"), 40, 42)); //$item93->set_tag_attribute('width','4%'); $item93->set_tag_attribute('valign', 'top'); $row9->add($item93); //$table->add_row($row9); return $table; }
function add_catalogInfo($_name, $_surname, $_surname2, $_dni, $_user, $_phone, $_email, $_log) { $row = html_tr(); $link = $this->imag_alone(Util::format_URLPath('userManager/index.php', 'status=show&id=' . $_user . '&pid=' . $this->getViewVariable('pid')), Theme::getThemeImagePath('icono05.gif'), agt('Ver')); if ($_log) { $img_type = html_img(Theme::getThemeImagePath('conectado.gif'), 23, 20, 0); } else { $img_type = html_img(Theme::getThemeImagePath('desconectado.gif'), 23, 20, 0); } $conectado = html_td('', '', $img_type); //$link = _HTML_SPACE; $elem1 = html_td('ptabla03', '', $link); $elem1->set_tag_attribute('align', 'center'); $elem2 = html_td('ptabla03', '', agt($_name)); $elem3 = html_td('ptabla03', '', agt($_surname)); $elem4 = html_td('ptabla03', '', agt($_surname2)); $elem5 = html_td('ptabla03', '', agt($_dni)); $elem6 = html_td('ptabla03', '', agt($_user)); $elem7 = html_td('ptabla03', '', $img_type); $elem8 = html_td('ptabla03', '', agt($_phone)); $elem9 = html_td('ptabla03', '', agt($_email)); $elem1->set_tag_attribute('width', '2%'); $elem2->set_tag_attribute('width', '10%'); $elem3->set_tag_attribute('width', '10%'); $elem4->set_tag_attribute('width', '10%'); $elem5->set_tag_attribute('width', '8%'); $elem6->set_tag_attribute('width', '8%'); $elem7->set_tag_attribute('width', '2%'); $elem8->set_tag_attribute('width', '10%'); $elem9->set_tag_attribute('width', '40%'); $row->add($elem1); $row->add($elem2); $row->add($elem3); $row->add($elem4); $row->add($elem5); $row->add($elem6); $row->add($elem7); $row->add($elem8); $row->add($elem9); return $row; }
function right_section() { $div = html_div(); $status = $this->getViewVariable('status'); switch ($status) { case 'menu': default: $div->add($this->add_head()); $div->add(html_br()); //$div->add(html_hr()); $arrMessages = $this->getViewVariable('arrMessages'); $unreaded = count($arrMessages); //Si es 1 hay que mirar si no es nulo if ($unreaded == 1 && $arrMessages[0]['message.id'] == null) { $unreaded = 0; } $div->add($this->add_sectionHead('Mensajería ' . "({$unreaded})", 'modules/email.png')); $div->add($this->add_inbox()); $div->add(html_img(Theme::getThemeImagePath('hr01.gif'), 400, 15)); $div->add(html_br()); //$div->add(html_hr()); $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; } $div->add($this->add_sectionHead('Tablón de anuncios ' . "({$unreaded})", 'modules/announces.png')); $div->add($this->add_notices()); $div_line = html_div(); $div_line->set_tag_attribute('align', 'right'); $div_line->add(html_img(Theme::getThemeImagePath('hr02.gif'), 400, 15)); $div->add($div_line); break; } //$ret_val->add($div); return $div; }