/[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.2 by ravilov, Thu Aug 30 16:35:36 2001 UTC revision 1.3 by ravilov, Tue Sep 4 09:48:51 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2          $mn = array(          $menu = array(
3                  array("name" => "sex", "caption" => "Sex"),                  array("name" => "sex", "caption" => "Sex"),
4                  array("name" => "zdrava", "caption" => "Zdrava prehrana"),                  array("name" => "zdrava", "caption" => "Zdrava prehrana"),
5                  array("name" => "bmi", "caption" => "BMI"),                  array("name" => "bmi", "caption" => "BMI"),
6                  array("name" => "ovulacija", "caption" => "Kalendar ovulacije"),                  array("name" => "ovulacija", "caption" => "Kalendar ovulacije"),
7                  array("name" => "fitness", "caption" => "Fitness")                  array("name" => "fitness", "caption" => "Fitness")
8          );          );
         if (!$section_menu) $section_menu = $mn[0]["name"];  
         $section_menu_name = "";  
         while (list($k, $v) = each($mn)) {  
                 if ($v["name"] == $section_menu)  
                         $section_menu_name = $v["caption"];  
         }  
         $tpl->assign("MENU", $mn);  
         $fname = eregi_replace("(".$tpl->tpl_file_ext.")$", "-$section_menu\\1", $fname);  
9  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26