<!-- BEGIN: MAIN -->
<style>
  .sub_category:invalid {
    color: #a9a9a9;
  }
  form[name="useredit"] .userimg_existing img {
    max-width: 100%;
  }
  form[name="useredit"] table tr td {
    padding: 10px 30px 0px 0px;
  }
  form[name="useredit"] ul {
    list-style: none;
  }
  form[name="useredit"] input[type="radio"][name="rusermaingrp"] + input[type="checkbox"] {
    display: none;
  }
  form[name="useredit"] input[type="radio"][name="rusermaingrp"] {
    margin-right: 5px;
  }
  form[name="useredit"] .locselect span {
    display: block;
    float: left;
    width: calc(100% / 3 - 6.8px);
  }
  form[name="useredit"] .locselect span + span {
    margin-left: 10px;
  }
  form[name="useredit"] .ageselects select {
    display: block;
    float: left;
    width: calc(100% / 3 - 6.8px);
    margin: 0px !important;
  }
  form[name="useredit"] .ageselects select + select {
    margin: 0px 0px 0px 10px !important;
  }
</style>
<div class="centerwrap pt20 mb20">
  <div class="w700" style="margin: auto">
    <h1 class="f32 sm-text-center">Редактирование пользователя</h1>
    <div class="block-response mb15">
      <i class="ico-arrow-left dib v-align-m"></i>
      <a class="dib v-align-m f14 color-gray color-text" href="{USERS_DETAILS_DETAILSLINK}">Назад к профилю "{USERS_DETAILS_NICKNAME}"</a>
    </div>
    <div id="foxPostForm" class="pt10 p15-20 white-bg-border w700">

			{FILE "{PHP.cfg.themes_dir}/{PHP.cfg.defaulttheme}/warnings.tpl"}
			<form action="{USERS_EDIT_SEND}" method="post" name="useredit" enctype="multipart/form-data">
				<input type="hidden" name="id" value="{USERS_EDIT_ID}" />
				<table class="cells">
					<tr>
						<td class="width30">{PHP.L.users_id}:</td>
						<td class="width70">#{USERS_EDIT_ID}</td>
					</tr>
					<!-- IF {USERS_EDIT_GROUPSELECT} -->
					<tr>
						<td>{PHP.L.profile_group}:</td>
						<td>{USERS_EDIT_GROUPSELECT}</td>
					</tr>
					<!-- ENDIF -->
					<tr>
						<td>{PHP.L.Username}:</td>
						<td>{USERS_EDIT_NAME}</td>
					</tr>
					<tr>
						<td>Имя:</td>
						<td>{USERS_EDIT_FNAME}</td>
					</tr>
					<tr>
						<td>Имя службы поддержки:</td>
						<td>{USERS_EDIT_MODERNAME}</td>
					</tr>
					<tr>
						<td>{PHP.L.Groupsmembership}:</td>
						<td>
              {PHP.L.Maingroup}:<br />&nbsp;{PHP.out.img_down}<br />{USERS_EDIT_GROUPS}
              <script>
                $('[name="rusermaingrp"]').change(function() {
                  var thisval = $(this).val();
                  $('[name^="rusergroupsms"]').prop('checked', false);
                  $('[name="rusergroupsms['+thisval+']"]').prop('checked', true);
                });
              </script>
            </td>
					</tr>
					<!-- IF {PHP.cot_plugins_active.locationselector} -->
					<tr>
						<td>{PHP.L.Country}:</td>
						<td>{USERS_EDIT_LOCATION}</td>
					</tr>
					<!-- ELSE -->
					<tr>
						<td>{PHP.L.Country}:</td>
						<td>{USERS_EDIT_COUNTRY}</td>
					</tr>
					<!-- ENDIF -->
					<tr>
						<td>{PHP.L.Timezone}:</td>
						<td>{USERS_EDIT_TIMEZONE}</td>
					</tr>
					<tr>
						<td>{PHP.L.Theme}:</td>
						<td>{USERS_EDIT_THEME}</td>
					</tr>
					<tr>
						<td>{PHP.L.Language}:</td>
						<td>{USERS_EDIT_LANG}</td>
					</tr>
					<!-- IF {USERS_EDIT_AVATAR} -->
					<tr>
						<td>{PHP.L.Avatar}:</td>
						<td>{USERS_EDIT_AVATAR}</td>
					</tr>
					<!-- ENDIF -->
					<!-- IF {USERS_EDIT_SIGNATURE} -->
					<tr>
						<td>{PHP.L.Signature}:</td>
						<td>{USERS_EDIT_SIGNATURE}</td>
					</tr>
					<!-- ENDIF -->
					<!-- IF {USERS_EDIT_PHOTO} -->
					<tr>
						<td>{PHP.L.Photo}:</td>
						<td>{USERS_EDIT_PHOTO}</td>
					</tr>
					<!-- ENDIF -->
					<tr>
						<td>{PHP.L.users_newpass}:</td>
						<td>
							{USERS_EDIT_NEWPASS}
							<p class="small">{PHP.L.users_newpasshint1}</p>
						</td>
					</tr>
					<tr>
						<td>{PHP.L.Email}:</td>
						<td>{USERS_EDIT_EMAIL}</td>
					</tr>
					<tr>
						<td>Моб. телефон:</td>
						<td>{USERS_EDIT_PHONE}</td>
					</tr>
					<tr>
						<td>{PHP.L.users_hideemail}:</td>
						<td>{USERS_EDIT_HIDEEMAIL}</td>
					</tr>
<!-- IF {PHP.cot_modules.pm} -->
					<tr>
						<td>{PHP.L.users_pmnotify}:</td>
						<td>{USERS_EDIT_PMNOTIFY}<br />{PHP.themelang.usersedit.PMnotifyhint}</td>
					</tr>
<!-- ENDIF -->
					<tr>
						<td>Запретить личные сообщения:</td>
						<td>{USERS_EDIT_DSBLOCK}</td>
					</tr>
					<tr>
						<td>{PHP.L.Birthdate}:</td>
						<td class="ageselects">{USERS_EDIT_BIRTHDATE}</td>
					</tr>
					<tr>
						<td>{PHP.L.Gender}:</td>
						<td>{USERS_EDIT_GENDER}</td>
					</tr>
					<tr>
						<td>{PHP.L.Signature}:</td>
						<td>{USERS_EDIT_TEXT}</td>
					</tr>
					<tr>
            <td colspan="2"><hr></td>
					</tr>
					<tr>
						<td></td>
						<td>Платежная информация</td>
					</tr>
					<tr>
						<td>Кошелек WebMoney</td>
						<td><input type="text" name="ruser_purse_wm" value="{USERS_EDIT_PAYMENT_WM}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td>Кошелек Яндекс.Деньги</td>
						<td><input type="text" name="ruser_purse_yandex" value="{USERS_EDIT_PAYMENT_YANDEX}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td>Кошелек QIWI</td>
						<td><input type="text" name="ruser_purse_qiwi" value="{USERS_EDIT_PAYMENT_QIWI}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td></td>
						<td>Банковская карта</td>
					</tr>
					<tr>
						<td>Имя</td>
						<td><input type="text" name="ruser_purse_fname" value="{USERS_EDIT_PAYMENT_CARD_FN}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td>Фамилия</td>
						<td><input type="text" name="ruser_purse_lname" value="{USERS_EDIT_PAYMENT_CARD_LN}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td>Номер карты</td>
						<td><input type="text" name="ruser_purse_fcard" value="{USERS_EDIT_PAYMENT_CARD_NUM}" size="32" class="input-styled"></td>
					</tr>
					<tr>
						<td></td>
						<td>Блокировка</td>
					</tr>
					<tr>
						<td>На вывод средств</td>
						<td><input type="text" name="ruser_payoutsblock" value="{USERS_EDIT_PAYMENT_PAYOUTBLK}" size="32" class="input-styled" placeholder="Дата в формате {PHP.sys.now|cot_date('d.m.Y H:i', $this)}"></td>
					</tr>
					<tr>
						<td>На смену реквизитов</td>
						<td><input type="text" name="ruser_paychgblock" value="{USERS_EDIT_PAYMENT_PAYCHGBLK}" size="32" class="input-styled" placeholder="Дата в формате {PHP.sys.now|cot_date('d.m.Y H:i', $this)}"></td>
					</tr>
					<tr>
						<td colspan="2"><hr></td>
					</tr>
					<tr>
						<td>{PHP.L.Registered}:</td>
						<td>{USERS_EDIT_REGDATE}</td>
					</tr>
					<tr>
						<td>{PHP.L.Lastlogged}:</td>
						<td>{USERS_EDIT_LASTLOG}</td>
					</tr>
					<tr>
						<td>{PHP.L.users_lastip}:</td>
						<td>{USERS_EDIT_LASTIP}</td>
					</tr>
					<tr>
						<td>{PHP.L.users_logcounter}:</td>
						<td>{USERS_EDIT_LOGCOUNT}</td>
					</tr>
					<tr>
						<td>{PHP.L.users_deleteuser}:</td>
						<td>{USERS_EDIT_DELETE}</td>
					</tr>
					<tr>
            <td></td>
						<td class="valid"><button type="submit" class="btn green-btn">{PHP.L.Update}</button></td>
					</tr>
				</table>
			</form>
    </div>
  </div>
</div>
<script>
  $('form[name="useredit"]').find('input[type="text"], input[type="password"], select').addClass('input-styled');
  $('form[name="useredit"] select + select').addClass('mt10');
</script>
<!-- END: MAIN -->