<div class="col-md-12">
	<div class="block">
		<div class="block_head">
			Выберите сервер
		</div>
		<select class="form-control" onchange="server_change();" id="store_server">
			{servers}
		</select>
	</div>

	<div class="block" id="add_admin_area">
		<div class="block_head">
			Выдать права
		</div>
		<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 id="admins">
		<center><img src="{site_host}templates/admin/img/loader.gif"></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>
<script type="text/javascript" src="{site_host}templates/admin/js/timepicker/timepicker.js"></script>
<script type="text/javascript" src="{site_host}templates/admin/js/timepicker/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="{site_host}templates/admin/js/timepicker/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script type="text/javascript" src="{site_host}templates/admin/js/timepicker/jquery-ui-sliderAccess.js"></script>
