linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file _ajax_actor_autocomplete.php

Documentation is available at _ajax_actor_autocomplete.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage workshop
  5.  * @author Simon Georget <simon@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. include_once('../config/define.php');
  12.  
  13. //////////// Check Droits utilisateur ////////////
  14. if (!$l21auth->hasRight('project')) ReloadIndex('admin');
  15. ////////////
  16.  
  17. include_once('../project/'.SQL.'.inc.php');
  18.  
  19. $data $sql_object->DBSelect(SQL_getActorsList());
  20.  
  21. $response array();
  22.  
  23. foreach ($data as $i => $value)
  24. {
  25.   $fullname '';
  26.   if(!empty($value['actor_name'])) {
  27.       $fullname formatText($value['actor_name']'2HTML');
  28.       $str_id $user['actor_id'];
  29.   }
  30.   $response[array($str_id$fullnamenull$fullname);
  31. }
  32.  
  33. header('Content-type: application/json');
  34. echo json_encode($response);

Documentation generated on Thu, 20 Mar 2014 16:49:44 +0100 by phpDocumentor 1.4.1