Compact Toroidal Plasma with Toroidal and Poloidal Magnetic Fields