CLAS Online BOS Bank Viewer

by David Lawrence, University of Massachusetts


0) Search(); else ShowBank($_REQUEST["bank"]); ?>

David Lawrence
davidl@jlab.org
Last Updated
build: current:
Number of fields:      Bytes Per Row:
Name Data Type Range Comment
to

.ddl file contents

$name, "type"=>$type, "min"=>$min, "max"=>$max, "comment"=>$comment ); } return $fields; } function SearchForm() { global $build; $all_selected = $_REQUEST["search_type"] == "AND" ? "SELECTED":""; $any_selected = $all_selected=="" ? "SELECTED":""; ?>
search for banks with these words: "> (search is not case sensitive)
500*1024)continue; // read in file (make lower case so we don't need to use stristr) $fd = @fopen($file, "r"); if($fd == "")continue; $contents = strtolower(fread($fd, filesize($file))); fclose($fd); reset($words); $good = FALSE; foreach($words AS $word){ if(strstr($contents, $word) != ""){ // word exists, assume we're good for now $good = TRUE; // if we're ORing, then break out now if(!$and){ $good = TRUE; break; } }else{ // Uh-oh, this word isn't in the file $good = FALSE; if($and)break; } } if($good)$mybanks[] = $bank; } // Display list of banks $what = $and ? "all of":"at least one of"; ?> \n"; ?> \n"; $i++; } $colspan = 4 - ($i-1)%5; if($colspan != 0)echo ""; ?>
Banks containing these words:
--- No banks found which match your search criteria ---
\">