/** * 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; }
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("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("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 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($this->_width, 0, 3); $table->set_class("mainInterfaceWidth"); //$table->set_style("border: 1px solid"); $row = html_tr('ptabla03'); $row->add(html_td('ptabla02', '', $this->element_label('Nombre de la carpeta')), html_td('ptabla03', '', $this->element_form('Nombre de la carpeta')), html_td('', '', $this->element_form("Crear"))); $table->add_row($row); //$table->add_row($this->element_form("Crear"), _HTML_SPACE); return $table; }
function add_info($_title, $_value) { $row = html_tr(); $item1 = html_td('ptabla02', '', $_title); $item2 = html_td('ptabla03', '', $_value); $item1->set_tag_attribute('width', '35%'); $item2->set_tag_attribute('width', '65%'); $row->add($item1); $row->add($item2); return $row; }
function form() { $table = html_table('50%', 0, 1, 3); $fila = html_tr(); $elem = html_td('color1-bg', 'left', $this->element_form('name'), $this->add_action('Editar perfil')); $elem->set_id('identification'); $fila->add($elem); $table->add_row($fila); unset($fila); unset($elem); return $table; }
function add_activity($title, $body, $id, $index) { $row = html_tr(); $lDelete = html_a(Util::format_URLPath('courseActivities/index.php', "status=delete&idi={$id}"), 'Eliminar'); $lUpdate = html_a(Util::format_URLPath('courseActivities/index.php', "status=showForm&index={$index}"), 'Modificar'); $tdLinks = html_td('ptabla03', '', $lDelete, $lUpdate); $title = html_td('ptabla02', '', $title); $body = html_td('ptabla03', '', $body); $row->add($title); $row->add($body); $row->add($tdLinks); return $row; }
function 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 construye el formulario en sí. */ function form() { $table =& html_table($this->_width, 0, 3); $table->set_class("mainInterfaceWidth"); //$table->set_style("border: 1px solid"); $table->add_row($this->_tableRow("Nombre")); $table->add_row($this->_tableRow("Descripción")); $table->add_row($this->_tableRow("URL")); //$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."); $table->add_row($row); $table->add_row($this->element_form("Cancelar"), $this->element_form("Aceptar"), _HTML_SPACE); return $table; }
function get_element() { $container = html_table('100%', 0, 0, 0); $row = html_tr(); $count = count($this->_data_list); for ($x = 0; $x <= $count - 1; $x++) { list($name, $value) = each($this->_data_list[$x]); $elem = container(); $elem->add($this->_get_index_element($x), html_br(), html_img($this->_img_list[$x])); $col = html_td('', '', $elem); $col->set_tag_attribute('align', 'center'); $row->add($col); } $container->add_row($row); return $container; }
/** * Este metodo construye el formulario en sí. */ function form() { $ret_val = container(); $table =& html_table($this->_width, 0, 0); $table->set_class("table100 main-info-cell"); $row = html_tr(""); $col1 = html_td(""); $col1->set_tag_attribute("align", "left"); $col1->add($this->element_form("Regresar")); $col2 = html_td(""); $col2->set_tag_attribute("align", "right"); $col2->add($this->element_form("Siguiente")); $row->add($col1, $col2); $table->add($row); $ret_val->add($table); return $ret_val; }
function main_block() { $main = html_div(); $main->set_id("content"); $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0); $table->set_class("simple"); //Centros $elem1 = html_td("color1-bg", "", $this->left_block()); $elem1->set_id("anonymous"); //Nombre del sitio web $elem2 = html_td("colorLogin-bg", "", $this->right_block()); $elem2->set_id("identification"); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); $main->add($table); return $main; }
function form() { $table =& html_table($this->_width, 0, 2, 2, 'center'); $row = html_tr(); $label = html_label("título"); $label->add(container(agt("Nombre del enlace"), _HTML_SPACE, $this->element_form('ptabla01'))); $elem1 = html_td('ptabla02', '', $label); $row->add($elem1); $label = html_label("enlace"); $label->add(container(agt("Dirección Web"), _HTML_SPACE, $this->element_form("enlace"))); $elem2 = html_td('ptabla02', '', $label); $row->add($elem2); $table->add_row($row); $row2 = html_tr(); $elem3 = html_td('ptabla02', '', $this->element_form("aceptar")); $elem3->set_tag_attribute('align', 'center'); $elem3->set_tag_attribute('colspan', '2'); $row2->add($elem3); $table->add_row($row2); return $table; }
function main_block() { $main = html_div(); $main->set_id('content'); $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0); $table->set_class('simple'); //Barra Herramientas if ($this->str_type == 'toolbar') { $elem1 = html_td('', '', $this->left_block()); //$elem1->set_id("anonymous"); //$elem1->set_tag_attribute('width', 40); //$elem1->set_tag_attribute('valign', 'top'); } //Principal $elem2 = html_td('toolmain', '', $this->right_block()); //$elem2->set_tag_attribute('valign', 'top'); //$elem2->set_id("identification"); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); $main->add($table); return $main; }
function add_Row($label, $value) { $row = html_tr(); //$row->set_class('ptabla01'); $title = html_td('ptabla02', "", agt($label)); $title->set_tag_attribute("width", "12%"); $value = html_td('ptabla03', "", $value); //$value->set_tag_attribute("width","90%"); $row->add($title); $row->add($value); 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 $main = container(); $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_class('simple'); $elem1 = html_td('', '', $this->left_section()); $elem1->set_tag_attribute('width', '20%'); $elem1->set_tag_attribute('valign', 'top'); $elem2 = html_td('', '', $this->right_section()); $elem2->set_tag_attribute('valign', 'top'); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); $main->add($table); return $main; }
function form() { $table = html_table($this->_width, 0, 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; }
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; }
/** * Este metodo construye el formulario en sí. */ function form() { $ret_val = container(); $table =& html_table($this->_width, 0, 2, 2); //$table->set_style("border: 1px solid"); $table->add_row(agt("Directorio local"), $this->element_form("miguel_appdir")); $table->add_row(agt("URL"), $this->element_form("miguel_urldir")); $table->add_row(agt("Directorio de phpHtmlLib"), $this->element_form("miguelbase_phphtmllib")); $table->add_row(agt("Directorio de ADOdb"), $this->element_form("miguelbase_adodb")); $table->add_row(agt("Cache interno"), $this->element_form("miguelbase_cacheable")); if ($this->getViewVariable('cache_bol')) { $table->add_row('* ' . agt("Directorio Cache"), $this->element_form("miguelbase_cache_dir")); $table->add_row('* ' . agt("Tiempo de Cache"), $this->element_form("miguelbase_cache_time")); } $table->add_row(agt("Sistema de LOG"), $this->element_form("miguelbase_log_active")); $table->add_row('* ' . agt("Tipo de LOG"), $this->element_form("miguelbase_log_type")); $table->add_row('* ' . agt("Fichero de LOG"), $this->element_form("miguelbase_log_file")); $table->add_row('* ' . agt("Tabla de LOG"), $this->element_form("miguelbase_log_table")); $table->add_row('* ' . agt("Nivel de LOG"), $this->element_form("miguelbase_log_level")); $table->add_row(agt("Directorio de Sessiones"), $this->element_form("miguelbase_session_dir")); $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("Siguiente")); $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() { $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; }
/** * Este metodo construye el formulario en sí. */ function form() { $table =& html_table($this->_width, 0, 3); $table->set_class("mainInterfaceWidth"); //$table->set_style("border: 1px solid"); $table->add_row($this->_tableRow("Tratamiento")); $table->add_row($this->_tableRow("Nombre")); $table->add_row($this->_tableRow("Apellido")); $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."); $table->add_row($row); $table->add_row($this->element_form("Cancelar"), $this->element_form("Aceptar"), _HTML_SPACE); return $table; }
/** * Este metodo construye el formulario en sí. */ function form() { //Inicializa campos $this->initialize(); //inicializa la tabla princuipal $table =& html_table($this->_width, 0, 0, 0); $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, "Nombre comercial"); $this->add_class_row($table, "Razón social"); $this->add_class_row($table, "Código"); $this->add_class_row($table, "CIF"); $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, "País"); $this->add_class_row($table, "Código postal"); $table->add_row(html_td('ptabla02', '', agt('Teléfonos')), html_td('ptabla03', '', container($this->element_form("Teléfono1"), $this->element_form("Teléfono2"), $this->element_form("Teléfono3")))); $this->add_class_row($table, "Fax"); $table->add_row(html_td('ptabla02', '', agt('E-mail')), html_td('ptabla03', '', container($this->element_form("Email1"), $this->element_form("Email2"), $this->element_form("Email3")))); $this->add_class_row($table, "Web"); $this->add_class_row($table, "Logotipo"); //inicializa tabla contacto $table_contact =& html_table($this->_width, 0, 0, 0); $table_contact->set_class("mainInterfaceWidth"); $row = html_tr(); $row->add(html_td('ptabla01', '', 'Persona de contacto')); $row->add(html_td('ptabla01', '', 'E-mail')); $row->add(html_td('ptabla01', '', 'Teléfono')); $table_contact->add_row($row); for ($i = 1; $i < 5; $i++) { $row = html_tr(); $row->add(html_td('ptabla03', '', container($this->element_form('persona contacto' . $i)))); $row->add(html_td('ptabla03', '', container($this->element_form('email contacto' . $i)))); $row->add(html_td('ptabla03', '', container($this->element_form('teléfono contacto' . $i)))); $table_contact->add_row($row); } $row = html_tr(); $row->add(html_td('ptabla02', '', 'Personas de contacto')); $row->add($table_contact); $table->add($row); /* //inicializa tabla cursos $table_course = &html_table($this->_width,0,0,0); $table_course->set_class("mainInterfaceWidth"); $row = html_tr(); $row->add(html_td('ptabla01', '', 'cursos')); $table_course->add_row($row); for($i=1;$i<4;$i++){ $row = html_tr(); $row->add(html_td('ptabla03', '', container($this->element_form('curso'.$i)))); $table_course->add_row($row); } $row = html_tr(); $row->add(html_td('ptabla02', '', 'cursos')); $row->add($table_course); $table->add($row); */ $this->add_class_row($table, "Observaciones"); //añade el boton de guardar $table->add_row(_HTML_SPACE); $table->add_row(_HTML_SPACE, $this->element_form("Registrar")); return $table; }
function right_block() { $main = container(); $main->add(html_br()); $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0); $table->set_class('simple'); $elem1 = html_td('', '', $this->left_section()); $elem1->set_tag_attribute('width', '20%'); $elem1->set_tag_attribute('valign', 'top'); $elem2 = html_td('', '', $this->right_section()); $elem2->set_tag_attribute('valign', 'top'); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); $main->add($table); return $main; }
/** * Define el formato de la cabecera * @access private */ function getNavBar() { $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0); $table->set_class('fecha'); $row = html_tr(); //$row->set_tag_attribute('valign', 'bottom'); $msg = html_td('', "", $this->str_message); $msg->set_tag_attribute('align', 'left'); $fecha = html_script(); $fecha->add('damefecha();'); $row->add($msg); $row->add(html_td('', '', $fecha)); $table->add_row($row); return $table; }
function right_block() { //Crea el contenedor del right_block $main = container(); if (!$this->issetViewVariable('status') || $this->getViewVariable('status') == 'list_topic' || $this->getViewVariable('status') == 'new') { $main->add($this->right_section()); } else { $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0); $table->set_class('simple'); $elem1 = html_td('', '', $this->left_section()); $elem1->set_tag_attribute('width', '20%'); $elem1->set_tag_attribute('valign', 'top'); $elem2 = html_td('', '', $this->right_section()); $elem2->set_tag_attribute('valign', 'top'); $row = html_tr(); $row->add($elem1); $row->add($elem2); $table->add_row($row); $main->add($table); } return $main; }
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 to output a month * * @access private * @return table object * */ function _DoMonth() { $data_table = html_table($this->width); // Get month and year $month = date('m', $this->_date); $year = date('Y', $this->_date); $daysInMonth = $this->_getDaysInMonth($month, $year); $first = date('w', mktime(12, 0, 0, $month, 1, $year)); $monthName = strftime('%b', $this->_date); if (!$this->_ShowYear) { $header = ucfirst("{$monthName} {$year}"); } else { $header = ucfirst("{$monthName}"); } // Setting the previous & next month $prev = mktime(0, 0, 0, $month - 1, 1, $year); $next = mktime(0, 0, 0, $month + 1, 1, $year); // Extracting query string if (isset($_SERVER['QUERY_STRING'])) { if (substr($_SERVER['QUERY_STRING'], 0, 12) == 'CalendarDate') { $query_string = substr($_SERVER['QUERY_STRING'], 23); } else { if ($_SERVER['QUERY_STRING'] != '') { $query_string = '&' . $_SERVER['QUERY_STRING']; } } } // Setting up link $prevMonth = $_SERVER['PHP_SELF'] . "?CalendarDate={$prev}" . $query_string; $nextMonth = $_SERVER['PHP_SELF'] . "?CalendarDate={$next}" . $query_string; // Add header $data_table->set_class('PHP_calendar'); $data_table->set_default_col_attributes(array('align' => 'center')); $t_td = html_td('PHP_calendarHeader', 'center', $header); if (!$this->_ShowYear) { $t_td->set_tag_attributes(array('colspan' => 5)); $data_table->add_row(html_td('PHP_calendarHeader', NULL, html_a($prevMonth, '<<')), $t_td, html_td('PHP_calendarHeader', NULL, html_a($nextMonth, '>>'))); } else { $t_td->set_tag_attributes(array('colspan' => 7)); $data_table->add_row($t_td); } $t_tr = html_tr('PHP_calendarHeaderWeekdays', html_td(NULL, 'center', $this->_DayNames[$this->StartDay % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 1) % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 2) % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 3) % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 4) % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 5) % 7]), html_td(NULL, 'center', $this->_DayNames[($this->StartDay + 6) % 7])); $data_table->add_row($t_tr); // We need to work out what date to start at so that the first appears in the correct column $d = $this->StartDay + 1 - $first; while ($d > 1) { $d -= 7; } // Make sure we know when today is, so that we can use a different CSS style $today = getdate(mktime()); while ($d <= $daysInMonth) { $t_row = html_tr(); for ($i = 0; $i < 7; $i++) { if ($year == $today['year'] && $month == $today['mon'] && $d == $today['mday']) { $class = 'PHP_calendarToday'; } else { $class = 'PHP_calendar'; } if ($d > 0 && $d <= $daysInMonth) { //$link = $this->GetLink(mktime(0,0,0,$month,$d,$year)); $link = $this->GetLink($d, $month, $year); // checking if event if ($this->DayIsEvent(mktime(0, 0, 0, $month, $d, $year))) { $class .= 'Event'; } if ($link != NULL) { $objLink = html_a($link, $d); $objLink->set_tag_attribute('target', 'parent_popup'); //$objLink->set_tag_attribute('onMouseUp', 'window.close()'); $t_row->add(html_td("{$class}", 'center', $objLink)); } else { $t_row->add(html_td("{$class}", 'center', $d)); } } else { $t_row->add(' '); } $d++; } $data_table->add_row($t_row); } return $data_table; }
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; }