|
@@ -1814,14 +1814,14 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo
|
|
|
* Used by the display_configuration_settings_form function.
|
|
|
*/
|
|
|
function display_configuration_parameter($install_type, $parameter_name, $form_field_name, $parameter_value, $display_when_update = 'true') {
|
|
|
- echo "<tr>\n";
|
|
|
- echo "<td>$parameter_name </td>\n";
|
|
|
+ echo "<tr>";
|
|
|
+ echo "<td>$parameter_name</td>";
|
|
|
if ($install_type == INSTALL_TYPE_UPDATE && $display_when_update) {
|
|
|
echo '<td><input type="hidden" name="'.$form_field_name.'" value="'.api_htmlentities($parameter_value, ENT_QUOTES).'" />'.$parameter_value."</td>\n";
|
|
|
} else {
|
|
|
echo '<td><input type="text" size="'.FORM_FIELD_DISPLAY_LENGTH.'" maxlength="'.MAX_FORM_FIELD_LENGTH.'" name="'.$form_field_name.'" value="'.api_htmlentities($parameter_value, ENT_QUOTES).'" />'."</td>\n";
|
|
|
}
|
|
|
- echo "</tr>\n";
|
|
|
+ echo "</tr>";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1837,19 +1837,21 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
|
|
|
echo '<div class="RequirementContent">';
|
|
|
echo '<p>'.get_lang('ConfigSettingsInfo').' <strong>main/inc/conf/configuration.php</strong></p>';
|
|
|
echo '</div>';
|
|
|
-
|
|
|
- echo "</td></tr> <tr><td>";
|
|
|
+
|
|
|
+ echo '<fieldset>';
|
|
|
+ echo '<legend>'.get_lang('Administrator').'</legend>';
|
|
|
echo '<table class="data_table_no_border">';
|
|
|
|
|
|
- //Parameter 7: administrator's login
|
|
|
+ //Parameter 1: administrator's login
|
|
|
+
|
|
|
display_configuration_parameter($installType, get_lang('AdminLogin'), 'loginForm', $loginForm, $installType == 'update');
|
|
|
-
|
|
|
- //Parameter 8: administrator's password
|
|
|
+
|
|
|
+ //Parameter 2: administrator's password
|
|
|
if ($installType != 'update') {
|
|
|
display_configuration_parameter($installType, get_lang('AdminPass'), 'passForm', $passForm, false);
|
|
|
}
|
|
|
|
|
|
- //Parameters 4 and 5: administrator's names
|
|
|
+ //Parameters 3 and 4: administrator's names
|
|
|
if (api_is_western_name_order()) {
|
|
|
display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName);
|
|
|
display_configuration_parameter($installType, get_lang('AdminLastName'), 'adminLastName', $adminLastName);
|
|
@@ -1858,6 +1860,20 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
|
|
|
display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName);
|
|
|
}
|
|
|
|
|
|
+ //Parameter 3: administrator's email
|
|
|
+ display_configuration_parameter($installType, get_lang('AdminEmail'), 'emailForm', $emailForm);
|
|
|
+
|
|
|
+ //Parameter 6: administrator's telephone
|
|
|
+ display_configuration_parameter($installType, get_lang('AdminPhone'), 'adminPhoneForm', $adminPhoneForm);
|
|
|
+
|
|
|
+ echo '</table>';
|
|
|
+ echo '</fieldset>';
|
|
|
+
|
|
|
+ echo '<fieldset>';
|
|
|
+ echo '<legend>'.get_lang('Platform').'</legend>';
|
|
|
+
|
|
|
+ echo '<table class="data_table_no_border">';
|
|
|
+
|
|
|
//First parameter: language
|
|
|
echo "<tr>";
|
|
|
echo '<td>'.get_lang('MainLang')." </td>";
|
|
@@ -1870,9 +1886,10 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
|
|
|
echo "</td>\n";
|
|
|
}
|
|
|
echo "</tr>\n";
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
//Second parameter: Chamilo URL
|
|
|
- echo "<tr>\n";
|
|
|
+ echo "<tr>";
|
|
|
echo '<td>'.get_lang('ChamiloURL').' (<font color="red">'.get_lang('ThisFieldIsRequired')."</font>) </td>";
|
|
|
|
|
|
if ($installType == 'update') {
|
|
@@ -1882,13 +1899,6 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
|
|
|
}
|
|
|
echo "</tr>";
|
|
|
|
|
|
- //Parameter 3: administrator's email
|
|
|
- display_configuration_parameter($installType, get_lang('AdminEmail'), 'emailForm', $emailForm);
|
|
|
-
|
|
|
- //Parameter 6: administrator's telephone
|
|
|
- display_configuration_parameter($installType, get_lang('AdminPhone'), 'adminPhoneForm', $adminPhoneForm);
|
|
|
-
|
|
|
-
|
|
|
|
|
|
//Parameter 9: campus name
|
|
|
display_configuration_parameter($installType, get_lang('CampusName'), 'campusForm', $campusForm);
|
|
@@ -1949,16 +1959,21 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
|
|
|
<td><input type="hidden" name="allowSelfRegProf" value="<?php echo $allowSelfRegProf; ?>" /><?php echo $allowSelfRegProf? get_lang('Yes') : get_lang('No'); ?></td>
|
|
|
<?php else: ?>
|
|
|
<td>
|
|
|
- <input class="checkbox" type="radio" name="allowSelfRegProf" value="1" id="allowSelfRegProf1" <?php echo $allowSelfRegProf ? 'checked="checked" ' : ''; ?>/> <label for="allowSelfRegProf1"><?php echo get_lang('Yes'); ?></label>
|
|
|
- <input class="checkbox" type="radio" name="allowSelfRegProf" value="0" id="allowSelfRegProf0" <?php echo $allowSelfRegProf ? '' : 'checked="checked" '; ?>/> <label for="allowSelfRegProf0"><?php echo get_lang('No'); ?></label>
|
|
|
+ <input class="checkbox" type="radio" name="allowSelfRegProf" value="1" id="allowSelfRegProf1" <?php echo $allowSelfRegProf ? 'checked="checked" ' : ''; ?>/>
|
|
|
+ <label for="allowSelfRegProf1"><?php echo get_lang('Yes'); ?></label>
|
|
|
+ <input class="checkbox" type="radio" name="allowSelfRegProf" value="0" id="allowSelfRegProf0" <?php echo $allowSelfRegProf ? '' : 'checked="checked" '; ?>/>
|
|
|
+ <label for="allowSelfRegProf0"><?php echo get_lang('No'); ?></label>
|
|
|
</td>
|
|
|
<?php endif; ?>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td><button type="submit" class="back" name="step3" value="< <?php echo get_lang('Previous'); ?>" /><?php echo get_lang('Previous'); ?></button></td>
|
|
|
- <td align="right"><input type="hidden" name="is_executable" id="is_executable" value="-" /><button class="next" type="submit" name="step5" value="<?php echo get_lang('Next'); ?> >" /><?php echo get_lang('Next'); ?></button></td>
|
|
|
+ <td>
|
|
|
+ <button type="submit" class="back" name="step3" value="< <?php echo get_lang('Previous'); ?>" /><?php echo get_lang('Previous'); ?></button>
|
|
|
+ </td>
|
|
|
+ <td align="right"><input type="hidden" name="is_executable" id="is_executable" value="-" /><button class="next" type="submit" name="step5" value="<?php echo get_lang('Next'); ?> >" /><?php echo get_lang('Next'); ?></button></td>
|
|
|
</tr>
|
|
|
+ </fieldset>
|
|
|
</table>
|
|
|
<?php
|
|
|
}
|