Beispiel #1
0
           form_entry('campusForm', text_input('campusForm', 40), $langCampusName) .
           form_entry('helpdeskForm', text_input('helpdeskForm', 40), $langHelpDeskPhone) .
           form_entry('faxForm', text_input('faxForm', 40), $langHelpDeskFax) .
           form_entry('helpdeskmail', text_input('helpdeskmail', 40), "$langHelpDeskEmail (**)") .
           form_entry('institutionForm', text_input('institutionForm', 40), $langInstituteShortName) .
           form_entry('institutionUrlForm', text_input('institutionUrlForm', 40), $langInstituteName) .
           form_entry('postaddressForm', textarea_input('postaddressForm', 3, 40), $langInstitutePostAddress) .
           form_entry('eclass_stud_reg',
                      selection_input(array('2' => $langDisableEclassStudRegType,
                                            '1' => $langReqRegUser,
                                            '0' => $langDisableEclassStudReg),
                                      'eclass_stud_reg'),
                      "$langUserAccount $langViaeClass") .
           form_entry('eclass_prof_reg',
                      selection_input(array('1' => $langReqRegProf,
                                            '0' => $langDisableEclassProfReg),
                                      'eclass_prof_reg'), 
                      "$langProfAccount $langViaeClass") . "
           <div class='form-group'>
             <input type='submit' class='btn btn-default' name='install3' value='&laquo; $langPreviousStep'>
		     <input type='submit' class='btn btn-primary' name='install5' value='$langNextStep &raquo;'>
           </div>
           <div class='form-group'>
             <div class='col-sm-12'>$langRequiredFields</div>
	         <div class='col-sm-12'>(**) $langWarnHelpDesk</div></td>
           </div>
         </fieldset>" . hidden_vars($all_vars) . "</form>";

    draw($tool_content);
}
Beispiel #2
0
    $tool_content .= "\n       <div class='alert alert-info'>{$langInfoLicence}</div>\n       <form class='form-horizontal' role='form' action='{$_SERVER['SCRIPT_NAME']}' method='post'>\n         <fieldset>\n           <div class='form-group'>\n             <pre class='pre-scrollable' style='col-sm-12'>" . q(wordwrap(file_get_contents('../info/license/gpl.txt'))) . "</pre>\n           </div>\n           <div class='form-group'>\n             <div class='col-sm-12'>" . icon('fa-print') . " <a href='{$gpl_link}'>{$langPrintVers}</a></div>\n           </div>\n           <div class='form-group'>\n              <div class='col-sm-10 col-offset-2 text-left'>\n                <input type='submit' class='btn btn-default' name='install1' value='&laquo; {$langPreviousStep}'>\n                <input type='submit' class='btn btn-primary' name='install3' value='{$langAccept}'>\n              </div>\n           </div>\n         </fieldset>" . hidden_vars($all_vars) . "</form>";
    draw($tool_content);
} elseif (isset($_POST['install3'])) {
    $langStepTitle = $langDBSetting;
    $langStep = $langStep3;
    $_SESSION['step'] = 3;
    $tool_content .= "\n       <div class='alert alert-info'>{$langWillWrite} {$langDBSettingIntro}</div>\n       <form class='form-horizontal' role='form' action='{$_SERVER['SCRIPT_NAME']}' method='post'>\n         <fieldset>\n           <div class='form-group'>\n\t         <label for='dbHostForm' class='col-sm-2 control-label'>{$langdbhost}</label>\n             <div class='col-sm-8'>" . text_input('dbHostForm', 25) . "</div>\n             <div class='col-sm-2'>{$langEG} localhost</div>\n           </div>\n           <div class='form-group'>\n\t         <label for='dbUsernameForm' class='col-sm-2 control-label'>{$langDBLogin}</label>\n             <div class='col-sm-8'>" . text_input('dbUsernameForm', 25) . "</div>\n             <div class='col-sm-2'>{$langEG} root</div>\n           </div>\n           <div class='form-group'>\n\t         <label for='dbPassForm' class='col-sm-2 control-label'>{$langDBPassword}</label>\n             <div class='col-sm-8'>" . text_input('dbPassForm', 25) . "</div>\n           </div>\n           <div class='form-group'>\n\t         <label for='dbNameForm' class='col-sm-2 control-label'>{$langMainDB}</label>\n             <div class='col-sm-8'>" . text_input('dbNameForm', 25) . "</div>\n             <div class='col-sm-2'>{$langNeedChangeDB}</div>\n           </div>\n           <div class='form-group'>\n\t         <label for='dbMyAdmin' class='col-sm-2 control-label'>{$langphpMyAdminURL}</label>\n             <div class='col-sm-8'>" . text_input('dbMyAdmin', 25) . "</div>\n             <div class='col-sm-2'>{$langOptional}</div>\n           </div>\n           <div class='form-group'>\n             <input type='submit' class='btn btn-default' name='install2' value='&laquo; {$langPreviousStep}'>\n\t\t     <input type='submit' class='btn btn-primary' name='install4' value='{$langNextStep} &raquo;'>\n           </div>\n           <div class='form-group'>\n             <div class='col-sm-12'>{$langAllFieldsRequired}</div>\n           </div>\n         </fieldset>" . hidden_vars($all_vars) . "</form>";
    draw($tool_content);
} elseif (isset($_POST['install4'])) {
    $langStepTitle = $langBasicCfgSetting;
    $langStep = $langStep4;
    $_SESSION['step'] = 4;
    if (empty($helpdeskmail)) {
        $helpdeskmail = '';
    }
    $tool_content .= "\n       <form class='form-horizontal' role='form' action='{$_SERVER['SCRIPT_NAME']}' method='post'>\n         <fieldset>" . form_entry('urlForm', text_input('urlForm', 40), "{$langSiteUrl} (*)") . form_entry('nameForm', text_input('nameForm', 40), "{$langAdminName} (*)") . form_entry('emailForm', text_input('emailForm', 40), "{$langAdminEmail} (*)") . form_entry('loginForm', text_input('loginForm', 40), "{$langAdminLogin} (*)") . form_entry('passForm', text_input('passForm', 40), "{$langAdminPass} (*)") . form_entry('campusForm', text_input('campusForm', 40), $langCampusName) . form_entry('helpdeskForm', text_input('helpdeskForm', 40), $langHelpDeskPhone) . form_entry('faxForm', text_input('faxForm', 40), $langHelpDeskFax) . form_entry('helpdeskmail', text_input('helpdeskmail', 40), "{$langHelpDeskEmail} (**)") . form_entry('institutionForm', text_input('institutionForm', 40), $langInstituteShortName) . form_entry('institutionUrlForm', text_input('institutionUrlForm', 40), $langInstituteName) . form_entry('postaddressForm', textarea_input('postaddressForm', 3, 40), $langInstitutePostAddress) . form_entry('eclass_stud_reg', selection_input(array('2' => $langDisableEclassStudRegType, '1' => $langReqRegUser, '0' => $langDisableEclassStudReg), 'eclass_stud_reg'), "{$langUserAccount} {$langViaeClass}") . form_entry('eclass_prof_reg', selection_input(array('1' => $langReqRegProf, '0' => $langDisableEclassProfReg), 'eclass_prof_reg'), "{$langProfAccount} {$langViaeClass}") . "\n           <div class='form-group'>\n             <input type='submit' class='btn btn-default' name='install3' value='&laquo; {$langPreviousStep}'>\n\t\t     <input type='submit' class='btn btn-primary' name='install5' value='{$langNextStep} &raquo;'>\n           </div>\n           <div class='form-group'>\n             <div class='col-sm-12'>{$langRequiredFields}</div>\n\t         <div class='col-sm-12'>(**) {$langWarnHelpDesk}</div></td>\n           </div>\n         </fieldset>" . hidden_vars($all_vars) . "</form>";
    draw($tool_content);
} elseif (isset($_POST['install5'])) {
    $langStepTitle = $langLastCheck;
    $langStep = $langStep5;
    $_SESSION['step'] = 5;
    switch ($eclass_stud_reg) {
        case '0':
            $disable_eclass_stud_reg_info = $langDisableEclassStudRegYes;
            break;
        case '1':
            $disable_eclass_stud_reg_info = $langDisableEclassStudRegViaReq;
            break;
        case '2':
            $disable_eclass_stud_reg_info = $langDisableEclassStudRegNo;
            break;