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; } ?>

Suchergebnisse

{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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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: #cbcbcb; 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; ?>

Pressezentrum / Printzentrum GmbH

Neuer Markt 3

18055 Rostock

+ 49 (0) 381 - 4917955

oder per E-Mail

info@printzentrum.de


Öffnungszeiten: 

Mo-Sa 09:00 - 18:00 Uhr


go

Empfehlen Sie uns! 


go

© Printzentrum Rostock Juli 2019

OK

Diese Website verwendet Cookies. Bitte lesen Sie unsere Datenschutzerklärung für Details.