Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php

    /**
     * @package   Content-management
     * @author    Webagentur Niewerth <tiefland@weban.de>
     * @copyright 2011 Webagentur Niewerth
     * @license   propietary http://www.weban.de
     * @version   $Rev: 768 $
     * @filesource
     * 
     */

    /**
     * 
     * @package   Content-management
     * @author    Webagentur Niewerth <tiefland@weban.de>
     * @copyright 2011 Webagentur Niewerth
     */

    // SVN: $Id: suche_login.php 768 2011-10-28 06:34:37Z tiefland $

    require_once "../toolbox/common.php";

    //var_dump($_POST);
    $suche = Weban_Utils::clean_global_input( "suche" );
    if ( $suche )
    {
        $sql = "SELECT
                id,
                CONCAT(vorname,' ', name1) AS login_name,
                name2 AS firma,
                plz
            FROM
                Logins
            WHERE
                id LIKE '%$suche%'
            OR
                vorname LIKE '%$suche%'
            OR
                name1 LIKE '%$suche%'
            OR
                name2 LIKE '%$suche%'
            OR
                plz LIKE '%suche%'
        ";
        $res = mysql_query( $sql );
        echo mysql_error();
        while ( $row = mysql_fetch_assoc( $res ) )
        {
            $logins[] = $row;
        }
        $GLOBALS["ui"]->assign( "logins", $logins );
        $GLOBALS["ui"]->display( "suche_login.tpl" );
    }
?>