case 'edit': $s_oncology_id = $ufUf->s_get_var('id', false); # menu items; purge from cache, preview, regenerate, delete if ($s_oncology_id) { # get the oncology data $json_oncology = $flot->datastore->get_oncology_data($s_oncology_id); # render a form $Oncology = new oncology($json_oncology); $html_main_admin_content .= $Oncology->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 ?) $oa_oncologies = $flot->oa_oncologies(); $hmtl_pages_ui = ""; $hmtl_pages_ui .= '<a class="btn btn-default btn-sm" href="' . S_BASE_EXTENSION . 'flot-admin/admin/index.php?section=oncologies&action=new"><i class="glyphicon glyphicon-plus"></i> add a new page type</a><hr/>'; $hmtl_pages_ui .= '<div class="alert alert-info">Page types are individually defined templates to make webpages from.</div>'; if (count($oa_oncologies) > 0) { $hmtl_pages_ui .= '<table id="admin_table_list" class="table table-hover"><thead><tr><th>Edit page type <i class="glyphicon glyphicon-edit"></i></th><th>#Instances</th><th><a class="btn btn-danger btn-xs item_delete_start"><i class="glyphicon glyphicon-trash"></i> Delete</a><a class="btn btn-success btn-xs item_delete_done"><i class="glyphicon glyphicon-ok"></i> Done</a></th></tr></thead><tbody>'; foreach ($oa_oncologies as $o_oncology) { // // get data // $s_id = urldecode($o_oncology->id); $s_title = urldecode($o_oncology->title); $s_editable = urldecode($o_oncology->editable); $s_link = $s_title; $s_deletable_link = ''; $s_disabled = ' disabled';