Onodi cells and Haller cells are seen in relation to following respectively -
Optic nerve and floor of the orbit
Optic nerve and internal carotid artery
Optic nerve and nasolacrimal duct
Orbital floor and nasolacrimal duct
The Onodi and Haller cells are posterior ethmoidal air cells.