* */ header( 'Expires: -1' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Pragma: no-cache' ); header('Content-Type: text/html;charset=UTF-8'); require_once('../../../config/cis.config.inc.php'); require_once('../../../include/functions.inc.php'); require_once('../../../include/mitarbeiter.class.php'); // ------------------------------------------------------------------------------------------ // Parameter Aufruf uebernehmen // ------------------------------------------------------------------------------------------ $work=trim(isset($_REQUEST['work'])?$_REQUEST['work']:(isset($_REQUEST['ajax'])?$_REQUEST['ajax']:false)); $work=strtolower($work); // ------------------------------------------------------------------------------------------ // Datenlesen // ------------------------------------------------------------------------------------------ switch ($work) { // Suche nach anprechperson -> mitarbeiter case 'outgoing_ansprechperson_search': $search=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:'')); if (is_null($search) ||$search=='') exit(); $ma = new mitarbeiter(); $ma->search($search); foreach($ma->result as $row) echo html_entity_decode($row->vorname).' '.html_entity_decode($row->nachname).'|'.html_entity_decode($row->uid)."\n"; break; } exit(); ?>