Subversion-Projekte lars-tiefland.content-management

Revision

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

Revision 1 Revision 2
Zeile 3... Zeile 3...
3
    /**
3
    /**
4
     * @package   Content-management
4
     * @package   Content-management
5
     * @author    Lars Tiefland <tiefland@weban.de>
5
     * @author    Lars Tiefland <tiefland@weban.de>
6
     * @copyright 2010 Webagentur Niewerth
6
     * @copyright 2010 Webagentur Niewerth
7
     * @license   propietary http://www.weban.de
7
     * @license   propietary http://www.weban.de
8
     * @version   $Rev: 3931 $
8
     * @version   $Rev: 4251 $
9
     * @filesource
9
     * @filesource
10
     * 
10
     * 
11
     */
11
     */
Zeile 12... Zeile 12...
12
 
12
 
Zeile 15... Zeile 15...
15
     * @package   Content-management
15
     * @package   Content-management
16
     * @author    Lars Tiefland <tiefland@weban.de>
16
     * @author    Lars Tiefland <tiefland@weban.de>
17
     * @copyright 2010 Webagentur Niewerth
17
     * @copyright 2010 Webagentur Niewerth
18
     */
18
     */
Zeile 19... Zeile 19...
19
 
19
 
Zeile 20... Zeile 20...
20
    // SVN: $Id: best_manu_search.php 3931 2011-09-16 08:17:57Z tiefland $
20
    // SVN: $Id: best_manu_search.php 4251 2012-03-26 08:29:10Z tiefland $
21
 
21
 
22
    require_once '../includes/system/function.getPreis.php';
22
    require_once '../includes/system/function.getPreis.php';
23
    require_once "./includes/bestellungen/system/artikelDatabase.php";
23
    require_once "./includes/bestellungen/system/artikelDatabase.php";
Zeile 45... Zeile 45...
45
            Father > -1
45
            Father > -1
46
    ";
46
    ";
47
    $res = mysql_query( $sql );
47
    $res = mysql_query( $sql );
48
    while ( $row = mysql_fetch_assoc( $res ) )
48
    while ( $row = mysql_fetch_assoc( $res ) )
49
    {
49
    {
50
        $row["preis_mb"] = getPreisFromPreisalgo( $_POST["shop"], $row["ID"],
50
        $row["preis_mb"] = getPreisFromPreisalgo( $_POST["shop"], $row["ID"], $db );
-
 
51
        $sql_kp = "SELECT
-
 
52
                preis
-
 
53
            FROM
-
 
54
                preise_to_login
-
 
55
            WHERE
-
 
56
                login_id = " . $_SESSION["best_manu.php"]["kunden_id"] . "
-
 
57
            AND
-
 
58
                shop_id = " . $_POST["shop"] . "
-
 
59
            AND
-
 
60
                artikel_id = " . $row["ID"] . "
-
 
61
        ";
-
 
62
        $res_kp = mysql_query( $sql_kp );
-
 
63
        $row_kp = mysql_fetch_assoc( $res_kp );
-
 
64
        $kp = unserialize( $row_kp["preis"] );
-
 
65
        $kp = $kp["preis"][0];
51
            $db );
66
        if ( $kp )
-
 
67
        {
-
 
68
            $row["preis_kp"] = $kp;
-
 
69
        }
52
        $artikel[] = $row;
70
        $artikel[] = $row;
53
    }
71
    }
54
    if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )
72
    if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )
55
    {
73
    {
56
        $sql = "SELECT
74
        $sql = "SELECT
Zeile 67... Zeile 85...
67
        $res = mysql_query( $sql );
85
        $res = mysql_query( $sql );
68
        while ( $row = mysql_fetch_assoc( $res ) )
86
        while ( $row = mysql_fetch_assoc( $res ) )
69
        {
87
        {
70
            $row["preis_mb"] = getPreisFromPreisalgo( $_POST["shop"], $row["ID"],
88
            $row["preis_mb"] = getPreisFromPreisalgo( $_POST["shop"], $row["ID"],
71
                $db );
89
                $db );
-
 
90
            $sql_kp = "SELECT
-
 
91
                    preis
-
 
92
                FROM
-
 
93
                    preise_to_login
-
 
94
                WHERE
-
 
95
                    login_id = " . $_SESSION["best_manu.php"]["kunden_id"] . "
-
 
96
                AND
-
 
97
                    shop_id = " . $_POST["shop"] . "
-
 
98
                AND
-
 
99
                    artikel_id = " . $row["ID"] . "
-
 
100
            ";
-
 
101
            $res_kp = mysql_query( $sql_kp );
-
 
102
            $row_kp = mysql_fetch_assoc( $res_kp );
-
 
103
            $kp = unserialize( $row_kp["preis"] );
-
 
104
            $kp = $kp["preis"][0];
-
 
105
            if ( $kp )
-
 
106
            {
-
 
107
                $row["preis_kp"] = $kp;
-
 
108
            }
72
            $artikel[] = $row;
109
            $artikel[] = $row;
73
        }
110
        }
74
    }
111
    }
75
    $GLOBALS["ui"]->assign( "artikel", $artikel );
112
    $GLOBALS["ui"]->assign( "artikel", $artikel );
76
    $GLOBALS["ui"]->assign( "web_rechte", $web_rechte );
113
    $GLOBALS["ui"]->assign( "web_rechte", $web_rechte );