From 54af944d6b5fabc7680ab472b327d9fb79960671 Mon Sep 17 00:00:00 2001
From: Seth Meranda <smeranda2@unl.edu>
Date: Fri, 14 Jan 2011 22:09:29 +0000
Subject: [PATCH] updates styles of for the search box.

---
 www/index.php     |  7 ++++---
 www/searchCSS.css | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

diff --git a/www/index.php b/www/index.php
index 7137933..1de5664 100644
--- a/www/index.php
+++ b/www/index.php
@@ -14,13 +14,13 @@ $page->head .= '
 ';
 $page->addScript('searchFunc.js');
 
-if (isset($_GET['u'])
+if (isset($_GET['u']) //u is referring site
     && preg_match('/^https?/', $_GET['u'])
     && filter_var($_GET['u'], FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)
     && $scanned = @file_get_contents($_GET['u'])) {
     // Add local site search results
     $scanned = new UNL_Templates_Scanner($scanned);
-    if (isset($scanned->navlinks)) {
+    if (isset($scanned->navlinks)) { //we're scrapping the navigation and other content from the originatting site.
         require_once 'HTMLPurifier.auto.php';
         $config = HTMLPurifier_Config::createDefault();
         $config->set('Cache.SerializerPath', '/tmp');
@@ -71,7 +71,8 @@ if (isset($_GET['u'])
 $page->maincontentarea = '
 <div id="searchform">
   <form action="http://www1.unl.edu/search/" method="get">
-    <input style="width:90%" type="text" name="q" />';
+  	<label for="q">Search</label>
+    <input type="text" name="q" id="q" />';
 if (!empty($local_results)) {
     $page->maincontentarea .= '<input type="hidden" name="u" value="'.htmlentities($_GET['u'], ENT_QUOTES).'" />';
 }
diff --git a/www/searchCSS.css b/www/searchCSS.css
index 756fc19..a38f092 100644
--- a/www/searchCSS.css
+++ b/www/searchCSS.css
@@ -1,4 +1,45 @@
 /* Google/Peoplefinder Styles */
+
+/** Search Box **/
+#searchform form.gsc-search-box {
+	background: #E9D78E; /* old browsers */
+    background: -moz-linear-gradient(top, #E9D78E 0%, #DCC679 100%); /* firefox */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E9D78E), color-stop(100%,#DCC679)); /* webkit */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#E9D78E', endColorstr='#DCC679',GradientType=0 ); /* ie */
+    padding:13px;
+    border-radius:5px;
+    -moz-border-radius:5px;
+    -webkit-border-radius:5px;
+    width:auto;
+}
+
+#searchform table.gsc-search-box {
+    width:auto;
+}
+#searchform input.gsc-input {
+    border: 1px solid #8A7C47;
+    color: #5C5C5C;
+    font-size: 1.5em;
+    height: 31px;
+    padding: 2px 0 0 8px;
+    width: 800px;	
+}
+#searchform input.gsc-search-button {
+    -moz-border-radius: 5px;
+    -webkit-border-radius: 5px;
+    -border-radius: 5px;
+    font-size: 1.5em;
+    padding:4px 10px;
+    background: #897B42;
+    border: 1px solid #BDAB61;
+    color: #FFFFFF;
+    cursor: pointer;
+}
+#searchform table.gsc-branding {
+	display:none;
+}
+
+
 /** Overridden directory styles **/
 #maincontent .recordDetails {
 	margin-left:8px;
-- 
GitLab