Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1446 Revision 1447
Zeile 21... Zeile 21...
21
        {
21
        {
22
            require_once "styles.php";
22
            require_once "styles.php";
23
        }
23
        }
24
    }
24
    }
25
    \View::share( "webs", $GLOBALS["web"] );
25
    \View::share( "webs", $GLOBALS["web"] );
-
 
26
    $c_bestellarten = array();
-
 
27
    $c_shops = array();
-
 
28
    $d_shops = array();
26
    $ba = getBestellarten();
29
    $ba = OrderType::get();
27
    foreach ( $ba as $ba_id => $bestellart )
30
    foreach ( $ba as $ba_id => $bestellart )
28
    {
31
    {
29
        $c_bestellarten[$bestellart["id"]] = $bestellart["name"];
32
        $c_bestellarten[$bestellart->id] = $bestellart->name;
30
    }
33
    }
31
    $shops = Shop::get();
34
    $shops = Shop::get();
32
    foreach ( $shops as $s_id => $shop )
35
    foreach ( $shops as $s_id => $shop )
33
    {
36
    {
34
        $c_shops[$shop->id] = $shop->name;
37
        $c_shops[$shop->id] = $shop->name;
35
        $d_shops[$shop->id] = $shop;
38
        $d_shops[$shop->id] = $shop;
36
    }
39
    }
-
 
40
    \View::share( "c_bestellarten", §c_bestellarten );
37
    \View::share( "c_shops", $c_shops );
41
    \View::share( "c_shops", $c_shops );
38
    \View::share( "d_shops", $d_shops );
42
    \View::share( "d_shops", $d_shops );
39
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
43
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
40
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
44
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
41
    {
45
    {