. */ /** * @brief List of docserver_locations for autocompletion * * * @file * @author Laurent Giovannoni * @date $date$ * @version $Revision$ * @ingroup life_cycle */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("core".DIRECTORY_SEPARATOR."core_tables.php"); $db = new dbquery(); $db->connect(); if($_SESSION['config']['databasetype'] == "POSTGRESQL") { $db->query("select docserver_location_id as tag from "._DOCSERVER_LOCATIONS_TABLE_NAME." where docserver_location_id ilike '".$_REQUEST['what']."%' order by docserver_location_id"); } else { $db->query("select docserver_location_id as tag from "._DOCSERVER_LOCATIONS_TABLE_NAME." where docserver_location_id like '".$_REQUEST['what']."%' order by docserver_location_id"); } $listArray = array(); while($line = $db->fetch_object()) { array_push($listArray, $line->tag); } echo "";