/[health_html]/inc/pgArhiva.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

Diff of /inc/pgArhiva.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ravilov, Thu Oct 4 14:59:35 2001 UTC revision 1.2 by ravilov, Fri Oct 5 15:10:53 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
         include("inc/conn.php");  
2          include_once("inc/newsShow.php");          include_once("inc/newsShow.php");
3            include("inc/conn.php");
4          if ($show) {          if ($show) {
5                  $arts = newsLoad($id, $cat);                  $arts = newsLoad($id, $cat);
6                  newsShow(array_shift($arts));                  newsShow(array_shift($arts));
# Line 61  Line 61 
61                          }                          }
62                          $tpl->assign("novosti", $novosti);                          $tpl->assign("novosti", $novosti);
63                  }                  }
64                    $tpl->assign("home", $isHome);
65                    if ($spec) {
66                            $sql = "SELECT opis FROM specijalizacije WHERE spec_id = $spec";
67                            $sth = $dbh->prepare($sql);
68                            if (!$sth) error("Cannot prepare query: \"$sql\"");
69                            if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
70                            $row = $sth->fetchrow_array();
71                            $sth->finish();
72                            if ($row) $row = array_shift($row);
73                            if ($row) {
74                                    if ($naslov) $naslov .= " - ";
75                                    $naslov .= $row;
76                            }
77                    }
78                    if (!$naslov) $naslov = $isMed ? "SVE" : "HOME";
79                    if ($naslov) array_push($PATH, $naslov);
80                    $tpl->assign("naslov", $naslov);
81          }          }
         $tpl->assign("home", $isHome);  
         if (!$naslov) $naslov = "HOME";  
         if ($naslov) array_push($PATH, $naslov);  
         $tpl->assign("naslov", $naslov);  
82          $dbh->disconnect();          $dbh->disconnect();
83  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26