<h4 class="modal-title">Подробная информация</h4>
<table class="table table-bordered">
	<tbody>
		<tr id="active{id}" class="{class}">
			<td>Активность</td>
			<td>
				<? if('{active}' == '2') { ?>
					<button id="on_{id}" onclick="start_srote({id});" class="btn btn-default >" type="button">
						Разблокировать ({pirce}руб)
					</button>
				<? } else { ?>
					<font class="text-success">Активен</font>
				<? } ?>
			</td>
		</tr>
		<tr>
			<td>Тип</td>
			<td>
				<div class="input-group">
					<span class="input-group-btn">
						<button <? if ('{active}' != '2') { ?>onclick="edit_srote({id}, 'type');"<? } ?> class="btn btn-default" type="button" {disabled}>Изменить</button>
					</span>
					<span class="input-group-btn w-100">
						<select class="form-control" id="type_{id}" onchange="change_admin_type({id});" {disabled}>
							<? if('{peg_1}' != '2'){ ?><option <? if('{type}' == 'a') { echo "selected"; } ?> value="1">Ник + пароль</option><? } ?>
							<? if('{peg_2}' != '2'){ ?><option <? if('{type}' == 'ce') { echo "selected"; } ?> value="2">STEAM ID</option><? } ?>
							<? if('{peg_3}' != '2'){ ?><option <? if('{type}' == 'ca') { echo "selected"; } ?> value="3">STEAM ID + пароль</option><? } ?>
						</select>
					</span>
				</div>
			</td>
		</tr>
		<tr id="name{id}">
			<td>Ник/SteamID</td>
			<td>
				<div class="input-group">
					<span class="input-group-btn">
						<button <? if ('{active}' != '2') { ?>onclick="edit_srote({id}, 'name');"<? } ?> class="btn btn-default" type="button" {disabled}>Изменить</button>
					</span>
					<span class="input-group-btn w-100">
						<input id="name_{id}" type="text" maxlength="32" value="{name}" class="form-control" {disabled}>
					</span>
				</div>
			</td>
		</tr>
		<tr id="pass{id}">
			<td>Пароль</td>
			<td>
				<div class="input-group">
					<span class="input-group-btn">
						<button <? if ('{active}' != '2') { ?>onclick="edit_srote({id}, 'pass');"<? } ?> class="btn btn-default" type="button" {disabled}>Изменить</button>
					</span>
					<span class="input-group-btn w-100">
						<input id="pass_{id}" type="text" maxlength="32" value="{pass}" class="form-control w-100" {disabled}>
					</span>
				</div>
			</td>
		</tr>
	</tbody>
</table>

<script>change_admin_type({id});</script>

<h4 class="modal-title">Услуги</h4>
<table class="table table-bordered mb-0 admins_services">
	<thead>
		<tr>
			<td>#</td>
			<td>Услуга</td>
			<td>Флаги/Группа</td>
			<td>Дата покупки</td>
			<td>Дата окончания</td>
			<td>Осталось</td>
		</tr>
	</thead>
	<tbody id="admins_services{id}">
		{services}
	</tbody>
</table>