Both of them are magnets coiled by wires.
1. The wire coiled in the first diagram, the wire is having current, Making the magnetic feild of the magnet more........
2. The wire coiling the magnet is here not having electric current making the magnetic feild smaller