Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
    /**
4
     * @package   Content-management
5
     * @author    Webagentur Niewerth <tiefland@weban.de>
6
     * @copyright 2011 Webagentur Niewerth
7
     * @license   propietary http://www.weban.de
8
     * @version   $Rev: 768 $
9
     * @filesource
10
     *
11
     */
12
 
13
    /**
14
     *
15
     * @package   Content-management
16
     * @author    Webagentur Niewerth <tiefland@weban.de>
17
     * @copyright 2011 Webagentur Niewerth
18
     */
19
 
20
    // SVN: $Id: suche_login.php 768 2011-10-28 06:34:37Z tiefland $
21
 
22
    require_once "../toolbox/common.php";
23
 
24
    //var_dump($_POST);
25
    $suche = Weban_Utils::clean_global_input( "suche" );
26
    if ( $suche )
27
    {
28
        $sql = "SELECT
29
                id,
30
                CONCAT(vorname,' ', name1) AS login_name,
31
                name2 AS firma,
32
                plz
33
            FROM
34
                Logins
35
            WHERE
36
                id LIKE '%$suche%'
37
            OR
38
                vorname LIKE '%$suche%'
39
            OR
40
                name1 LIKE '%$suche%'
41
            OR
42
                name2 LIKE '%$suche%'
43
            OR
44
                plz LIKE '%suche%'
45
        ";
46
        $res = mysql_query( $sql );
47
        echo mysql_error();
48
        while ( $row = mysql_fetch_assoc( $res ) )
49
        {
50
            $logins[] = $row;
51
        }
52
        $GLOBALS["ui"]->assign( "logins", $logins );
53
        $GLOBALS["ui"]->display( "suche_login.tpl" );
54
    }
55
?>