Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 176 | Revision 180 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 176 Revision 178
Zeile 214... Zeile 214...
214
            $GLOBALS["zeit"][ __function__ . "_" . $father ] = 0;
214
            $GLOBALS["zeit"][ __function__ . "_" . $father ] = 0;
215
        }
215
        }
216
        $GLOBALS["count"][ __function__ . "_" . $father ]++;
216
        $GLOBALS["count"][ __function__ . "_" . $father ]++;
217
        $navigation = array();
217
        $navigation = array();
218
        $time = microtime( true );
218
        $time = microtime( true );
219
        $order_by = "Kennung, Name";
219
        $order_by = "kennung, name";
220
        $sql_erw = "AND Artikelstamm = 0";
220
        $sql_erw = "AND artikelstamm = 0";
221
        if ( isset( $GLOBALS['INI']['navigation']['order_by'] ) )
221
        if ( isset( $GLOBALS['INI']['navigation']['order_by'] ) )
222
        {
222
        {
223
            $order_by = $GLOBALS['INI']['navigation']['order_by'];
223
            $order_by = $GLOBALS['INI']['navigation']['order_by'];
224
        }
224
        }
Zeile 236... Zeile 236...
236
        $sel = "";
236
        $sel = "";
Zeile 237... Zeile 237...
237
 
237
 
238
        //if ( !$_SESSION['mainNavigation'] )
238
        //if ( !$_SESSION['mainNavigation'] )
239
        {
239
        {
240
            $sql = 'SELECT
240
            $sql = 'SELECT
241
                    ID AS id,
241
                    id,
242
                    name,
242
                    name,
-
 
243
                    status,
243
                    status,
244
                    slug,
244
                    url,
245
                    url,
245
                    Beschreibung,
246
                    description,
246
                    short_line_1
247
                    short_line_1
247
                    ' . $sel . '
248
                    ' . $sel . '
248
                FROM
249
                FROM
249
                    directory
250
                    directory
250
                WHERE
251
                WHERE
251
                    Father = ' . $father . '
252
                    directory_id = ' . $father . '
Zeile 252... Zeile 253...
252
                    ' . $sql_erw . '
253
                    ' . $sql_erw . '
253
 
254
 
254
                ORDER BY
255
                ORDER BY
Zeile 265... Zeile 266...
265
                    {
266
                    {
266
                        $row["dirLink"] = $row["url"];
267
                        $row["dirLink"] = $row["url"];
267
                    }
268
                    }
268
                    else
269
                    else
269
                    {
270
                    {
270
                        $row["dirLink"] = "/" . $row['id'] . "-" . str2url( $row['name'] ) . "/";
271
                        $row["dirLink"] = "/" . $row['id'] . "-" . $row['slug'] . "/";
271
                    }
272
                    }
272
                    $topLvl_arr[] = $row;
273
                    $topLvl_arr[] = $row;
273
                    $topLvl = $row["id"];
274
                    $topLvl = $row["id"];
274
                    //$specialItems['specialItems'][$row['id']] = getItems( $row['id'] );
275
                    //$specialItems['specialItems'][$row['id']] = getItems( $row['id'] );