header('Content-type: text/html; charset=iso-8859-1');
$sTime = explode(' ', microtime());
require_once "config.php";
/* TODO
- teksten pages bekijken
- spam uw super
- grafiek wisselen met tekst voor graph_img
- als gefilterd dan geen graph_img
- welke velden weergeven per totaal / groep van samples & bestrijdingsmiddelen?
- bestrijdingsm. presentatie goed nakijken
- REQUEST filter controleren
- security check
- online Groente en Fruitwijzer met dynamische data van slechtste & beste supermarkten + G&F.
- wwje meer_informatie.html moet ook herladen in frames
- iets over som perc_ARfD per product ivm combitox?
- alles in $lang...
- lijn om 100% en %gezondheidsoverschrijding te scheiden (ook apart?)
- utf8 of latin1?? (kan jpgraph met utf8 overweg?)
*/
//MAIN
if ($admin) {
require_once "$include_path/admin.inc";
admin();
}
if ($_REQUEST['presets_show']) {
$template['results'] = selectionList('Belangrijkste overzichten', $presets, 'presets', $url_preset, 1, 1, 0) . $template['results'];
$_REQUEST['page'] = 'results';
}
else
$template['presets'] .= '
';
}
if ($overview['show_full_text']) {
$template['selection'] .= 'Snelzoeken: ' . '';
$template['selection'] .= '';
};
if ($overview['show_group'])
$template['selection'] .= selectionList('Bekijk per', $groups, 'group', $url_group, 1, 0, 1);
if ($overview['show_company_filter'])
$template['selection'] .= selectionList('Gemeten bij', $company_filters, 'company_filter', $url_company_filter, 1, 0, 1);
if ($overview['show_countries'])
$template['selection'] .= selectionList($lang['country_of_origin'], $countries, 'countries', $url_countries, 1, 0, 1);
if ($overview['show_products'])
$template['selection'] .= selectionList($lang['products'], $products, 'products', $url_products, 1, 0, 1);
if ($overview['show_order'])
$template['selection'] .= selectionList('Sorteer op', $orders, 'order', $url_order, 1, 0, 1);
if ($overview['show_sort_order'])
$template['selection'] .= selectionList('Volgorde', $sort_orders, 'sort_order', $url_sort_order, 1, 0, 1);
if ($overview['show_year']) {
$sort_years = $years;
krsort($sort_years);
$template['selection'] .= selectionList('Jaar', $sort_years, 'year', $url_year, 1, 0, 1);
}
if ($overview['show_months'])
$template['selection'] .= selectionList('Maand', $months, 'month', $url_month, 1, 0, 1);
if ($overview['filter'])
$template['selection'] .= selectionList('Weergeven', $filters, 'filter', $url_filter, 1, 0, 1);
//$template['selection'] .= '';
$template['selection'] .= '';
if ($overview['show_sub_group'])
$template['selection'] .= selectionList('Groepeer per '.strtolower($groups[$_REQUEST['group']]).' op', $sub_groups, 'sub_group', $url_sub_group, 1, 0, 1);
if ($overview['lim'])
// $template['selection'] .= selectionList('Aantal resultaten', $limits, 'limit', $url_limit, 1, 0, 1);
$template['selection'] .= selectionList('Aantal ' . $groups_plural[$_REQUEST['sub_group']], $limits, 'limit', $url_limit, 1, 0, 1);
if ($overview['sub_order'])
$template['selection'] .= selectionList('Sorteer ' . $groups_plural[$_REQUEST['sub_group']] . ' op', $sub_orders, 'sub_order', $url_sub_order, 1, 0, 1);
$template['selection'] .= '';
if ($overview['show_filter_group'])
$template['selection'] .= selectionList('Groepfilter', $filter_group, 'filter_group', $url_filter_group, 1, 0, 1);
if ($overview['show_filter_sub_group'])
$template['selection'] .= selectionList('Subgroepfilter', $filter_sub_group, 'filter_sub_group', $url_filter_sub_group, 1, 0, 1);
if ($overview['show_table'])
$template['selection'] .= selectionList('Tabel', $tables, 'table', $url_table, 1, 0, 1);
if ($overview['show_samples'])
$template['selection'] .= selectionList('Minimaal aantal metingen', $samples, 'samples', $urls['samples'], 1, 0, 1).'';
if ($overview['show_select_adv']) {
// $template['selection'] .= selectionList('Selectie opties:', $select_adv, 'opt_select_adv', $urls['opt_select_adv'], 1, 0, 1);
$txt = $_REQUEST['opt_select_adv'] ? $lang['def_options'] : $lang['adv_options'];
$template['selection'] .= ''.$txt.'';
}
// $template['selection'] .= ' Zoektips';
// $template['selection'] = divHTML('selection', 'Klik hier om uw eigen selectie te maken', "Klik hier om uw eigen selectie te maken", $template['selection'], $overview['show_select'], 0, 'ico_form.gif', "Dubbelklik om de selectieopties te verbergen", 'dynCon');
$template['selection'] = ''.divHTML('selection', 'Eigen selectie...', "Klik hier om uw eigen selectie te maken", $template['selection'], $overview['show_select'], 0, 'ico_form.gif', "Dubbelklik om de selectieopties te verbergen", 'dynCon');
// $template['selection'] .= '';
// $template['selection'] = divHTML('selection', '
Klik hier om uw eigen selectie te maken ', "Klik hier om uw eigen selectie te maken", $template['selection'], $overview['show_select'], 0, 'ico_form.gif', "Dubbelklik om de selectieopties te verbergen", 'dynCon') . '