Ordering of attractive colloids near a planar wall : theory and simulation