--- contact.php 2001/03/27 10:26:34 1.12 +++ contact.php 2001/11/21 10:27:39 1.15 @@ -6,15 +6,9 @@ $smarty->assign( array ( Title=>"Pliva d.d." ) ); -$section=str_replace(".php","",basename($PHP_SELF)); -$smarty->assign("section",$section); - +include("section.inc"); $main_file=$section; -$title="CONTACT US"; -$lpic="cont"; $lext=".jpg"; -$mpic="contactus.gif"; - $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); if (! isset($from) || $from == "") { @@ -22,6 +16,7 @@ if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); if ($from == $HTTP_HOST || $from=="www.pliva.hr") $from="index"; } +$smarty->assign("from",$from); $email="webmaster@pliva.hr"; // default @@ -61,7 +56,7 @@ $main=$smarty->fetch("$main_file.tpl"); } -$smarty->assign( array(MAIN=>$main, from=>$from, +$smarty->assign( array(MAIN=>$main, contact_section=>1, ));