0) { $text = "…"; } else { $pos = 0; $text = ''; } $end = FALSE; if($pos + $len > ($searchTextLength = strlen($searchText))) { $len = $searchTextLength - $pos; $end = TRUE; } $text .= htmlentities(substr($searchText, $pos, $len)); if($end === FALSE) { $text .= "…"; } $searchResults[] = array('link' => $searchPage['link'], 'title' => htmlentities($searchPage['title']), 'text' => $text); } if(++$current_result == $results_per_page) { $current_result = 0; ++$current_page; } break; } } if($current_page > $end_page) { break; } } $end_page = $current_page; } ?>

{title}

{text}

'; $result = str_replace('{title}', htmlentities('Keine Suchergebnisse'), $result); $result = str_replace('{text}', '', $result); echo $result; } else { $searchFor = htmlentities($searchFor); $hlPre = ''; $hlPost = ''; foreach($searchResults as $searchResult) { $result = '

{title}

{text}

'; $result = str_replace('{title}', '' . $searchResult['title'] . '', $result); $text = $searchResult['text']; if(strlen($hlPre)) { $text = preg_replace("/(" . $searchFor . ")/i", "{$hlPre}$1{$hlPost}", $text); } $result = str_replace('{text}', $text, $result); echo $result; } } ?>
'; if($page > 1) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . ($page - 1); $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); $control = str_replace('href="#"', 'href="' . $url . '"', $control); } echo $control; ?> {page_num}
'; $buttonPage = $start_page + 1 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 1, $control); } echo $control; ?> {page_num}
'; $buttonPage = $start_page + 2 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 2, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 3 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 3, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 4 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 4, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 5 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 5, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 6 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 6, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 7 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 7, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 8 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 8, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 9 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 9, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 10 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #808080; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', 10, $control); } echo $control; ?> >>'; if($page < $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . ($page + 1); $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); $control = str_replace('href="#"', 'href="' . $url . '"', $control); } echo $control; ?>

NAVIGATION

SOCIAL MEDIA

inotec AP GmbH

Felsweg 12

35435 Wettenberg

Germany

Twitter @inotecAP

TWITTER

YOUTUBE

GOOGLE+

BLOG

FON +49 (0) 641 / 98613 0

FAX +49 (0) 641 / 98613 29

kontakt@inotec-ap.de

www.inotec-ap.de

© 2019 inotec AP GmbH

Diese Website verwendet Cookies. Cookies werden zur Benutzerführung und Webanalyse verwendet und helfen dabei, diese Website besser zu machen.

OK