Independent Tankers Corporation (ITC) Fleet as of echo date("F, Y"); ?>
function loadFleet($fleet){ $pointer = 0; $FILE = file('./itc.txt'); while ($tmp = current($FILE)){ $attributes = explode(" # ",$tmp); $vessel = array("Class"=>$attributes[0], "Vessel"=>$attributes[1], "Manager"=>$attributes[2], "Flag"=>$attributes[3], "Built"=>$attributes[4], "Dwt"=>$attributes[5], "Yard"=>$attributes[6], "PDF"=>$attributes[7], "IMG"=>$attributes[8], "Notes"=>$attributes[9]); $fleet[$pointer] = $vessel; $pointer++; next($FILE); } return $fleet; } function Class_cmp($a, $b){ $haystack = "Suezmax, VLCC"; $a_tmp = strpos($haystack, $a["Class"]); $b_tmp = strpos($haystack, $b["Class"]); if ($a_tmp == $b_tmp) {return Built_cmp($a, $b);} else return $a_tmp - $b_tmp; } function Built_cmp($a, $b){ if ($a["Built"] == $b["Built"]) return 0; return ($a["Built"] > $b["Built"]) ? -1 : 1; } function Built_w($td, $td_s, $vessel){ print $td . $vessel["Built"] . $td_s; } function Dwt_w($td, $td_s, $vessel){ if ($vessel["Dwt"] < 100000) { $weight = substr($vessel["Dwt"],0,2) . " " . substr($vessel["Dwt"],2,3);} else { $weight = substr($vessel["Dwt"],0,3) . " " . substr($vessel["Dwt"],3,3);} print $td . $weight . $td_s; } function Yard_w($td, $td_s, $vessel){ print $td . $vessel["Yard"] . $td_s; } function PDF_w($td, $td_s, $vessel){ if ($vessel["PDF"] == "nil") {print $td . " " . $td_s;} else { # print $td . "
* = Vessels owned by associate ITC.
** = Vessels chartered in and chartered out by ITC.