<div class="title"><b><?=Lang::get('edit_profile'); ?></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/editProfile?act=save" method="post">
<?=Lang::get('name'); ?>:<br/>
<input type="text" name="name" value="<?=User::getProfileRow('name'); ?>" /><br/>
<?=Lang::get('surname'); ?>:<br/>
<input type="text" name="surname" value="<?=User::getProfileRow('surname'); ?>" /><br/>
<?=Lang::get('gender'); ?>:<br/>
<select name="gender">
<option value="1"<?=User::getProfileRow('gender') == 1 ? ' selected="selected"':""?>><?=Lang::get('gender_1'); ?></option>
<option value="0"<?=User::getProfileRow('gender') == 0 ? ' selected="selected"':""?>><?=Lang::get('gender_0'); ?></option>
</select><br/>
<?=Lang::get('birth'); ?>:<br/>
<select name="day">
<?php for($day = 1; $day <= 31; $day++): ?>
<option value="<?=$day; ?>"<?=User::getProfileRow('day') == $day ? ' selected="selected"':""?>><?=$day?></option>
<?php endfor; ?>
</select> - 
<select name="month">
<?php for($month = 1; $month <= 12; $month++): ?>
<option value="<?=$month; ?>"<?=User::getProfileRow('month') == $month ? ' selected="selected"':""?>><?=$month?></option>
<?php endfor; ?>
</select> - 
<select name="year">
<?php for($year = 1960; $year <= $currentYear; $year++): ?>
<option value="<?=$year; ?>"<?=User::getProfileRow('year') == $year ? ' selected="selected"':""?>><?=$year?></option>
<?php endfor; ?>
</select><br/>
ICQ:<br/>
<input type="text" value="<?=User::getProfileRow('icq'); ?>" name="icq" /><br/>
<?=Lang::get('phone'); ?>:<br/>
<input type="text" value="<?=User::getProfileRow('phone'); ?>" name="phone" /><br/>
<?=Lang::get('site'); ?>:<br/>
<input type="text" value="<?=User::getProfileRow('site'); ?>" name="site" /><br/>
<?=Lang::get('user_info'); ?>:<br/>
<textarea name="info" rows="5" cols="28"><?=User::getProfileRow('info'); ?></textarea><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>