16 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
17 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
18 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
19 |
|
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
20 |
|
|
21 |
|
$sth = $dbh->prepare("select iso,name from countries order by iso"); |
22 |
|
$sth->execute(); |
23 |
|
while ($row=$sth->fetchrow_hash()) { |
24 |
|
$countries[]=$row; |
25 |
|
} |
26 |
|
$smarty->assign("countries",$countries); |
27 |
|
|
28 |
|
$main=$smarty->fetch("Careers-".$part.".tpl"); |
29 |
} else { |
} else { |
30 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
31 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |