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: 4003 $
8
     * @version   $Rev: 4229 $
9
     * @filesource
9
     * @filesource
10
     * 
10
     * 
11
     */
11
     */
Zeile 12... Zeile 12...
12
 
12
 
Zeile 19... Zeile 19...
19
 
19
 
20
    require_once "../Online-Shop/connect2.php";
20
    require_once "../Online-Shop/connect2.php";
Zeile 21... Zeile 21...
21
    require_once "Weban_Smarty.class.php";
21
    require_once "Weban_Smarty.class.php";
22
 
22
 
23
    header( "Last-Modified: " . time() );
23
    header( "Last-Modified: " . time() );
24
    // SVN: $Id: kundensuche.php 4003 2011-10-13 13:56:26Z erling $
24
    // SVN: $Id: kundensuche.php 4229 2012-02-23 08:14:36Z tiefland $
25
    $input = filter_input_array( INPUT_POST, array( "id" =>
25
    $input = filter_input_array( INPUT_POST, array( "id" =>
26
        FILTER_SANITIZE_NUMBER_INT, "Name1" => FILTER_SANITIZE_STRING, "PLZ" =>
26
        FILTER_SANITIZE_NUMBER_INT, "Name1" => FILTER_SANITIZE_STRING, "PLZ" =>
27
        FILTER_SANITIZE_NUMBER_INT, "Ort" => FILTER_SANITIZE_STRING, "Name2" =>
27
        FILTER_SANITIZE_NUMBER_INT, "Ort" => FILTER_SANITIZE_STRING, "Name2" =>
Zeile 86... Zeile 86...
86
        }
86
        }
87
        if ( is_array( $search ) )
87
        if ( is_array( $search ) )
88
        {
88
        {
89
            $where = implode( " AND ", $search );
89
            $where = implode( " AND ", $search );
90
            $sql = "SELECT
90
            $sql = "SELECT
91
                ID,
91
                    ID,
92
                Vorname,
92
                    Vorname,
93
                Name1,
93
                    Name1,
94
                Name2,
94
                    Name2,
95
                PLZ,
95
                    PLZ,
96
                Ort,
96
                    Ort,
97
                E_Mail,
97
                    E_Mail,
98
                AP_Bemerkung
98
                    AP_Bemerkung
99
            FROM
99
                FROM
100
                Logins
100
                    Logins
101
            WHERE
101
                WHERE
102
                $where
102
                    $where
103
        ";
103
            ";
104
            $res = mysql_query( $sql );
104
            $res = mysql_query( $sql );
105
            while ( $row = mysql_fetch_assoc( $res ) )
105
            while ( $row = mysql_fetch_assoc( $res ) )
106
            {
106
            {
107
                $daten[] = $row;
107
                $daten[] = $row;
108
            }
108
            }