Beispiel #1
0
    $_POST['firstName'] = "John";
    $_POST['surname1'] = "Doe";
    $_POST['surname2'] = "Smith";
    $_POST['adminAddress'] = "";
    $_POST['adminPhone'] = "";
    $_POST['passwd'] = "";
    $_POST['email'] = "";
    $_POST['adminTheme'] = 1;
    // OpenClinic theme by default
}
// end step 0
/**
 * i18n l10n
 */
require_once "../config/i18n.php";
$locale = I18n::languageList();
// end i18n l10n
/**
 * XHTML Start (XML prolog, DOCTYPE, title page and meta data)
 */
$title = _("OpenClinic Install Wizard");
require_once "../layout/xhtml_start.php";
echo HTML::start('link', array('rel' => 'stylesheet', 'href' => '../css/wizard.css', 'type' => 'text/css'), true);
echo HTML::insertScript('wizard.js');
echo HTML::end('head');
echo HTML::start('body');
//echo "<!-- Header -->\n";
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'], 'onsubmit' => 'return validateInstall();'));
//Error::debug($_POST);
$_POST = Check::safeArray($_POST);
echo Form::hidden("alreadyVisited", 1, array('id' => 'h_alreadyVisited'));
 */
require_once dirname(__FILE__) . "/../lib/exe_protect.php";
executionProtection(__FILE__);
require_once "../lib/File.php";
$body = array();
$row = Form::label("session_timeout", _("Session Timeout") . ":", array('class' => 'required'));
$row .= Form::text("session_timeout", $formVar["session_timeout"], array('size' => 3, 'error' => isset($formError["session_timeout"]) ? $formError["session_timeout"] : null));
$row .= _("minutes");
$body[] = $row;
$row = Form::label("items_per_page", _("Search Results") . ":", array('class' => 'required'));
$row .= Form::text("items_per_page", $formVar["items_per_page"], array('size' => 3, 'error' => isset($formError["items_per_page"]) ? $formError["items_per_page"] : null));
$row .= _("items per page") . "**";
$body[] = $row;
if (defined("OPEN_DEMO") && !OPEN_DEMO) {
    $row = Form::label("language", _("Language") . ":");
    $languageList = I18n::languageList();
    $row .= Form::select("language", $languageList, $formVar["language"]);
    $body[] = $row;
} elseif (defined("OPEN_DEMO") && OPEN_DEMO) {
    $row = Form::hidden("language", "en");
    $body[] = $row;
}
$row = Form::label("id_theme", _("Theme by default") . ":");
$row .= Form::selectTable("theme_tbl", "id_theme", $formVar["id_theme"], "theme_name");
$body[] = $row;
$appFields = Form::fieldset(_("Application"), $body);
$body = array();
$row = Form::label("clinic_name", _("Clinic Name") . ":");
$row .= Form::text("clinic_name", isset($formVar["clinic_name"]) ? $formVar["clinic_name"] : null, array('size' => 40, 'maxlength' => 128, 'error' => isset($formError["clinic_name"]) ? $formError["clinic_name"] : null));
$body[] = $row;
$row = Form::label("clinic_hours", _("Clinic Hours") . ":");