/*********************** * VERSIONE 3.0 OK ***********************/ include ("../common/public.php") ; $gime = date("d/m") ; if ($profilo < 3) $query = " select * from agenti A where A.Attivo = 1 or (A.Attivo = 0 and YEAR(A.DataDisattivazione) > $anno) order by A.nome " ; else $query = " select * from agenti A where ( A.Attivo = 1 or (A.Attivo = 0 and YEAR(A.DataDisattivazione) > $anno)) and idagenti != 4 and idagenti != 5 and idagenti != 9 and idagenti != 10 order by A.nome " ; debug (0, $query) ; $db->query($query) ; while ($db->next_record()) { $ageid[] = $db->f("IdAgenti") ; $agenome[] = $db->f("Nome") ; } ?>
| Solo Agenti | Da Agente al Cliente | Da Agente al Fornitore |