rename($filename, $new_filename);"); // rename($images_dir . $filename, $images_dir . $new_filename); // } //} ?> Common Names
Insects of Townsville

Insects of Townsville

Common names of some of Townsville's wildlife

Note: this page is automatically generated, so it may include some unusual items.


0) { $thisone = array_pop($todo); if(array_search($thisone, $children_ids)) continue; $children_ids[] = $thisone; foreach(GetChildren($thisone) as $child) $todo[] = $child; } return $children_ids; } $pages = GetAllDescendants($page_id); foreach($pages as $page_id) { $page = GrabPage($page_id); $name = $page["common_name"]; $key = trim($name); if(strlen($key) == 0) continue; $full_list[$key] = $page_id; if(!isset($counts[$key])) $counts[$key] = 1; else $counts[$key] += 1; } // Group by first letter $grouped = []; foreach($full_list as $name => $page_id) { $this_letter = $name[0]; $grouped[$this_letter][$name] = $page_id; } ksort($grouped); echo("
\n"); foreach($grouped as $letter => $data) { echo("
\n"); echo("

" . strtoupper($letter) . "

\n"); ksort($data); foreach($data as $name => $page_id) { if($counts[$name] == 1) echo("

$name

\n"); else echo("

$name x " . $counts[$name] . "

\n"); } echo("
\n"); } echo("
\n"); ?>