While TEMP and WITH are both technically temporary off market statuses, the length of time the listing will be in that status distinguishes them from each other. There is no set time that a listing has to remain in either status. You and your seller determine that based on their needs/desires.
Temporarily Off Market (TEMP) is generally used when a listing needs to be off the market for a short period of time, typically up to a couple of weeks (floors are being redone, house is being painted, etc).
Withdrawn (WITH) is used when a listing needs to come off the market for a longer period of time. In most instances, the listing will be left in the WITH status until it reaches its expiration date.
In both instances (TEMP and WITH), there is still a valid listing contract.
If you have a For Sale sign on the property, you may leave it up while the listing is in TEMP or WITH.