/** * Removes the client from the "clients" and the "requests" * array. * * @param AlphaRPC\Manager\ClientHandler\Client $client * * @return \AlphaRPC\Manager\ClientHandler\ClientBucket */ public function remove(Client $client) { $clientId = $client->getId(); if (!isset($this->clients[$clientId])) { return $this; } $requestId = $client->getRequest(); $this->removeClientForRequest($clientId, $requestId); unset($this->clients[$clientId]); return $this; }
case "du": $critere = "has_unpaid desc,has_devis desc, c.nom"; break; case "total_du_ht": $critere = "total_du_ht DESC, has_devis desc, c.nom"; break; case "ca_total_ht": $critere = "ca_total_ht desc,has_unpaid desc, c.nom"; break; case "ca_total_ht_year": $critere = "ca_total_ht_year desc,has_unpaid desc, c.nom"; break; } $total_dehors = 0; // Find matching companies $query = sprintf(Client::getRequest() . "WHERE %s " . "ORDER BY %s", $where_clause, $critere); $result = mysql_query($query) or wf_mysqldie(); // Redirect to "fiche_prospect" if the user is searching a company and there is // only one result if (isset($_GET['namelike']) and mysql_num_rows($result) == 1) { $row = mysql_fetch_assoc($result); header("Location: fiche_prospect.php?onglet=billing&id={$row['id_client']}"); exit; } $title = _("Companies"); $roles = "manager,employee,accounting"; include "../top.php"; include "nav.php"; ?> <table border="0" cellspacing="0" cellpadding="0"> <tr valign="top"><td rowspan="2">