...
No Format |
---|
<form action="qna-results.cfm" method="GET" name="gs">
<div id="search-input">
<label for="search-form-query">SEARCH:<br /></label>
<input type="text" name="q" value="" size="50" maxlength="256" id="search-form-query" />
<input type="submit" name="btnG" value="go" id="search-form-submit" />
<input type="hidden" name="output" value="xml_no_dtd" />
<input type="hidden" name="sort" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="gsa_client" value="default_frontend" />
<input type="hidden" name="oe" value="UTF-8" />
</div>
<div id="search-filters">
<input type="radio" name="sitesearch" value="this-site" id="search-filters0" />
<label for="search-filters1">This Site</label>
<input type="radio" name="sitesearch" value="library.cornell.edu" checked="checked" id="search-filters1" />
<label for="search-filters1">Library Pages</label>
<input type="radio" name="sitesearch" value="cornell.edu" id="search-filters2" />
<label for="search-filters2">Cornell</label>
<a href="http://web.search.cornell.edu/" >more options</a>
</div>
</form>
|
...
I've built a php object called ~jgreidy:cul_gsa_search() to handle the interaction with http://web.search.cornell.edu and parse the xml results it returns. I also have an example wrapper script and ~jgreidy:css file to display the search results. Here is the wrapper script and a test page. The code you will need to use will look like this:
Code Blocknoformat |
---|
<link rel="stylesheet" type="text/css" media="screen" href="search.css" /></head><body> > </head> <body> <?php require_once("cul_web_search.php"); cul_web_search_form(); ?> <h2>Search Results</h2> <?php cul_web_search_results(); ?> |
...