0) { $links[$country['c_id']] = 0; while($l = mysql_fetch_array($res_l)) { $link[$country['c_id']][$links[$country['c_id']]]['link'] = $l['link']; $link[$country['c_id']][$links[$country['c_id']]]['type'] = $l['type']; if($l['type'] == 'yellow') $link[$country['c_id']][$links[$country['c_id']]]['name'] = 'Yellow pages'; elseif($l['type'] == 'white') $link[$country['c_id']][$links[$country['c_id']]]['name'] = 'White pages'; elseif($l['type'] == 'both') $link[$country['c_id']][$links[$country['c_id']]]['name'] = 'White and Yellow pages'; $links[$country['c_id']] ++; } } $c ++; } $sql = " SELECT prefix, name, name_ru FROM regions ORDER BY id "; $res = mysql_query($sql); $rws = mysql_num_rows($res); $r = 0; while($region = mysql_fetch_array($res)) { $regions[$r]['name'] = $region['name']; $regions[$r]['name_ru'] = $region['name_ru']; $regions[$r]['prefix'] = $region['prefix']; $r ++; } if($lang == '/ru/') $_TMPL['meta']['title'] = $countries[0]['reg_name_ru'] . ' — телефонные справочники'; else $_TMPL['meta']['title'] = $countries[0]['reg_name'] . ' telephone directories'; if($lang == '/ru/') { include('files/templates/ru/header.php'); include('files/templates/ru/region.php'); include('files/templates/ru/footer.php'); } else { include('files/templates/header.php'); include('files/templates/region.php'); include('files/templates/footer.php'); } } ?>