Subversion-Projekte lars-tiefland.shop_ns

Revision

Revision 22 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 22 Revision 46
Zeile 38... Zeile 38...
38
                AND
38
                AND
39
                    language='" . $GLOBALS["INI"]["language"] . "'
39
                    language='" . $GLOBALS["INI"]["language"] . "'
40
            ";
40
            ";
41
            $res = $GLOBALS["db"]->query( $sql );
41
            $res = $GLOBALS["db"]->query( $sql );
42
            $row = $res->fetchRow();
42
            $row = $res->fetchRow();
43
            $this->id = $row["id"];
43
            if ( $row["id"] )
44
            $this->name = $row["name"];
-
 
45
            $this->description = $row["description"];
-
 
46
            $this->father = $row["father"];
-
 
47
            if ( $GLOBALS["INI"]["alias"] == 0 )
-
 
48
            {
44
            {
49
                $this->link = "/index.php?navigation=" . $this->id;
45
                $this->id = $row["id"];
50
            }
46
                $this->name = $row["name"];
-
 
47
                $this->description = $row["description"];
51
            else
48
                $this->father = $row["father"];
-
 
49
                if ( $GLOBALS["INI"]["alias"] == 0 )
52
            {
50
                {
53
                $path = getPath( $this->father );
51
                    $this->link = "/index.php?navigation=" . $this->id;
-
 
52
                }
54
                foreach ( $path as $dir )
53
                else
55
                {
54
                {
-
 
55
                    $path = getPath( $this->father );
-
 
56
                    foreach ( $path as $dir )
-
 
57
                    {
56
                    $link[] = $dir->id . "-" . str2url( $dir->name );
58
                        $link[] = $dir->id . "-" . str2url( $dir->name );
-
 
59
                    }
-
 
60
                    $link[] = $this->id . "-" . Str2url( $this->name );
-
 
61
                    $link = "/" . implode( "/", $link ) . "/";
-
 
62
                    $this->link = $link;
57
                }
63
                }
58
                $link[] = $this->id . "-" . Str2url( $this->name );
64
                $this->bilder = directory_bild::Liste( $this->id );
59
                $link = "/" . implode( "/", $link ) . "/";
-
 
60
                $this->link = $link;
65
                $this->artikelstamm = $row["artikelstamm"];
61
            }
66
            }
62
            $this->bilder = directory_bild::Liste( $this->id );
-
 
63
            $this->artikelstamm = $row["artikelstamm"];
-
 
64
        }
67
        }
Zeile 65... Zeile 68...
65
 
68
 
66
        public static function Liste( $father, $order = "kennung" )
69
        public static function Liste( $father, $order = "kennung" )
67
        {
70
        {