$searchForm->setup(); $searchForm->xtpl->assign('MODULES', get_select_options_with_id($reportModules, empty($_REQUEST['report_module']) ? '' : $_REQUEST['report_module'])); $searchForm->xtpl->assign('USER_FILTER', get_select_options_with_id(get_user_array(FALSE), empty($_REQUEST['assigned_user_id']) ? '' : $_REQUEST['assigned_user_id'])); $searchForm->xtpl->assign('TEAM_FILTER', get_select_options_with_id(get_team_array(FALSE), empty($_REQUEST['team_id']) ? '' : $_REQUEST['team_id'])); $searchForm->xtpl->assign('REPORT_TYPES', get_select_options_with_id($app_list_strings['dom_report_types'], empty($_REQUEST['report_type']) ? '' : $_REQUEST['report_type'])); $searchForm->xtpl->assign('FAVORITE', isset($_REQUEST['favorite']) ? 'checked' : ''); $searchForm->displayBasic(false); break; case 'advanced_search': $searchForm->setup(); $searchForm->xtpl->assign('MODULES', get_select_options_with_id($reportModules, empty($_REQUEST['report_module']) ? '' : $_REQUEST['report_module'])); $searchForm->xtpl->assign('USER_FILTER', get_select_options_with_id(get_user_array(FALSE), empty($_REQUEST['assigned_user_id']) ? '' : $_REQUEST['assigned_user_id'])); $searchForm->xtpl->assign('TEAM_FILTER', get_select_options_with_id(get_team_array(FALSE), empty($_REQUEST['team_id']) ? '' : $_REQUEST['team_id'])); $searchForm->xtpl->assign('REPORT_TYPES', get_select_options_with_id($app_list_strings['dom_report_types'], empty($_REQUEST['report_type']) ? '' : $_REQUEST['report_type'])); $searchForm->xtpl->assign('FAVORITE', isset($_REQUEST['favorite']) ? 'checked' : ''); $searchForm->displayAdvanced(false, false, $listViewDefsNewArray, $lv); echo "<script>if(typeof(loadSSL_Scripts)=='function'){\n\t\tloadSSL_Scripts();\n\t}</script>"; break; case 'saved_views': echo $searchForm->displaySavedViews($listViewDefsNewArray, $lv, false); break; } return; } if (!empty($_REQUEST['view'])) { // backwards compatibility support for menu links from other modules array_push($where_clauses, 'saved_reports.module = \'' . ucwords(clean_string($_REQUEST['view'])) . '\''); } if (!empty($_REQUEST['favorite'])) { // handle favorite requests foreach ($where_clauses as $p_where => $single_where) {