include ("../common/public.php") ; session_start() ; $NomeFile = '../agenti/confronta_agenti_vs_fornitori.php' ; $_SESSION["Carica"] = $NomeFile ; $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 nome " ; else $query = " select * from agenti A where (A.Attivo = 1 or (A.Attivo = 0 and YEAR(A.DataDisattivazione) > $anno)) and A.idagenti != 4 and A.idagenti != 5 and A.idagenti != 9 and A.idagenti != 10 order by nome " ; $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 |