?> </th> </tr> <tr bgcolor="#eeeeee"> <th><?php echo _('Destination<br />Language'); ?> </th> <?php foreach ($Langcode2english as $code => $english) { // no column if $code never appears as source language // or no release for this plattform available global $fddb_docel, $have_php5; $appears = false; foreach (getElementsByTagname($have_php5 ? $freedict_database : $fddb_docel, 'dictionary') as $d) { if (substr($d->{$get_attr}('name'), 0, 3) == $code) { $r = find_release($d, $platform); if (isset($r)) { $appears = true; break; } } } if (!$appears) { continue; } // add to $columns $columns[$code] = $english; echo '<th>'; $i = langcode2image($code);
function find_dictionary($name) { global $fddb_docel, $have_php5, $freedict_database, $get_attr; foreach (getElementsByTagname($have_php5 ? $freedict_database : $fddb_docel, 'dictionary') as $d) { if ($d->{$get_attr}('name') == $name) { return $d; } } return NULL; }