Exemplo n.º 1
0
 $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&nbsp;<i class="glyphicon glyphicon-edit"></i></th><th>View page&nbsp;<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">&nbsp;Delete</span></a><a class="btn btn-success btn-xs item_delete_done"><i class="glyphicon glyphicon-ok"></i><span class="hidden-xs">&nbsp;Done</span></a></th></tr></thead><tbody>';
     foreach ($oa_pages as $o_page) {
         //
         // get data
         //
         $s_id = urldecode($o_page->id);
         $s_title = urldecode($o_page->title);
         $s_oncology = urldecode($o_page->oncology);
         $s_url = urldecode($o_page->url);
         $s_author = urldecode($o_page->author);
         $s_date_modified = urldecode($o_page->date_modified);
         $s_published = urldecode($o_page->published) === "true" ? '<i class="green glyphicon glyphicon-ok"></i>' : '<i class="red glyphicon glyphicon-remove"></i>';
         //
         // sanitise data if necessary