include("../header.inc");
switch($_REQUEST["search_location"]) {
case "Paris, France":
$_REQUEST["location_pic"] = "../pics/programs/paris.jpg";
break;
case "Florence, Italy":
$_REQUEST["location_pic"] = "../pics/programs/florence.jpg";
break;
case "London, England":
$_REQUEST["location_pic"] = "../pics/programs/london.jpg";
break;
case "Madrid, Spain":
$_REQUEST["location_pic"] = "../pics/programs/madrid.jpg";
break;
case "Rome, Italy":
$_REQUEST["location_pic"] = "../pics/programs/rome.jpg";
break;
}
function random_pic($subsection) {
global $pics;
global $domain;
$path = "../pics/home/";
//echo $path;
find_images($path);
$value = $pics[$rand];
}
function make_rand() {
global $pics;
srand((double) microtime() * 1000000);
$rand = rand(0, (count($pics)-1));
return $rand;
}
function find_images($path) {
global $pics;
if(substr($path, (strlen($path)-1), strlen($path)) != "/") {
$path .= "/";
}
$handle = opendir($path);
while(false !== ($file = readdir($handle))) {
if($file != "." && $file != ".." && $file != "titles" && $file != '.svn') {
if(is_dir($path.$file)) {
find_images($path.$file);
} else {
$pics[] = $path.$file;
}
}
}
closedir($handle);
}
if(!$subsection || $subsection != "") {
random_pic("");
}
$rand = make_rand();
?>
|
if($_REQUEST["ssection"]) {
echo $ssection_title;
} else {
echo "Upcoming Programs";
}
?>
|
 |
 |
if($ssection) {
include($ssection.".inc");
} else {
?>
if(strtolower($submit) == ""): ?>
| Current programs: |
| Please fill out the form below to search the database of programs currently being offered by ACCENT. Programs fill on a first come, first served basis. |
endif; ?>
include($_SERVER['DOCUMENT_ROOT']."/programs/search.php3"); ?>
| Future programs: |
| To request information about future ACCENT programs or programs not listed in the above database, please complete and submit the form available here. |
} ?>
|
 |
 |
 |
 |
|
" WIDTH="166" HEIGHT="357" ALT="" BORDER="0"> |
include("../footer.inc"); ?>