require_once("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT . "/comm/prospect/class/prospect.class.php"); require_once(DOL_DOCUMENT_ROOT . "/core/class/html.formother.class.php"); require_once(DOL_DOCUMENT_ROOT . "/core/db/couchdb/lib/couchAdmin.php"); $langs->load("companies"); $langs->load("customers"); $langs->load("suppliers"); $langs->load("commercial"); /* Array of database columns which should be read and sent back to DataTables. Use a space where * you want to insert a non-database field (for example a counter or static image) */ //print substr($conf->couchdb->host, 7);exit; $couchdb = new couchClient("http://"."Administrator:admin@".substr($conf->couchdb->host, 7).':'.$conf->couchdb->port.'/',$conf->couchdb->name); $couchdb->useDatabase("_users"); /* * Paging */ //$sLimit = " LIMIT 3"; /* search basic */ $sWhere = ""; // If the user must only see his prospect, force searching by him if (!$user->rights->societe->client->voir && !$socid) { $search_sale = $user->id; } $flush=0; if($flush)