if(strlen($divClass) > 0) $divClass .= ' installdone'; else $divClass = 'installdone'; // The current database is removed from $successInstall, which // indicates that at the end of this foreach, $successInstall // should be empty - meaning all successfully installed databases // do in fact exist. If $successInstall has any elements left when // this foreach is done - then remove those databases from sessions! $key = array_search($db['name'], $successInstall); unset($successInstall[$key]); } // The name caption of the database is formed in html $caption = $db['name'].' '.$page->Discrete('('.$db['tbcount'].')'); // Add a radio box for this database $page->FormRadiobox($db['name'], 'database', $caption, $optional, $divClass); // Get the data from HTML queue back, and add the HTML 'values' // from the returned queue item array into a table $html = $page->PopQueue(); $page->AddTableData($html); } $page->EndTable(); // If there are some elements left in $successInstall, then those databases // do not exist and there cannot be a successfull installation on a database // that does not exist - sessions need to be updated if(count($successInstall) > 0)