Skip to content
Snippets Groups Projects
Commit 16cfdb42 authored by Kevin Abel's avatar Kevin Abel
Browse files

Adjusted the markup to use the new grid layout, the correct google loader, and...

Adjusted the markup to use the new grid layout, the correct google loader, and not to use the depricated gSearchForm.
parent fdf34fc0
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,9 @@ if (isset($_GET['format']) ...@@ -14,8 +14,9 @@ if (isset($_GET['format'])
$page = UNL_Templates::factory($template); $page = UNL_Templates::factory($template);
$page->doctitle = '<title>UNL | Search</title>'; $page->doctitle = '<title>UNL | Search</title>';
$local_results = ''; $local_results = '';
$page->addScript('http://www.google.com/jsapi' . (empty(UNL_Search::$jsapiKey) ? '' : '?key=' . UNL_Search::$jsapiKey));
$page->head .= ' $page->head .= '
<script src="http://www.google.com/jsapi?key=ABQIAAAAfxH7RKwDLHYhDD9dSUZe-RTELkNjcWhKXky6vQZrvQAPA5Uw6xR-eQp2X1fKnLG-UqeKQ_7mwv5CcQ" type="text/javascript"></script> <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="http://directory.unl.edu/css/peoplefinder_default.css" /> <link rel="stylesheet" type="text/css" href="http://directory.unl.edu/css/peoplefinder_default.css" />
<link rel="stylesheet" type="text/css" href="searchCSS.css" /> <link rel="stylesheet" type="text/css" href="searchCSS.css" />
'; ';
...@@ -68,7 +69,7 @@ if (isset($_GET['u']) //u is referring site ...@@ -68,7 +69,7 @@ if (isset($_GET['u']) //u is referring site
'); ');
$local_results = ' $local_results = '
<h3 class="sec_header">Local Results</h3> <h3 class="sec_header">Local Results</h3>
<div id="local_results"></div>'; <div id="local_results" class="google-results"></div>';
} else { } else {
// Default search for no referring site. // Default search for no referring site.
$page->titlegraphic = '<h1>UNL Search</h1>'; $page->titlegraphic = '<h1>UNL Search</h1>';
...@@ -85,13 +86,19 @@ if (isset($_GET['u']) //u is referring site ...@@ -85,13 +86,19 @@ if (isset($_GET['u']) //u is referring site
$page->maincontentarea = ' $page->maincontentarea = '
<div id="searchform"> <div id="searchform">
<form action="./" method="get"> <form action="./" method="get">
<label for="q">Search</label> <fieldset>
<input type="text" name="q" id="q" />'; <div class="grid10 first">
<label for="q">Search</label>
<input class="search-query" type="text" name="q" id="search_q" title="search" />';
if (!empty($local_results)) { if (!empty($local_results)) {
$page->maincontentarea .= '<input type="hidden" name="u" value="'.htmlentities($_GET['u'], ENT_QUOTES).'" />'; $page->maincontentarea .= '<input type="hidden" name="u" value="'.htmlentities($_GET['u'], ENT_QUOTES).'" />';
} }
$page->maincontentarea .= ' $page->maincontentarea .= '
<input type="submit" value="Search" /> </div>
<div class="grid2">
<input class="search-button" title="search" type="submit" value="Search" />
</div>
</fieldset>
</form> </form>
<noscript> <noscript>
<form action="http://www.googlesyndicatedsearch.com/u/UNL1" method="get"> <form action="http://www.googlesyndicatedsearch.com/u/UNL1" method="get">
...@@ -100,12 +107,12 @@ $page->maincontentarea .= ' ...@@ -100,12 +107,12 @@ $page->maincontentarea .= '
</form> </form>
</noscript> </noscript>
</div> </div>
<div class="three_col left"> <div class="grid8 first">
'.$local_results.' '.$local_results.'
<h3 class="sec_header">UNL Web</h3> <h3 class="sec_header">UNL Web</h3>
<div id="unl_results"></div> <div id="unl_results" class="google-results"></div>
</div> </div>
<div class="col right"> <div class="grid4">
<h3 class="sec_header">UNL Directory</h3> <h3 class="sec_header">UNL Directory</h3>
<div id="ppl_results"></div> <div id="ppl_results"></div>
<a href="http://www1.unl.edu/wdn/wiki/About_Peoplefinder">About the UNL Directory</a> <a href="http://www1.unl.edu/wdn/wiki/About_Peoplefinder">About the UNL Directory</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment