60 lines
1.3 KiB
PHP
60 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
HTML::title(array('title'=>$L->g('Settings'), 'icon'=>'cogs'));
|
||
|
|
||
|
HTML::formOpen(array('class'=>'uk-form-horizontal'));
|
||
|
|
||
|
HTML::formInputHidden(array(
|
||
|
'name'=>'token',
|
||
|
'value'=>$Security->getToken()
|
||
|
));
|
||
|
|
||
|
HTML::formSelect(array(
|
||
|
'name'=>'language',
|
||
|
'label'=>$L->g('Language'),
|
||
|
'options'=>$Language->getLanguageList(),
|
||
|
'selected'=>$Site->language(),
|
||
|
'class'=>'uk-width-1-3 uk-form-medium',
|
||
|
'tip'=>$L->g('select-your-sites-language')
|
||
|
));
|
||
|
|
||
|
HTML::formSelect(array(
|
||
|
'name'=>'timezone',
|
||
|
'label'=>$L->g('Timezone'),
|
||
|
'options'=>Date::timezoneList(),
|
||
|
'selected'=>$Site->timezone(),
|
||
|
'class'=>'uk-width-1-3 uk-form-medium',
|
||
|
'tip'=>$L->g('select-a-timezone-for-a-correct')
|
||
|
));
|
||
|
|
||
|
HTML::formInputText(array(
|
||
|
'name'=>'locale',
|
||
|
'label'=>$L->g('Locale'),
|
||
|
'value'=>$Site->locale(),
|
||
|
'class'=>'uk-width-1-2 uk-form-medium',
|
||
|
'tip'=>$L->g('you-can-use-this-field-to-define-a-set-off')
|
||
|
));
|
||
|
|
||
|
echo '<div class="uk-form-row">
|
||
|
<div class="uk-form-controls">
|
||
|
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
|
||
|
<a href="#" class="uk-button">'.$L->g('Cancel').'</a>
|
||
|
</div>
|
||
|
</div>';
|
||
|
|
||
|
HTML::formClose();
|
||
|
|
||
|
?>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
$(document).ready(function() {
|
||
|
|
||
|
$("#jslanguage").change(function () {
|
||
|
var locale = $("#jslanguage option:selected").val();
|
||
|
$("#jslocale").attr("value",locale);
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
</script>
|