Update of /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23369/wera/src/webapps/wera/test
Added Files:
findversions.php
Log Message:
First time add of wera. Moved here from nwa.nb.no.
--- NEW FILE: findversions.php ---
<?php
/*
* Created on Aug 29, 2005
*
* $Id: findversions.php,v 1.1 2005/10/04 22:59:28 stack-sf Exp $
*/
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset="utf-8" />
<title>title</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
<?php
include ("../lib/config.inc");
include ("../lib/documentLocator.inc");
include($conf_index_file);
?>
<form action="findversions.php" method="get">
Url: <input type='text' name='url' value='<?php print $url; ?>' size="50"/><br/>
Time: <input type='text' name='timestamp' value='<?php print $timestamp; ?>' size="14"/><br/>
Mode:
<select name="mode">
<option value="NEAR" <?php if ($mode=="NEAR") print "selected"?>>NEAR</option>
<option value="EXACT" <?php if ($mode=="EXACT") print "selected"?>>EXACT</option>
<option value="BEFORE" <?php if ($mode=="BEFORE") print "selected"?>>BEFORE</option>
<option value="AFTER" <?php if ($mode=="AFTER") print "selected"?>>AFTER</option>
<option value="FIRST" <?php if ($mode=="FIRST") print "selected"?>>FIRST</option>
<option value="LAST" <?php if ($mode=="LAST") print "selected"?>>LAST</option>
<option value="ALL" <?php if ($mode=="ALL") print "selected"?>>ALL</option>
</select>
<input type="submit" name="name" value="Locate!"/>
</form>
<pre>
<?php
$searchEngine = new $conf_index_class();
$locator = new documentLocator();
$locator->initialize($searchEngine, $url, false, $timestamp, $mode);
$numhits = $locator->findVersions();
$result = $locator->getResultSet();
print "\n" . $numhits;
print_r($result);
print "</pre>"
?>
</body>
</html>
|