Fan control help needed

how is all this wired ?
could you post a schematic ?