/////////////////////////////////////////////////////
// protectmap.php for PROTECT Field Center Contacts Webpage
// This file uses the protectmap.gif in conjunction with
// the protectmap.csv file for displaying contact info
// and providing links to their sites.
$lf="\n";
$qt="'";
$picwidth=621;
$picheight=398;
$infowidth=195;
$infoheight=100;
$infooffset=25;
$headsize=168;
$bgcoloris='rgb(240,240,240)';
$bordcolor='#000000';
print ' '.$lf;
print ' '.$lf;
print ' '.$lf;
print ''.$lf;
print '
'.$lf;
?>
'.$lf;
if (is_file('sites/default/files/protectmap.csv'))
{
if ($fptr=fopen('http://www2.cscc.unc.edu/protect/sites/default/files/protectmap.csv','r'))
{
$row = 1;
while (($data = fgetcsv($fptr, 10000, ",")) !== FALSE)
{
$city=$data[2];
$x1=$data[8];
$y1=$data[9];
$code=$data[10];
if ( (strlen($city)>0) and ($city!='City') )
{
print ' '.$lf;
$row++;
}
}
fclose($fptr);
}
print ' '.$lf;
print ''.$lf;
print $lf;
print '
'.$lf; print 'the system will need the tab delimited text file named protectmap.csv '.$lf; print ''.$lf; } print ' | '.$lf;
//print ' '.$lf;
print ' '.$lf;
print 'Moving the pointer over a dotted city should display the contact information for the participating institutions. '.$lf;
print 'Selecting a dotted city should direct the browser to the associated website. Select here for a Google Map. |