We investigate the ordered morphologies occurring in thin-films diblock copolymer. For temperatures above the order-disorder transition and for an arbitrary two-dimensional surface pattern, we use a Ginzburg-Landau expansion of the free energy to obtain a linear response description of the copolymer melt. The ordering in the directions perpendicular and parallel to the surface are coupled. Three dimensional structures existing when a melt is confined between two surfaces are examined. Below the order-disorder transition we find tilted lamellar phases in the presence of striped surface fields.