diff --git a/www/index.php b/www/index.php index 7137933dbb391289d16f0fba41ffba30d1e9514a..1de566475f736bd9d866ffbdee7d644cc57809df 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 756fc19b06c4e48ba9401fb4b056cc5b95598219..a38f09203550fd36e2d41b4ae9a4ce119e066742 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;