Just like PHPNuke themes, Drupal uses PHP-based themes mixed with HTML markup.
Both have similar functions for header, footer, box and story (node).

For comparision, you can download a classic PHPNuke theme NukeNews, rewritten as Drupal theme.

It works with Drupal 3.0.x version, but with minor tweaks it should be work in 4.0 too.