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

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

revision 1.1 by ravilov, Wed Aug 22 11:43:59 2001 UTC revision 1.2 by ravilov, Thu Aug 30 16:35:36 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2          $tpl->assign("MENU", "");          $mn = array(
3                    array("name" => "sex", "caption" => "Sex"),
4                    array("name" => "zdrava", "caption" => "Zdrava prehrana"),
5                    array("name" => "bmi", "caption" => "BMI"),
6                    array("name" => "ovulacija", "caption" => "Kalendar ovulacije"),
7                    array("name" => "fitness", "caption" => "Fitness")
8            );
9            if (!$section_menu) $section_menu = $mn[0]["name"];
10            $section_menu_name = "";
11            while (list($k, $v) = each($mn)) {
12                    if ($v["name"] == $section_menu)
13                            $section_menu_name = $v["caption"];
14            }
15            $tpl->assign("MENU", $mn);
16            $fname = eregi_replace("(".$tpl->tpl_file_ext.")$", "-$section_menu\\1", $fname);
17  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26