Ejemplo n.º 1
0
     // set font
     $pdf->SetFont('times', '', 10);
     // add a page
     $pdf->AddPage();
     // Create table object for display
     $table = new HtmlTable('adm_lists_table', $pdf, $hoverRows, $datatable, $classTable);
     $table->addAttribute('border', '1');
 } elseif ($getMode === 'html') {
     $datatable = true;
     $hoverRows = true;
     // create html page object
     $page = new HtmlPage();
     if ($getFullScreen) {
         $page->hideThemeHtml();
     }
     $page->setTitle($title);
     $page->setHeadline($headline);
     // Only for active members of a role
     if ($getShowMembers === 0) {
         // create filter menu with elements for start-/enddate
         $filterNavbar = new HtmlNavbar('menu_list_filter', null, null, 'filter');
         $form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/lists/lists_show.php', $page, array('type' => 'navbar', 'setFocus' => false));
         $form->addInput('date_from', $gL10n->get('LST_ROLE_MEMBERSHIP_IN_PERIOD'), $dateFrom, array('type' => 'date', 'maxLength' => 10));
         $form->addInput('date_to', $gL10n->get('LST_ROLE_MEMBERSHIP_TO'), $dateTo, array('type' => 'date', 'maxLength' => 10));
         $form->addInput('lst_id', '', $getListId, array('property' => FIELD_HIDDEN));
         $form->addInput('rol_ids', '', $getRoleIds, array('property' => FIELD_HIDDEN));
         $form->addInput('show_members', '', $getShowMembers, array('property' => FIELD_HIDDEN));
         $form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
         $filterNavbar->addForm($form->show(false));
         $page->addHtml($filterNavbar->show(false));
     }