After you upgrade your SharePoint from 2007 to 2010. The you an option to upgrade the UI using “Visual Upgrade”.
IF you upgraded it to the new UI in 2010 and for some reasons you need to back to 2007 UI.
Open powershell and write the followoing Cmdlets:
for more information visit Microsoft here.