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

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

revision 1.3 by ravilov, Tue Oct 23 16:13:59 2001 UTC revision 1.4 by ravilov, Sat Oct 27 16:54:50 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2            $kreni = true;  /* */
3          include("inc/conn.php");          include("inc/conn.php");
4          $date = getdate();          $date = getdate();
5          if (!isset($type)) $type = 1;          if (!isset($type)) $type = 1;
# Line 27  Line 28 
28                  if (!$fnd) array_push($godine, $do);                  if (!$fnd) array_push($godine, $do);
29          }          }
30          $sth->finish();          $sth->finish();
31            if ($spec) {
32                    $sql = "SELECT opis FROM specijalizacije WHERE (spec_id = $spec)";
33                    $sth = $dbh->prepare($sql);
34                    if (!$sth) error("Cannot prepare query: \"$sql\"");
35                    if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
36                    $row = $sth->fetchrow_array();
37                    $sth->finish();
38                    if ($row) $row = array_shift($row);
39                    $tpl->assign("spec_naziv", $row);
40            }
41          $tpl->assign("godine", $godine);          $tpl->assign("godine", $godine);
42          if ($kreni) {          if ($kreni) {
43                  $sql = "SELECT DISTINCT kongresi.kon_id, naziv, dan_od, mjesec_od, godina_od, dan_do, mjesec_do, godina_do, mjesto, organizator, domaci, url, url_naziv, napomena, pic FROM kongresi, kon_spec";                  $sql = "SELECT DISTINCT kongresi.kon_id, naziv, dan_od, mjesec_od, godina_od, dan_do, mjesec_do, godina_do, mjesto, organizator, domaci, url, url_naziv, napomena, pic FROM kongresi".($spec?", kon_spec":"");
44                  $uvjeti = array();                  $uvjeti = array();
45                  if ($type) array_push($uvjeti, "(".(($type == 1) ? "" : "NOT ")."domaci)");                  if ($type) array_push($uvjeti, "(".(($type == 1) ? "" : "NOT ")."domaci)");
46                  if ($month) array_push($uvjeti, "(mjesec_od >= $month)");                  if ($month) array_push($uvjeti, "(mjesec_od >= $month)");

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26