$cnt. {$hit['Title']}
+{$hit['Summary']}
@@ -80,4 +84,16 @@ echo <<
';
+echo '';
+site_footer();
?>
diff --git a/search.php b/search.php
index 3fc48dc85..d5543d78f 100644
--- a/search.php
+++ b/search.php
@@ -77,9 +77,7 @@ if (!empty($_FORM['pattern'])) {
// Covers "wholesite", "manual" and any malicios targets
default:
- mirror_redirect(
- "http://www.google.com/search?q={$ucp}+site:www.php.net&l=$LANG"
- );
+ mirror_redirect($MYSITE . "results.php?q={$ucp}&l=$LANG");
}
}
diff --git a/style.css b/style.css
index 673955ea8..484031fd8 100644
--- a/style.css
+++ b/style.css
@@ -328,3 +328,44 @@ ul#manualtoc li a {
ul#manualtoc li a:hover {
text-decoration: underline;
}
+
+/* for search system... */
+ul#search-results {
+ list-style-type: none;
+}
+ul#search-results li {
+ margin-top: 1em;
+ list-style-type: none;
+}
+ul#search-results p {
+ margin: 0;
+}
+ul#search-results p.result {
+ font-weight: 700;
+}
+ul#search-results p.summary,
+ul#search-results p.meta {
+ font-size: 0.8em;
+ margin-left: 2em;
+}
+ul#search-results p.meta {
+ color: #008000;
+}
+ul#search-results p.meta a {
+ color: #8284cc;
+}
+div#results_nav {
+ margin:auto;
+ width: 200px;
+ text-align: center;
+}
+
+ul#results_nav_list {
+ text-align: center;
+ padding: 0px;
+}
+ul#results_nav_list li {
+ display: inline;
+ margin-right: 0.4em;
+ list-style-type: none;
+}
diff --git a/styles/site.css b/styles/site.css
index d4d376d43..632adc198 100644
--- a/styles/site.css
+++ b/styles/site.css
@@ -487,3 +487,44 @@ div.manualnavbar form {
div.manualnavbar .lastupdated {
font-size: 75%;
}
+
+/* for searching system... */
+ul#search-results {
+ list-style-type: none;
+}
+ul#search-results li {
+ margin-top: 1em;
+ list-style-type: none;
+}
+ul#search-results p {
+ margin: 0;
+}
+ul#search-results p.result {
+ font-weight: 700;
+}
+ul#search-results p.summary,
+ul#search-results p.meta {
+ font-size: 0.8em;
+ margin-left: 2em;
+}
+ul#search-results p.meta {
+ color: #008000;
+}
+ul#search-results p.meta a {
+ color: #8284cc;
+}
+div#results_nav {
+ margin:auto;
+ width: 200px;
+ text-align: center;
+}
+
+ul#results_nav_list {
+ text-align: center;
+ padding: 0px;
+}
+ul#results_nav_list li {
+ display: inline;
+ margin-right: 0.4em;
+ list-style-type: none;
+}