", ">", str_replace("<", "<", str_replace("", ">", str_replace("<", "<", $titleis . " ... " . $altis));
//exit;
} else if ($altis == "" || $altis == $titleis) {
$altis=str_replace(">", ">", str_replace("<", "<", str_replace("", ">", str_replace("<", "<", $titleis . " .. " . $altis));
//exit;
}
if (1 == 2) echo "\n" . str_replace(">", ">", str_replace("<", "<", str_replace("";
}
//}
//}
}
for ($iijj=1; $iijj";
//if (substr($xpostabits[$iijjk], 0, 1) == "S") $latis="-" . $xpostabits[$iijjk - 1]; // . " ";
//if (substr($xpostabits[$iijjk], 0, 1) == "E") $longis="+" . trim(str_replace("S", "", str_replace("N", "", str_replace("\n", "", $xpostabits[$iijjk - 1])))); // . "";
//if (substr($xpostabits[$iijjk], 0, 1) == "W") $longis="-" . trim(str_replace("S", "", str_replace("N", "", str_replace("\n", "", $xpostabits[$iijjk - 1])))); // . "";
if (strpos($postabits[$iijjk] . " "," S ") !== false) { // 35°26'49.2"S
$wls=explode(" ",str_replace('"',"",str_replace("°"," ",str_replace("'"," ",str_replace(" S","",$postabits[$iijjk])))));
$val=(0.0 - $wls[0]);
$div=60.0;
for ($iwls=1; $iwls") !== false) { // 35°26'49.2"S
$postabitsiijjk=explode(">",explode(" E",$tbits[$i])[0])[-1 + sizeof(explode(">",explode(" E",$tbits[$i])[0]))];
$wls=explode(" ",str_replace('"',"",str_replace("°"," ",str_replace("'"," ",str_replace(" E","",$postabitsiijjk)))));
$val=(0.0 + $wls[0]);
$div=60.0;
$lp=$val;
for ($iwls=1; $iwls") !== false) { // 35°26'49.2"S
$postabitsiijjk=explode(">",explode(" W",$tbits[$i])[0])[-1 + sizeof(explode(">",explode(" W",$tbits[$i])[0]))];
$wls=explode(" ",str_replace('"',"",str_replace("°"," ",str_replace("'"," ",str_replace(" W","",$postabitsiijjk)))));
$val=(0.0 - $wls[0]);
$div=60.0;
for ($iwls=1; $iwls";
if ($imgbit == "" && 1 == 2) $imgbit=$altis . ", " . $titleis;
if ($simgbit == "" && 1 == 1) $simgbit="";
if ($simgbit == "" && 1 == 2) $simgbit=$altis . ", " . $titleis;
if ($seimgbit == "" && 1 == 1) $seimgbit=urlencode(">" . $altis . ", " . $titleis) . "%3C/a%3E";
if ($seimgbit == "" && 1 == 2) $seimgbit=">" . $altis . ", " . $titleis . "";
// Write out cell of information for one dam ...
if (trim($altis . $titleis) != "") {
if (trim($altis) == "") {
if (!$tdzd) {
if (strpos($listsofar, ";" . $titleis . ";") === false) {
$listsofar.=$titleis . ";";
$tdzdone=1;
$tdzd=true;
echo "\n🎞 " . $titleis . $imgbit . " ";
}
} else {
if (strpos($listsofar, ";" . $titleis . ";") === false) {
$listsofar.=$titleis . ";";
$tdzdone++;
echo "\n " . $titleis . $imgbit . " ";
}
}
//if (strpos($tbits[$i], "Bermagui") !== false) {
// echo $lp . " " . $latis . $longis;
// exit;
//}
if (1 == 2) $thisdata = ",[" . str_replace("+","",$latis) . "," . str_replace("+","",$longis) . "," . "%22A%20Wikipedia%20image%20(thanks)%20and%20clicking%20link%20for%20Google%20Map%20based%20on%20latitude%20and%20longitude%20of%20%3Ca%20target=_blank%20href=\\\\\"https://maps.google.com.au/maps?" . urlencode("z=15&t=m&q=loc:" . $latis . $longis) . "\\\\\"" . "%3E" . urlencode($titleis) . "%3C/a%3E%22,~" . urlencode(str_replace(' Harbour','',$titleis)) . "~]";
$thisdata = ",[" . str_replace("+","",$latis) . "," . str_replace("+","",$longis) . "," . "%22A%20Wikipedia%20image%20(thanks)%20and%20clicking%20link%20for%20Google%20Map%20based%20on%20latitude%20and%20longitude%20of%20%3Ca%20target=_blank%20href=\\\\\"https://maps.google.com.au/maps?" . urlencode("z=15&t=m&q=loc:" . $latis . $longis) . "\\\\\"" . $seimgbit . "%22,~" . urlencode(str_replace(' Harbour','',$titleis)) . "~]";
} else {
if (!$tdzd) {
if (strpos($listsofar, ";" . $altis . ";") === false) {
$listsofar.=$altis . ";";
$tdzdone=1;
$tdzd=true;
echo "\n🎞 " . $altis . $imgbit . " ";
}
} else {
if (strpos($listsofar, ";" . $altis . ";") === false) {
$listsofar.=$altis . ";";
$tdzdone++;
echo "\n " . $altis . $imgbit . " ";
}
}
//if (strpos($tbits[$i], "Bermagui") !== false) {
// echo $lp . " " . $latis . $longis;
// exit;
//}
if (1 == 2) $thisdata = ",[" . str_replace("+","",$latis) . "," . str_replace("+","",$longis) . "," . "%22A%20Wikipedia%20image%20(thanks)%20and%20clicking%20link%20for%20Google%20Map%20based%20on%20latitude%20and%20longitude%20of%20%3Ca%20target=_blank%20href=\\\\\"https://maps.google.com.au/maps?" . urlencode("z=15&t=m&q=loc:" . $latis . $longis) . "\\\\\"" . "%3E" . urlencode($altis) . "%3C/a%3E%22,~" . urlencode(str_replace(' Harbour','',$altis)) . "~]";
$thisdata = ",[" . str_replace("+","",$latis) . "," . str_replace("+","",$longis) . "," . "%22A%20Wikipedia%20image%20(thanks)%20and%20clicking%20link%20for%20Google%20Map%20based%20on%20latitude%20and%20longitude%20of%20%3Ca%20target=_blank%20href=\\\\\"https://maps.google.com.au/maps?" . urlencode("z=15&t=m&q=loc:" . $latis . $longis) . "\\\\\"" . $seimgbit . "%22,~" . urlencode(str_replace(' Harbour','',$altis)) . "~]";
}
}
// Write out Javascript to populate textarea and rest of form data that will be posted to iframe ...
$ourscript .= "\n document.getElementById('data').value+=decodeURIComponent('" . $thisdata . "'); ";
$ourscript .= "\n document.getElementById('data').innerHTML+=decodeURIComponent('" . $thisdata . "'); ";
$ourdata .= $thisdata;
//$titleis="";
//$altis="";
$imgbit="";
$simgbit="";
$seimgbit="";
// For image cells ...
} else if (strpos($postabits[$iijj], " ";
if (strpos($imgbit, ' src=') !== false) {
$ibits=explode(' src=', $imgbit);
$jbits=explode(' ', $ibits[1]);
$simgbit = " onclick=\" window.open(" . $jbits[0] . ", '" . $altis . "'); \">" . $altis . ", " . $titleis . "";
$seimgbit = urlencode(" onclick=\\\" window.open(" . $jbits[0] . ", '" . $altis . "','left=200,top=200,width=300,height=300'); \\\">" . $altis . ", " . $titleis . "");
} else {
$simgbit="";
$seimgbit="";
}
// For other cells ...
} else if (1 == 2) {
if ($titleis == "") {
$titleis=str_replace(">", ">", str_replace("<", "<", str_replace("", ">", str_replace("<", "<", str_replace("" . str_replace(">", ">", str_replace("<", "<", str_replace("";
}
}
// Check for end of significant information in this table row ...
if (strpos($postabits[$iijj], ".") !== false && (strpos($postabits[$iijj], "°S") !== false || strpos($postabits[$iijj], "°N") !== false || strpos($postabits[$iijj], "°E") !== false || strpos($postabits[$iijj], "°W") !== false)) $isok=false;
}
}
}
// Reset to look for interesting cells in program ...
$isok=true;
}
$titleis="";
$altis="";
$imgbit="";
$simgbit="";
$seimgbit="";
}
// Write out end of HTML including end of row and end of table and form (method=POST with a submit button programmatically clicked via setInterval() at body onload event) and Javascript code and Google Chart Map Chart map.php iframe.
echo "\n