$o_item = $flot->datastore->get_item_data($s_page_id); $o_full_item = $flot->datastore->o_get_full_item($s_page_id); # get the oncology # render a form $Item = new Item($o_item); $Item->_set_full_item($o_full_item); $html_main_admin_content .= $Item->html_edit_form(); // make left menu smaller, to give more focus to editing $s_body_class = "smaller_left"; } break; case 'list': # list all pages that can be edited (pagination ?) $odOD = new OncologyData(); $s_oncology_filter = $ufUf->s_get_var('oncology', false); $oa_pages = $flot->oa_pages(); if ($s_oncology_filter !== false) { // filter pages retrieved to be of the right page type $oa_filtered_pages = array(); foreach ($oa_pages as $page) { $s_oncology_id = urldecode($page->oncology); if ($s_oncology_id === $s_oncology_filter) { array_push($oa_filtered_pages, $page); } } $oa_pages = $oa_filtered_pages; } $hmtl_pages_ui = ""; $hmtl_pages_ui .= '' . $admin_ui->html_make_page_add_button() . '<div class="btn-group"><a class="btn btn-default btn-sm" href="' . S_BASE_EXTENSION . 'flot-admin/admin/index.php?section=flot&action=regenerate"><i class="glyphicon glyphicon-refresh"></i> regenerate all pages</a></div><hr/>'; if (count($oa_pages) > 0) { $hmtl_pages_ui .= '<table id="admin_table_list" class="table table-hover"><thead><tr><th>Edit page <i class="glyphicon glyphicon-edit"></i></th><th>View page <i class="glyphicon glyphicon-new-window"></i></th><th class="hidden-xs hidden-sm">page type</th><th class="hidden-xs hidden-sm">last changed</th><th class="hidden-xs hidden-sm">author</th><th>published</th><th><a class="btn btn-danger btn-xs item_delete_start"><i class="glyphicon glyphicon-trash"></i><span class="hidden-xs"> Delete</span></a><a class="btn btn-success btn-xs item_delete_done"><i class="glyphicon glyphicon-ok"></i><span class="hidden-xs"> Done</span></a></th></tr></thead><tbody>';