<div class="title"><b><?=Lang::get('general_settings'); ?></b></div>
<?php if(isset($_GET['saved'])): ?>
<div class="post"><span style="color:green;">Succefuly saved!</span></div>
<?php endif; ?>
<div class="post">
<form action="/user/settings?act=save" method="post">

<?=Lang::get('fast_form'); ?>:<br/>
<select name="fast_mess">
<option value="0" <?=User::getSettingsRow('fast_mess') == 0 ? 'selected="selected"' : ""; ?>><?=Lang::get('off'); ?></option>
<option value="1" <?=User::getSettingsRow('fast_mess') == 1 ? 'selected="selected"' : ""; ?>><?=Lang::get('on'); ?></option>
</select><br/>

<?=Lang::get('timezone'); ?>:<br/>
<select name="timezone">
<?=System::timezoneChoice($timezone)?>
</select><br/>
<?=Lang::get('language'); ?>:<br/>
<select name="language">
<?php foreach($lngs as $lng): ?>
<?php if($lng != '.' && $lng != '..'): ?>
<option value="<?=$lng; ?>" <?=User::getSettingsRow('lang') == $lng ? 'selected="selected"' : ""; ?>><?=Lang::get($lng, 'languages')?></option>
<?php endif; ?>
<?php endforeach; ?>
</select><br/>
<?=Lang::get('num_of_pt'); ?>:<br/>
<input type="text" name="ames" size="2" value="<?=User::getSettingsRow('ames'); ?>" /><br/>
<input type="submit" value="<?=Lang::get('save'); ?>" />
</form>
</div>
<div class="block">

<?=System::image('back.png'); ?>
 <a href="/user/index"><?=Lang::get('panel'); ?></a><br/>

<?=System::image('back.png'); ?>
 <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>