/[corp_html]/contact.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /contact.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Feb 28 14:14:10 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.1: +14 -1 lines
drop down iz baze

1 <?php
2 require("Smarty.class.php");
3 require("conn.inc");
4
5 $smarty = new Smarty;
6
7 $smarty->assign( array ( Title=>"Pliva d.d." ) );
8
9 $section=str_replace(".php","",basename($PHP_SELF));
10 $smarty->assign("section",$section);
11
12 $main_file=$section;
13
14 $title="CONTACT US";
15 $lpic="cont"; $lext=".jpg";
16 $mpic="contactus.gif";
17
18 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
19
20 $from=str_replace(".php","",basename($HTTP_REFERER));
21
22 $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");
23 $sth->execute();
24 $email_to="webmaster@pliva.hr";
25 if ($row=$sth->fetchrow_hash()) {
26 $email_to=$row[email];
27 }
28
29 $sth = $dbh->prepare("select iso,name from countries order by iso");
30 $sth->execute();
31 while ($row=$sth->fetchrow_hash()) {
32 $countries[]=$row;
33 }
34 $smarty->assign(array(countries=>$countries,
35 email_to=>$email_to,
36 ));
37
38 include("common.inc");
39 $main=$smarty->fetch("$main_file.tpl");
40
41 $smarty->assign( array(MAIN=>$main, from=>$from,
42 contact_section=>1,
43 ));
44
45
46 $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".
47 $url[0] . "from: $from");
48
49
50 $smarty->display("index.tpl");
51 ?>

  ViewVC Help
Powered by ViewVC 1.1.26