$page isn't passed to smarty. You'd need to edit scripts/showflat.inc.php, around line 1397 of that file you'll see where the variables are passed to smarty and you'd need to add your page variable in there.