/**
  * 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();
     $titulo = html_p("Nuevo Contacto");
     $titulo->set_tag_attribute('class', 'ptabla01');
     $ret_val->add($titulo);
     $ret_val->add($this->addForm('contact', 'miguel_contactForm'));
     return $ret_val;
 }
 function right_block()
 {
     $div = html_div();
     $titulo = html_p(agt('miguel_ContactDetail'));
     $titulo->set_tag_attribute('class', 'ptabla01');
     $div->add($titulo);
     $div->add($this->_contactDetail());
     return $div;
 }
 function right_block()
 {
     $ret_val = container();
     $div = html_div();
     $titulo = html_p(agt('miguel_NewCourse'));
     $titulo->set_tag_attribute('class', 'ptabla01');
     $div->add($titulo);
     $div->add($this->addForm('newCourse', 'miguel_newCourseForm'));
     $ret_val->add($div);
     return $ret_val;
 }
 function _block()
 {
     include_once Util::app_Path("common/view/classes/miguel_navform.class.php");
     $ret_val = container();
     $titulo = html_h4('Ha salido correctamente de la aplicación');
     $titulo->set_tag_attribute('class', 'ptexto01');
     $msg = html_p('Para continuar trabajando en este Campus debe regresar a la página de inicio y acceder de nuevo.');
     $msg->set_tag_attribute('class', 'ptexto01');
     $ret_val->add($titulo);
     $ret_val->add($msg);
     //Dejar así, no usar  $this->addForm(), ya que el enlace se hace sin SID
     $ret_val->add(new FormProcessor(new miguel_navForm(), 'reload', Util::main_URLPath('index.php')));
     return $ret_val;
 }
 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 add_catalogo()
 {
     $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0);
     $arr_data = $this->getViewVariable('arrUsers');
     //Debug::oneVar($arr_data, __FILE__, __LINE__);
     if ($arr_data[0]['person_name'] != null) {
         //Titulo de tabla
         $row = html_tr();
         $row->set_class('ptabla02');
         $elem0 = html_td('ptabla02', "", _HTML_SPACE);
         $elem0->set_tag_attribute('align', 'center');
         $elem1 = html_td('ptabla02', "", html_p(agt('Nombre')));
         $elem1->set_tag_attribute('align', 'center');
         $elem2 = html_td('ptabla02', "", html_p(agt('Apellido')));
         $elem2->set_tag_attribute('align', 'center');
         $elem3 = html_td('ptabla02', "", _HTML_SPACE);
         $elem3->set_tag_attribute('align', 'center');
         $elem4 = html_td('ptabla02', "", html_p(agt('DNI')));
         $elem4->set_tag_attribute('align', 'center');
         $elem5 = html_td('ptabla02', "", html_p(agt('Usuario')));
         $elem5->set_tag_attribute('align', 'center');
         $elem6 = html_td('ptabla02', "", _HTML_SPACE);
         $elem6->set_tag_attribute('align', 'center');
         $elem7 = html_td('ptabla02', "", html_p(agt('Teléfono')));
         $elem7->set_tag_attribute('align', 'center');
         $elem8 = html_td('ptabla02', "", html_p(agt('E-mail')));
         $elem8->set_tag_attribute('align', 'center');
         $row->add($elem0);
         $row->add($elem1);
         $row->add($elem2);
         $row->add($elem3);
         $row->add($elem4);
         $row->add($elem5);
         $row->add($elem6);
         $row->add($elem7);
         $row->add($elem8);
         $table->add($row);
         for ($i = 0; $i < count($arr_data); $i++) {
             //Debug::oneVar($arrMessages[$i], __FILE__, __LINE__);
             $table->add($this->add_catalogInfo($arr_data[$i]['person_name'], $arr_data[$i]['person_surname'], $arr_data[$i]['person_surname2'], $arr_data[$i]['person_dni'], $arr_data[$i]['user_alias'], $arr_data[$i]['phone'], $arr_data[$i]['email'], $arr_data[$i]['is_logged']));
         }
     } else {
         $table->add(html_td('ptabla02', '', agt('No existen usuarios con este perfil')));
     }
     return $table;
 }
 /**
  * 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 add_reference()
 {
     $table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0);
     $arr_data = $this->getViewVariable('arrReference');
     //Debug::oneVar($arr_data, __FILE__, __LINE__);
     if ($arr_data[0]['book_id'] != null) {
         //Titulo de tabla
         $row = html_tr();
         $row->set_class('ptabla02');
         $resum = html_td('ptabla02', "", html_p(agt('Resumen')));
         $resum->set_tag_attribute('align', 'center');
         $title = html_td('ptabla02', "", html_p(agt('Referencia')));
         $title->set_tag_attribute('align', 'center');
         $value = html_td('ptabla02', "", html_p(agt('Valoración')));
         $value->set_tag_attribute('align', 'center');
         $row->add($title);
         $row->add($resum);
         $row->add($value);
         $table->add($row);
         for ($i = 0; $i < count($arr_data); $i++) {
             //Debug::oneVar($arrMessages[$i], __FILE__, __LINE__);
             $table->add($this->add_referenceInfo($arr_data[$i]['book_id'], $arr_data[$i]['title'], $arr_data[$i]['valoracion']));
         }
     } else {
         $table->add(html_td('ptabla02', '', 'El catálogo está vacio'));
     }
     return $table;
 }
 function addHeadTopic(&$div)
 {
     $topicInfo = $this->getViewVariable('topicInfo');
     $strForumName = $topicInfo[0]['forum.forum_name'];
     $pTopicTitle = html_p(agt('Mensaje') . ': ' . $topicInfo[0]['forum_topic.forum_topic_title']);
     $pTopicTitle->set_class('ptabla01');
     /*
     $id_forum = $this->getViewVariable('id_forum');
     $aTitulo = html_a(Util::format_URLPath('discuss/index.php',"status=list_topic&id_forum=$id_forum"),html_b($strForumName));
     $aTitulo->set_class('ptabla03');
     $div->add($aTitulo);
     $div->add(html_br());
     */
     $div->add($pTopicTitle);
 }
 function addDocumentTitle()
 {
     $folder_parent_id = $this->getViewVariable('folder_parent_id');
     if ($folder_parent_id != 0) {
         $link = $this->imag_alone(Util::format_URLPath('filemanager/index.php', "folder_id={$folder_parent_id}"), Theme::getThemeImagePath('filemanager/parentdir.png'), agt('Subir'), 15, 12);
     } else {
         $link = _HTML_SPACE;
     }
     //Titulo de tabla
     $row = html_tr();
     $row->set_class('ptabla02');
     $elem1 = html_td('ptabla02', "", $link);
     $elem2 = html_td('ptabla02', "", html_p(agt('Tipo')));
     $elem3 = html_td('ptabla02', "", html_p(agt('Nombre')));
     $elem4 = html_td('ptabla02', "", html_p(agt('Fecha')));
     $elem5 = html_td('ptabla02', "", html_p(agt('Autor')));
     $elem6 = html_td('ptabla02', "", html_p(agt('Descargas')));
     $elem7 = html_td('ptabla02', "", html_p(agt('Tamaño')));
     $elem8 = html_td('ptabla02', "", _HTML_SPACE);
     $elem9 = html_td('ptabla02', "", _HTML_SPACE);
     $elem10 = html_td('ptabla02', "", _HTML_SPACE);
     $elem11 = html_td('ptabla02', "", _HTML_SPACE);
     $elem12 = html_td('ptabla02', "", _HTML_SPACE);
     $elem13 = html_td('ptabla02', "", _HTML_SPACE);
     $elem14 = html_td('ptabla02', "", _HTML_SPACE);
     $elem1->set_tag_attribute('width', '1%');
     $elem2->set_tag_attribute('width', '1%');
     $elem3->set_tag_attribute('width', '20%');
     $elem4->set_tag_attribute('width', '10%');
     $elem5->set_tag_attribute('width', '20%');
     $elem6->set_tag_attribute('width', '5%');
     $elem7->set_tag_attribute('width', '5%');
     $elem8->set_tag_attribute('width', '1%');
     $elem9->set_tag_attribute('width', '1%');
     $elem10->set_tag_attribute('width', '1%');
     $elem11->set_tag_attribute('width', '1%');
     $elem12->set_tag_attribute('width', '1%');
     $elem13->set_tag_attribute('width', '1%');
     $elem14->set_tag_attribute('width', '1%');
     $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);
     $row->add($elem10);
     $row->add($elem11);
     $row->add($elem12);
     $row->add($elem13);
     $row->add($elem14);
     return $row;
 }
Beispiel #11
0
 /**
  * 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($this->getPurgeMessage(), html_br()));
     $table->add_row($msg);
     $table->add_row($this->element_form($this->getPurgeLabel()));
     $this->add_form_block(null, $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();
     //Añade una imagen del tema
     //$div->add(Theme::getThemeImage('modules/agenda.png'));
     //Incluimos texto en negrita
     $titulo = html_p('Agenda del Curso');
     $titulo->set_class('ptabla01');
     $div->add($titulo);
     //Ahora dos retornos de carro
     //$ret_val->add($div);
     //$div = html_div('medium-text');
     $status = $this->getViewVariable('status');
     switch ($status) {
         case 'show':
             $tableTask = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 2, 2);
             $tableTask->add($this->add_head());
             $tableTask->add($this->show_Details($this->getViewVariable('event'), $this->getViewVariable('subject'), $this->getViewVariable('dt_ini'), false));
             $div->add($tableTask);
             $ret_val->add($div);
             break;
             /*		case 'menu':
             				//$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=new'), 
             					//		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Nuevo_Evento')));
             				//$div->add(html_br(2));
             				//$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=list'), 
             					//		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Ver_Eventos')));
             				//$div->add(html_br(2));
             				$pNew = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=new'),'Nuevo Evento'));
             				$pNew->set_class('ptabla03');
             				$pShow = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=list'),'Ver Eventos'));
             				$pShow->set_class('ptabla03');
             				$div->add($pNew);
             				$div->add($pShow);
             				$ret_val->add($div);
             				break;					
             		*/
         /*		case 'menu':
         				//$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=new'), 
         					//		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Nuevo_Evento')));
         				//$div->add(html_br(2));
         				//$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=list'), 
         					//		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Ver_Eventos')));
         				//$div->add(html_br(2));
         				$pNew = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=new'),'Nuevo Evento'));
         				$pNew->set_class('ptabla03');
         				$pShow = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=list'),'Ver Eventos'));
         				$pShow->set_class('ptabla03');
         				$div->add($pNew);
         				$div->add($pShow);
         				$ret_val->add($div);
         				break;					
         		*/
         case 'new':
         case 'list':
         case 'delete':
         default:
             $div->add($this->add_main_window());
             $ret_val->add($div);
             break;
     }
     return $ret_val;
 }
 /**
  * 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/agenda.png'));
     //Incluimos texto en negrita
     $titulo = html_p('Agenda del Curso');
     $titulo->set_class('ptabla01');
     $div->add($titulo);
     //Ahora dos retornos de carro
     //$ret_val->add($div);
     //$div = html_div('medium-text');
     $status = $this->getViewVariable('status');
     switch ($status) {
         case 'new':
             $pTitulo = html_p('Alta de evento');
             $pTitulo->set_class('ptabla01');
             $ret_val->add($pTitulo);
             $ret_val->add($this->addForm('calendar', 'miguel_calendarForm'));
             break;
         case 'show':
             $ret_val->add($this->show_Details($this->getViewVariable('calendar'), $this->getViewVariable('course'), $this->getViewVariable('event'), $this->getViewVariable('subject'), $this->getViewVariable('content'), $this->getViewVariable('dt_ini'), $this->getViewVariable('dt_fin'), false));
             break;
         case 'menu':
             //$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=new'),
             //		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Nuevo_Evento')));
             //$div->add(html_br(2));
             //$div->add($this->icon_link(Util::format_URLPath('calendar/index.php', 'status=list'),
             //		Theme::getThemeImagePath('modules/agenda.png'), agt('miguel_Ver_Eventos')));
             //$div->add(html_br(2));
             $pNew = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=new'), 'Nuevo Evento'));
             $pNew->set_class('ptabla03');
             $pShow = html_p(html_a(Util::format_URLPath('calendar/index.php', 'status=list'), 'Ver Eventos'));
             $pShow->set_class('ptabla03');
             $div->add($pNew);
             $div->add($pShow);
             $ret_val->add($div);
             break;
         case 'list':
         default:
             $calendar_array = $this->getViewVariable('calendar_array');
             for ($i = 0; $i < count($calendar_array); $i++) {
                 $div->add($this->show_Details($calendar_array[$i]['calendar'], $calendar_array[$i]['course'], $calendar_array[$i]['event_type'], $calendar_array[$i]['subject'], $calendar_array[$i]['content'], $calendar_array[$i]['dt_ini'], $calendar_array[$i]['dt_fin'], true));
                 $div->add(html_br(2));
             }
             $ret_val->add($div);
             break;
     }
     return $ret_val;
 }