/[corp_html]/worldwide.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 /worldwide.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Mon Feb 19 16:22:20 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: dbp
CVS Tags: alpha
Changes since 1.1: +0 -0 lines
alpha

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 if (isset($from)) {
10 $section=$from;
11 } else {
12 $section="index";
13 }
14
15 if ($section == "about") {
16 $title="ABOUT US";
17 $lpic="about"; $lext=".gif";
18 $mpic="about.gif";
19 } else {
20 $title="HOME";
21 $lpic="obitelj"; $lext=".jpg";
22 $tmp = time() % 3;
23 $mpic="welcome_".($tmp+1).".gif";
24 }
25 $back_url="index.php";
26
27
28 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
29
30
31 $sth = $dbh->prepare("select num,name,type,note,street,town,country,phone,fax,email,website from worldwide where type='HQ' order by num");
32 $sth->execute();
33 while ($row=$sth->fetchrow_hash()) {
34 $data[]=$row;
35 }
36 $smarty->assign("data",$data);
37 $html=$smarty->fetch("worldwide-list.tpl");
38 unset($data);
39 $smarty->assign("hq",$html);
40
41
42 $sth = $dbh->prepare("select num,name,type,note,street,town,country,phone,fax,email,website from worldwide where type='Subsidiary' order by num");
43 $sth->execute();
44 while ($row=$sth->fetchrow_hash()) {
45 $data[]=$row;
46 }
47 $smarty->assign("data",$data);
48 $html=$smarty->fetch("worldwide-list.tpl");
49 $smarty->assign("subsidiary",$html);
50 unset($data);
51
52
53 $sth = $dbh->prepare("select num,name,type,note,street,town,country,phone,fax,email,website from worldwide where type='Representative Office' order by num");
54 $sth->execute();
55 while ($row=$sth->fetchrow_hash()) {
56 $data[]=$row;
57 }
58 $smarty->assign("data",$data);
59 $html=$smarty->fetch("worldwide-list.tpl");
60 $smarty->assign("rep_office",$html);
61 unset($data);
62
63 $main=$smarty->fetch("worldwide.tpl");
64
65 include("common.inc");
66 $smarty->assign( array(back_url=>'index.php', MAIN=>$main));
67
68 $smarty->display("index.tpl");
69 ?>

  ViewVC Help
Powered by ViewVC 1.1.26