コード例 #1
0
ファイル: overview.php プロジェクト: wildanSawaludin/nodcms
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 'overview';
$sett = false;
if (isset($steps[$step])) {
    $sett = $steps[$step];
}
// If the settings are 'false', then the step is not
// configured in the $steps variable - show $config overview!
if ($sett === false) {
    $page->MainTitle('Main Configuration', 'settings');
    $page->StartTable(2, array('class' => 'dbtests'));
    foreach ($config as $key => $value) {
        $show = GetSettingsValue($value);
        $page->AddTableData('<b>' . $key . '</b>', array('style' => 'text-align:right; padding-right:12px;'));
        $page->AddTableData('<tt>' . $show . '</tt>');
    }
    $page->EndTable();
    $page->Paragraph();
    $page->MainTitle('Installer Keywords', 'keywords');
    $page->StartTable(2, array('class' => 'dbtests'));
    foreach ($keywords as $key => $value) {
        if (is_array($value)) {
            $page->AddTableData('<b>' . $key . '</b>', array('style' => 'text-align:right; padding-right:12px;'));
            $page->AddTableData('<span style="color:#BEBEBE">' . count($value) . ' keywords</span>');
            foreach ($value as $wordkey => $wordvalue) {
                $show = GetSettingsValue($wordvalue);
                $page->AddTableData('');
                if (strlen($show) > 0) {
                    $page->AddTableData('<tt>' . $wordkey . ' = <b>' . $show . '</b></tt>');
                } else {
                    $page->AddTableData('<tt>' . $wordkey . '</tt>');
                }