Beispiel #1
0
    $topsearchtermselect .= '<option value="_' . htmlspecialchars($term['term']) . '"' . ($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'] == '_' . $term['term'] ? ' selected="selected"' : '') . '>' . $I18N->Msg('a587_stats_searchterm_timestats_title0_single', htmlspecialchars($term['term'])) . '</option>';
}
if (!empty($topsearchterms)) {
    $topsearchtermlist = '<ol>' . $topsearchtermlist . '</ol>';
} else {
    $topsearchtermlist = $I18N->Msg('a587_stats_topsearchterms_none');
}
$selectMaxTopSearchitems = '<select name="a587_rexsearch_stats[maxtopSearchitems]" id="a587_rexsearch_stats_maxTopSearchitems">';
foreach (array(10, 20, 50, 100, 200, 500, 1000) as $option) {
    $selectMaxTopSearchitems .= '<option value="' . $option . '"' . (intval($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['maxtopSearchitems']) == $option ? ' selected="selected"' : '') . '>' . $option . '</option>';
}
$selectMaxTopSearchitems .= '</select>';
echo a587_getStatSection('topsearchterms', $I18N->Msg('a587_stats_topsearchterms_title', $selectMaxTopSearchitems, $stats->getSearchtermCount()), $topsearchtermlist);
// hit-miss-rate
echo a587_getStatSection('general', $I18N->Msg('a587_stats_general_title'), '
  <img src="index.php?page=rexsearch&amp;subpage=stats&amp;func=image&amp;image=rate_success_failure" alt="' . htmlspecialchars($I18N->Msg('a587_stats_rate_success_failure', ' ')) . '" title="' . htmlspecialchars($I18N->Msg('a587_stats_rate_success_failure', ' ', $stats->getMissCount() + $stats->getSuccessCount())) . '" /><img src="index.php?page=rexsearch&amp;subpage=stats&amp;func=image&amp;image=general_timestats" alt="' . htmlspecialchars($I18N->Msg('a587_stats_general_timestats', 6)) . '" title="' . htmlspecialchars($I18N->Msg('a587_stats_general_timestats', 6)) . '" />
');
// stats for searchterms over time
if (!empty($topsearchtermselect)) {
    $topsearchtermselect = '<select name="a587_rexsearch_stats[searchtermselect]" id="a587_rexsearch_stats_searchtermselect">' . $topsearchtermselect . '</select>';
} else {
    $topsearchtermselect = $I18N->Msg('a587_stats_searchterm_timestats_title0');
}
$searchtermselectmonthcount = '<select name="a587_rexsearch_stats[searchtermselectmonthcount]" id="a587_rexsearch_stats_searchtermselectmonthcount">';
foreach (array(6, 9, 12, 15, 18, 21, 24) as $option) {
    $searchtermselectmonthcount .= '<option value="' . $option . '"' . (intval($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselectmonthcount']) == $option ? ' selected="selected"' : '') . '>' . $option . '</option>';
}
$searchtermselectmonthcount .= '</select>';
echo a587_getStatSection('searchterm_timestats', $I18N->Msg('a587_stats_searchterm_timestats_title', $topsearchtermselect, $searchtermselectmonthcount), '
  <img src="index.php?page=rexsearch&amp;subpage=stats&amp;func=image&amp;image=searchterm_timestats&amp;term=' . htmlspecialchars(urlencode($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'] == 'all' ? 'all' : $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'])) . '&amp;monthcount=' . intval($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselectmonthcount']) . '" alt="' . htmlspecialchars($I18N->Msg('a587_stats_searchterm_timestats_title', $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'] == 'all' ? $I18N->Msg('a587_stats_searchterm_timestats_title0_all') : $I18N->Msg('a587_stats_searchterm_timestats_title0_single', substr($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'], 1)), intval($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselectmonthcount']))) . '" title="' . htmlspecialchars($I18N->Msg('a587_stats_searchterm_timestats_title', $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'] == 'all' ? $I18N->Msg('a587_stats_searchterm_timestats_title0_all') : $I18N->Msg('a587_stats_searchterm_timestats_title0_single', substr($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselect'], 1)), intval($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['searchtermselectmonthcount']))) . '" />
');