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

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

revision 1.7 by ravilov, Wed Sep 26 13:04:28 2001 UTC revision 1.8 by ravilov, Fri Sep 28 23:34:37 2001 UTC
# Line 2  Line 2 
2          include("inc/conn.php");          include("inc/conn.php");
3          include_once("inc/newsShow.php");          include_once("inc/newsShow.php");
4          if ($show) {          if ($show) {
                 $section_menu = "main";  
5                  $arts = newsLoad($id, $cat);                  $arts = newsLoad($id, $cat);
6                  newsShow(array_shift($arts));                  newsShow(array_shift($arts));
7          } else {          } else {
# Line 18  Line 17 
17                  $cat = "l";                  $cat = "l";
18                  if ($section_menu == "sex") {                  if ($section_menu == "sex") {
19                          $cat = "x";                          $cat = "x";
20                          if ($section_menu2 == "qa") $cat = "q";                          # if ($section_menu2 == "qa") $cat = "q";
21                          if ($section_menu2 == "rjecnik") $cat = "j";                          if ($section_menu2 == "rjecnik") $cat = "j";
22                  }                  }
23                  if ($section_menu == "zdrava") {                  if ($section_menu == "zdrava") {
24                          $cat = "h";                          $cat = "h";
25                            if ($section_menu2 == "tema") $cat = "a";
26                          if ($section_menu2 == "nutri") $cat = "n";                          if ($section_menu2 == "nutri") $cat = "n";
27                          if ($section_menu2 == "qa") $cat = "a";                          # if ($section_menu2 == "qa") $cat = "a";
28                          if ($section_menu2 == "kuhanje") $cat = "v";                          if ($section_menu2 == "kuhanje") $cat = "v";
29                          if ($section_menu2 == "dtd") $cat = "y";                          # if ($section_menu2 == "dtd") $cat = "y";
30                          if ($section_menu2 == "vrijednosti") $cat = "i";                          # if ($section_menu2 == "vrijednosti") $cat = "i";
31                  }                  }
32                  if ($section_menu == "fitness") {                  if ($section_menu == "fitness") {
33                          $cat = "f";                          $cat = "f";
34                          if ($section_menu2 == "qa") $cat = "1";                          if ($section_menu2 == "tema") $cat = "1";
35                            # if ($section_menu2 == "qa") $cat = "1";
36                          if ($section_menu2 == "trening") $cat = "g";                          if ($section_menu2 == "trening") $cat = "g";
37                          if ($section_menu2 == "istezanje") $cat = "s";                          if ($section_menu2 == "istezanje") $cat = "s";
38                          if ($section_menu2 == "ozljede") $cat = "2";                          if ($section_menu2 == "ozljede") $cat = "2";
39                          if ($section_menu2 == "trener") $cat = "b";                          # if ($section_menu2 == "trener") $cat = "b";
40                          if ($section_menu2 == "vjezbe") $cat = "u";                          if ($section_menu2 == "vjezbe") $cat = "u";
41                          if ($section_menu2 == "fitcenter") $cat = "k";                          # if ($section_menu2 == "fitcenter") $cat = "k";
42                  }                  }
43                  if (!$offset) $offset = 0;                  if (!$offset) $offset = 0;
44                  $empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0);                  $empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0);
# Line 67  Line 68 
68                                          "id" => $art["id"],                                          "id" => $art["id"],
69                                          "title" => MyEscape($art["title"]),                                          "title" => MyEscape($art["title"]),
70                                          "lead" => MyEscape($art["lead"]),                                          "lead" => MyEscape($art["lead"]),
71                                            "pgfs" => (count($art["text"]) > 0) ? true : false,
72                                          "titlepic_url" => MyEscape($art["pic_url"]),                                          "titlepic_url" => MyEscape($art["pic_url"]),
73                                          "titlepic_alt" => MyEscape($art["pic_alt"]),                                          "titlepic_alt" => MyEscape($art["pic_alt"]),
74                                          "titlepic_type" => $art["pic_pos"],                                          "titlepic_type" => $art["pic_pos"],

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26