git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
a7244bd
Branches
Tags
master
ticket
webinterface.git
modules
crm
crm_ajax.php
CRM still incomplete and unusable
bernd
commited
a7244bd
at 2008-12-18 08:09:00
crm_ajax.php
Blame
History
Raw
<?php require_once('inc/base.php'); require_once('inc/debug.php'); require_once('session/start.php'); require_once('crm.php'); require_once('class/customer.php'); require_role(ROLE_SYSADMIN); $ajax_formtoken = generate_form_token('crm_crm_ajax'); $result = array_unique(find_customers($_GET['q'])); sort($result); foreach ($result as $val) { $c = new Customer((int) $val); echo '<p style="margin-bottom: 0.5em;">'.internal_link('select_customer', 'Kunde '.$c->id.': <strong>'.$c->fullname.'</strong>', 'customer='.$c->id.'&formtoken='.$ajax_formtoken); echo '</p>'; } die();