Help with Inventory

I need help coding a Diablo or Resident Evil 4 type inventory. If someone could help me make this, or at least give me some clue on how to do this because I cant really think of any way to do this.

Here is the Resident Evil 4 Inventory: