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

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

revision 1.1 by ravilov, Tue Sep 25 15:38:04 2001 UTC revision 1.5 by ravilov, Tue Oct 30 16:11:28 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2          $foo = getdate();          $foo = getdate();
3          $tpl->assign("year", $foo["year"]);          $tpl->assign("year", $foo["year"]);
4          $tpl->assign("ME", $PHP_SELF.HTMLSpecialChars("?section=$section&section_menu=$section_menu"));          $tpl->assign("ME", HTMLSpecialChars("?section=$section&section_menu=$section_menu"));
5          $godine = array();          $godine = array();
6          for ($i = $foo["year"] - 1; $i <= $foo["year"] + 1; $i++) array_push($godine, $i);          for ($i = $foo["year"] - 1; $i <= $foo["year"] + 1; $i++) array_push($godine, $i);
7          $tpl->assign("godine", $godine);          $tpl->assign("godine", $godine);
# Line 61  Line 61 
61                          array_push($kal, $tmp);                          array_push($kal, $tmp);
62                  }                  }
63                  $tp = new Smarty();                  $tp = new Smarty();
64                    $tp->assign("section", $section);
65                    $tp->assign("section_menu", $section_menu);
66                    $tp->assign("section_menu2", $section_menu2);
67                    $tp->assign("dan", $dan);
68                    $tp->assign("mjesec", $mjesec);
69                    $tp->assign("godina", $godina);
70                    $tp->assign("trajanje", $trajanje);
71                  $tp->assign("ime", $ime);                  $tp->assign("ime", $ime);
72                    $tp->assign("ime2", urlencode($ime));
73                  $tp->assign("kal", $kal);                  $tp->assign("kal", $kal);
74                  $table = $tp->fetch("kalendar".($print?"-print":"").".tpl");                  $table = $tp->fetch("kalendar".($print?"-print":"").".tpl");
75                  $tpl->assign("CONTENT", $table);                  $tpl->assign("CONTENT", $table);
76                  if (!$print) {                  if (!$print) {
77                          include_once("print.php");                          include_once("print.php");
78                          $tpl->assign("PRINT", GetPrint(array("dan", "mjesec", "godina", "trajanje")));                          $tpl->assign("PRINT", GetPrint(array("dan", "mjesec", "godina", "trajanje", "ime"), false));
79                  } else $main_template = "wrapper.tpl";                  } else $main_template = "wrapper.tpl";
80          }          }
81          if (!$ns4) {          if (!$ns4) {

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

  ViewVC Help
Powered by ViewVC 1.1.26