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

Annotation of /rnd.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations)
Mon Mar 12 16:01:22 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.6: +6 -0 lines
analysts coverage

1 dpavlin 1.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 dpavlin 1.2 $sub_part=substr($part,0,strpos($part,"-"));
10    
11     if ($sub_part == "MIXIS") {
12     $multi_page=array(
13     "rnd.php?part=MIXIS-HomePR",
14     "rnd.php?part=MIXIS-Sci-TechPR"
15     );
16     } elseif ($sub_part == "Technology") {
17     $multi_page=array(
18     "rnd.php?part=Technology-HighThroughput",
19     "rnd.php?part=Technology-Microarrays"
20     );
21 dpavlin 1.4 } elseif ($sub_part == "Profile") {
22     $multi_page=array(
23     "rnd.php?part=Profile-antiinfectives1",
24     "rnd.php?part=Profile-antiinfectives2"
25     );
26     } elseif ($sub_part == "Pipeline") {
27     $multi_page=array(
28     "rnd.php?part=Pipeline-1",
29     "rnd.php?part=Pipeline-2"
30     );
31 dpavlin 1.7 } else {
32     $multi_page=array(
33     "rnd.php?part=Azithromycin1",
34     "rnd.php?part=Azithromycin2",
35     "rnd.php?part=Azithromycin3"
36     );
37 dpavlin 1.2 }
38 dpavlin 1.1
39     $section=str_replace(".php","",basename($PHP_SELF));
40     $smarty->assign("section",$section);
41    
42     $title="R&amp;D";
43 dpavlin 1.6 if ($menu_item) $title.=" : $menu_item";
44 dpavlin 1.1 $lpic="rnd"; $lext=".gif";
45     $tmp = time() % 2;
46     $mpic="rnd_u".($tmp+1).".gif";
47     $main_file="./html/";
48     if (file_exists($main_file.$part.".htm")) {
49     $main_file.=$part.".htm";
50     $main=join('',file($main_file));
51     } else {
52 dpavlin 1.5 $main=join('',file("./html/RnD-Main.htm"));
53 dpavlin 1.1 }
54    
55    
56     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
57    
58     include("common.inc");
59     $smarty->assign("MAIN",$main);
60    
61     $smarty->display("index.tpl");
62    
63     ?>

  ViewVC Help
Powered by ViewVC 1.1.26