示例#1
0
     include_lcm('inc_obj_case');
     // Note: If the user is looking at his/her cases, then list only those
     // If a user is looking at another users's cases, then list only public cases
     // If the admin is looking at another users's cases, then show all
     show_page_subtitle(_T('author_subtitle_cases', array('author' => get_person_name($author_data)), 'cases_participants'));
     $foo = get_date_range_fields();
     echo $foo['html'];
     $case_list = new LcmCaseListUI();
     if ($find_case_string = _request('find_case_string')) {
         $case_list->setSearchTerm($find_case_string);
     }
     // There is no UI for this at the moment XXX test
     $case_list->setDateInterval($foo['date_start'], $foo['date_end']);
     $case_list->setDataInt('id_author', $author);
     $case_list->setDataString('owner', 'my');
     $case_list->start();
     $case_list->printList();
     $case_list->finish();
     break;
     //
     // Author followups
     //
 //
 // Author followups
 //
 case 'followups':
     if (!allowed_author($author, 'r')) {
         die("Access denied");
     }
     show_page_subtitle(_T('author_subtitle_followups', array('author' => get_person_name($author_data))), 'cases_followups');
     $foo = get_date_range_fields();