m_iCurrentStep = $iCurrentStep; $this->m_aSteps = $aSteps; } public function output() { $aSteps = array(); $iIndex = 0; foreach($this->m_aSteps as $sStepTitle) { $iIndex++; $sStyle = ($iIndex == $this->m_iCurrentStep) ? 'wizActiveStep' : 'wizStep'; $aSteps[] = "
$sStepTitle
"; } $sWizardHeader = "

{$this->s_title}

\n".implode("
", $aSteps)."
\n"; $this->s_content = "$sWizardHeader
".$this->s_content."
"; parent::output(); } } ?>