/[corp_html]/inc/section.inc
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 /inc/section.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Tue Apr 30 13:26:33 2002 UTC (21 years, 11 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -0 lines
newsletter na pravom mjestu

1 <?
2
3 if (!isset($section)) {
4 $section=str_replace(".php","",basename($PHP_SELF));
5 }
6
7 if ($section == "index") {
8 $title="HOME $title";
9 $lpic="obitelj"; $lext=".jpg";
10 $tmp = time() % 3;
11 $mpic="welcome_".($tmp+1).".gif";
12 $main_file="main";
13 } elseif ($section == "about") {
14 $title="ABOUT US $title";
15 $lpic="about"; $lext=".gif";
16 $mpic="about.gif";
17 } elseif ($section == "products" || $section == "animal_health" || $section == "human_health") {
18 $title="PRODUCTS $title";
19 $lpic="products"; $lext=".jpg";
20 $mpic="products.gif";
21 $section="products";
22 } elseif ($section == "investor") {
23 $title="INVESTOR'S PAGE $title";
24 $lpic="investor"; $lext=".jpg";
25 $mpic="investors.gif";
26 } elseif ($section == "rnd") {
27 $title="R&amp;D $title";
28 $lpic="rnd"; $lext=".gif";
29 $tmp = time() % 2;
30 $mpic="rnd_u".($tmp+1).".gif";
31 } elseif ($section == "careers") {
32 $title="CAREERS $title";
33 $lpic="careers"; $lext=".jpg";
34 $mpic="careers.gif";
35 } elseif ($section == "contact") {
36 $title="CONTACT US $title";
37 $lpic="cont"; $lext=".jpg";
38 $mpic="contactus.gif";
39 } elseif ($section == "coreval") {
40 $title="CORE VALUES $title";
41 $lpic="about"; $lext=".gif";
42 $mpic="about.gif";
43 $section="about";
44 } elseif ($section == "vision") {
45 $title="VISION $title";
46 $lpic="about"; $lext=".gif";
47 $mpic="about.gif";
48 $section="about";
49 } elseif ($section == "new") {
50 $title="What's New";
51 $lpic="new"; $lext=".jpg";
52 $mpic="new.gif";
53 }
54
55 if ($menu_item) $title.=" : $menu_item";
56
57 $smarty->assign("section",$section);
58
59 ?>

  ViewVC Help
Powered by ViewVC 1.1.26