
	<div class="r_block">
		<div class="r_block_head">
			Выберите сервер
		</div>
		<div class="r_block_c">
			<select class="form-control" onchange="server_change();" id="store_server">
				{servers}
			</select>
		</div>
	</div>
	<div class="r_block" id="add_admin_area">
		<div class="r_block_head">
			Выдать права
		</div>
		<div class="r_block_c">
			<script>
				function local_change_service() {
					var service = $('#store_services option:selected').val();
					get_tarifs_adm(service);
				}
				function local_change_store_type() {
					var type = $('#store_type option:selected').val();
					change_store_bind_type(type);
				}
				function local_change_admin_type(id) {
					var type = $('#store_type_'+id+' option:selected').val();
					change_admin_bind_type(type, id);
				}
			</script>

			Выберите услугу:
			<select class="form-control mb-10" id="store_services" onchange="local_change_service();"></select>

			Выберите тариф:
			<select class="form-control mb-10" id="store_tarifs"></select>

			Выберите тип привязки:
			<select class="form-control" id="store_type" onchange="local_change_store_type();">
				{if($binds[0])}<option value="1">Ник + пароль</option>{/if}
				{if($binds[1])}<option value="2">STEAM ID</option>{/if}
				{if($binds[2])}<option value="3">STEAM ID + пароль</option>{/if}
			</select>

			<input type="text" class="form-control mt-10 disp-n" maxlength="32" id="player_nick" placeholder="Введите ник">
			<input type="text" class="form-control mt-10 disp-n" maxlength="32" id="player_steam_id" placeholder="Введите STEAM ID">
			<input type="text" class="form-control mt-10 disp-n" maxlength="32" id="player_pass" placeholder="Придумайте пароль">
			<div class="clearfix mt-10"></div>

			ID профиля на сайте:
			<input type="number" class="form-control disp-b" maxlength="5" id="player_user_id" placeholder="Введите ID">

			<div id="add_result" class="mt-10"></div>
			<div id="button">
				<button id="store_buy_btn" class="btn2 btn-big mt-10" onclick="add_admin();">Выдать</button>
				<button id="store_answer_btn" class="btn2 btn-cancel btn-big mt-10 disp-n" onclick="">Нет</button>
			</div>
		</div>
	</div>

	<div class="r_block">
		<div class="r_block_c" id="admins">
			<center><img src="{site_host}templates/admin/img/loader.gif?v={cache}"></center>
			<script>load_servers_admins();</script>
		</div>
	</div>

	<script>
		function server_change() {
			location.href = '../edit_admins?server='+$('#store_server').val();
		}

		get_services_adm({server});
		local_change_store_type();
	</script>
</div>
<div class="left_block">
	{include file="/home/right_col.tpl"}
</div>
