[open]
<form action="profile/edit" method="post" enctype="multipart/form-data" onsubmit="showload();">
   <div class="user-wallpaper">
      <img src="{%PIMAGE%}" alt=""/>
   </div>
   <div class="profile-menu-line">
      [user]
      <div class="profile-icon-menu">
         <a href="{%URL_BOOKMARKS%}">Закладки</a>
         <a href="{%URL_PM%}">Сообщения</a>
         <a href="{%URL_LOGOUT%}">Выход</a>
      </div>
      [/user]
      <div style="clear: both;"></div>
      <div class="profile-icon">
         <div class="profile-icon-image">
            <a href="{%URL_PROFIL%}" class="profile-link" title="На страницу профиля"><img src="{%AVATAR%}" style="border:0;" alt=""/></a>
         </div>
         <div class="profile-icon-title">
            {%NICK%}<label>{%COUNTRICON%}</label>
         </div>
      </div>
   </div>
   <div class="main-block">
      <div class="main-block-title">
         Редактировать профиль
      </div>
      <div class="main-block-content">
         <div class="herh">
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Ваша Фамилия:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="surname" value="{%SURNAME%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Ваше Имя:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="name" value="{%NAME%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Ваше Отчество:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="ochestvo" value="{%OCH%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Ваш E-Mail:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="mail" value="{%EMAIL%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Место жительства:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="place" value="{%PLACE%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Часовой пояс:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <select class="date_selection" name="timezones">{%TIMEZONES%}</select>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  [lang_tpl:Births_date]:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <select class="date_selection" name="birthDay">{%DAY_LIST%}</select>
                  </label>
                  <label>
                     <select class="date_selection" name="birthMonth">{%MONTH_LIST%}</select>
                  </label>
                  <label>
                     <select class="date_selection" name="birthYear">{%YEAR_LIST%}</select>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  [lang_tpl:births_day]
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <select class="date_selection" name="bday_visibility">{%BDAY_VISIBILITY%}</select>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Пол:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <select class="date_selection" name="gender">{%GENDER_LIST%}</select>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Хобби:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="hobby" value="{%HOBBY%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Телефон:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="phone" value="{%PHONE%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Icq:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="icq" value="{%ICQ%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Skype:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="text" name="skype" value="{%SKYPE%}"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               Настройка Аватара:<br/><br/>
               <img src="{%AVATAR%}" style="width:100px; height: 100px; border:0;" alt=""/>
               <br/><br/>
               <div class="form-line-tt-left">
                  Загрузить с комьютера:
               </div>
               {%AVATAR_LOAD%}<input type="file" name="avatar" class="f_input"/><br/><br/>{%/AVATAR_LOAD%}
               <div class="form-line-tt-left">
                  Загрузить по адресу:
               </div>
               <label>
                  <input type="text" name="avatar_link" value="Ведите адрес картинки" class="f_input"/>
               </label>
               <br/><br/>
               <div class="checkbox"><label>
                     <input type="checkbox" name="deleteAvatar" value="1"/>
                  </label>
                  <label for="deleteAvatar">Удалить аватар</label>
               </div>
            </div>
            <div class="form-line-tt">
               <br/><br/>
               Настройки Картинки профиля:<br/><br/>
               <img src="{%PIMAGE%}" style="width:100px; height: 100px;" style="border:0;" alt=""/>
               <br/><br/>
               <div class="form-line-tt-left">
                  Загрузить с комьютера:
               </div>
               {%PIMAGE_LOAD%}<input type="file" name="pimage" class="f_input"/><br/><br/>{%/PIMAGE_LOAD%}
               <div class="form-line-tt-left">
                  Загрузить по адресу:
               </div>
               <label>
                  <input type="text" name="pimage_link" value="Ведите адрес картинки" class="f_input"/>
               </label>
               <br/><br/>
               <div class="checkbox"><label>
                     <input type="checkbox" name="deletePimage" value="1"/>
                  </label>
                  <label for="deletePimage">Удалить картинку</label>
               </div>
            </div>
            [xfield_tpl]
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  {%XTITLE%}:
               </div>
               <div class="form-line-tt-right">
                  <div class="profile-tt-line">{%XBODY:[style="width:394px;"]%}
                  </div>
               </div>
            </div>
            [/xfield_tpl]
            [fields]
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Дополнительные настройки:
               </div>
               <div class="profile-tt-line">{%XFIELDS%}
               </div>
            </div>
            [/fields]



            <div class="form-line-tt">
               <div style="font-size: 16px;">
                  О себе:
               </div>
               {%BB_AREA%}
            </div>
            [xfield_tpl] [xfield:20][xfield_value:20][/xfield:20] [/xfield_tpl]
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Новый пароль:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="password" name="newpass"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  Повторите:
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <input type="password" name="renewpass"/>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               <div class="form-line-tt-left">
                  [lang_tpl:twofactor]
               </div>
               <div class="form-line-tt-right">
                  <label>
                     <select class="date_selection" name="twofactor" >{%TWOFACTOR%}</select>
                  </label>
               </div>
            </div>
            <div class="form-line-tt">
               {%AUDIO_ALERT%}
            </div>
            <div class="form-line-tt">
               {%NO_MAIL%}
            </div>
            <br/><br/>
            <input value="Сохранить" class="form-button-tt" type="submit"/>
         </div>
      </div>
   </div>
   <div style="clear: both;"></div>
   <script type="text/javascript">
      $(document).ready(function () {
          $('.profile-icon-menu a:nth-child(1)').attr('title', 'Закладки').empty().append('<i class="flaticon-favorites"></i>');
          $('.profile-icon-menu a:nth-child(2)').attr('title', 'Входящие сообщение').empty().append('<i class="flaticon-envelope"></i>');
          $('.profile-icon-menu a:nth-child(3)').attr('title', 'Выйти').empty().append('<i class="flaticon-power-button"></i>');
         const leftHeight = $('.ident-col1').height();
         const rightHeight = $('.ident-col2').height();
         if (leftHeight < rightHeight) {
              $('.ident-col1').height(rightHeight);
          } else {
              $('.ident-col2').height(leftHeight);
          }
          $('.open-edit-user').click(function () {
              $('.hidden-edit-profile').slideToggle();
              return false;
          });
      });
   </script>
</form>
[/open]