query("select parent from $default->owl_folders_table where id = '$parent'"); while($sql->next_record()) { $path = fid_to_name($sql->f("parent"))."/".$path; $parent = $sql->f("parent"); } } return $path; } // This Layout section will not be needed as it is going to change // BEGIN patch Scott Tigr // patch for layout include("./lib/header.inc"); print("
| "); print(" | ||
| "); print uid_to_name($userid); print(" : $lang_logout | "); print("  | "); print(" | ");
print("
| ".$lang_search.": "); print(gen_navbar($parent) . " |
";
//for ($i=$max; $i>0; $i--) {
//}
// display results based on relevance (different graphics) and score
$t_score = $max;
for ($c=$max; $c>=1; $c--)
{
if ( $t_score >= 10)
{
if ( 0 == ($c % 10))
{
print " ";
$t_score = $t_score - 10;
}
}
else
{
if ( (0 == ($t_score % 2)) && $t_score > 0 )
{
print " ";
}
$t_score = $t_score - 1;
}
}
//print "($lang_score $max)"; print " | ";
print(""); print "$hit. ".$name." | "; print("");
if ($files[$key][u] == "1")
print(" | ");
print(""); printFileIcons($files[$key][id],$name,$files[$key][c],$files[$key][u],$default->owl_version_control,$ext); print(" |
| ".implode(" ", $files[$key][d])." |
";
// BEGIN bugfix Scott Tigr
// error_handler if query empty
} // end of check strlen(query)
else { // if query was empty
print("" . $lang_query_empty . "
"); } include("./lib/footer.inc"); // END bugfix Scott Tigr ?>