Matrix pricing structure for ubercart?
If I'm understanding correctly, I'd recommend doing "Shared Hosting - Package A" as one product, and "Shared Hosting - Package B" as another, rather than a single product called "Shared Hosting" that has two attributes. (You can add the time period as a single attribute to each product.)

You can still style the matrix as you have done above (on a pricing page) and include links to purchase at the bottom of the column for each package.