<!DOCTYPE html>
<html lang="ru">
	<head>
		<meta charset="utf-8" />
		<title>{{@page_data.title}}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, minimum-scale=1, user-scalable=no">
		<meta name="HandheldFriendly" content="true">

		<base href="{{@SCHEME.'://'.@HOST.':'.@PORT.$BASE.'/'}}" />
		<link rel="stylesheet" href="/ui/css/base.css?v={{@site_version}}" type="text/css" />

		<link rel="apple-touch-icon" sizes="180x180" href="/ui/css/img/apple-touch-icon.png?v={{@site_version}}">
		<link rel="icon" type="image/png" sizes="32x32" href="/ui/css/img/favicon-32x32.png?v={{@site_version}}">
		<link rel="icon" type="image/png" sizes="16x16" href="/ui/css/img/favicon-16x16.png?v={{@site_version}}">
		<link rel="manifest" href="/ui/css/img/site.webmanifest?v={{@site_version}}">
		<link rel="mask-icon" href="/ui/css/img/safari-pinned-tab.svg?v={{@site_version}}" color="#5bbad5">
		<meta name="apple-mobile-web-app-title" content="Агорта.Касса">
		<meta name="application-name" content="Агорта.Касса">
		<meta name="msapplication-TileColor" content="#ffffff">
		<meta name="theme-color" content="#ffffff">

		<link rel="stylesheet" href="/ui/css/all.css">
		<link rel="stylesheet" href="/ui/css/agortaicon.css?v={{@site_version}}">
		<script type="text/javascript" src="/ui/scripts/jquery-3.3.1.min.js"></script>
		<script type="text/javascript">
			var synchronization_start=1;
		</script>
	</head>
	<body class="{{@authorization_user?'padding_top':''}} {{date('d')==8 && date('m')==3?'mart8':''}}" style="zoom: {{isset(@base_settings.zoom) && is_numeric(@base_settings.zoom)?@base_settings.zoom:100}}%;">
	<check if="{{@base_settings.false_alarm}}">
	<audio id="false_alarm" src="/ui/sounds/false.mp3" preload="auto"></audio>
	</check>
	<check if="{{@base_settings.success_alarm}}">
	<audio id="success_alarm" src="/ui/sounds/success.mp3" preload="auto"></audio>
	</check>
	<check if="{{@base_settings.window_open_alarm}}">
	<audio id="window_open_alarm" src="/ui/sounds/window_open.mp3" preload="auto"></audio>
	</check>
	<check if="{{@base_settings.error_click_alarm}}">
	<audio id="error_click_alarm" src="/ui/sounds/error_click.mp3" preload="auto"></audio>
	</check>
	<div id="asdfg"><i class="far fa-grin"></i></div>
	<div id="screen">
		<div id="screen_window">
			<check if="{{@authorization_user}}">
			<include href="menu.htm" />
			</check>
			<include href="{{@page_data.inc}}" />
			<div id="synchronization_status"></div>
			<div id="smile">:-)</div>
		</div>
	</div>
	<check if="{{@base_settings.display_false_alarm}}">
	<div id="display_false_alarm"></div>
	</check>
	</body>
</html>
<script type="text/javascript">
var stock_error=false;
var set_timeout_popup={{isset(@base_settings.timeout_popup)?@base_settings.timeout_popup:0}};
var path='{{@JAR.domain}}';
var synchronization_timer={{@synchronization_timer}};
var show_virtual_keyboard={{isset(@base_settings.virtual_keyboard)?@base_settings.virtual_keyboard:1}};
var orders_alarm={{isset(@base_settings.orders_alarm)?@base_settings.orders_alarm:1}};
{~if(!@authorization_user):~}
var auto_logout=0;
var auto_remote_fiscalization=0;
{~else:~}
var auto_logout={{isset(@base_settings.auto_logout) && @base_settings.auto_logout>=0?@base_settings.auto_logout*60:0}};
var auto_remote_fiscalization={{isset(@base_settings.auto_fiscalization) && @base_settings.auto_fiscalization>=0?@base_settings.auto_fiscalization*60:0}};
{~endif~}
var auto_replacekey={{isset(@base_settings.auto_replacekey)?@base_settings.auto_replacekey:0}};
var show_discount_keyboard={{isset(@authorization_user.module) && in_array('receipts/select_discount', @authorization_user.module) && !in_array('receipts/discount', @authorization_user.module)?1:0}};
var add_discount={{isset(@authorization_user.module) && in_array('receipts/discount', @authorization_user.module)?1:0}};
{~if(!@base_settings.gs1_symbols)@base_settings.gs1_symbols='';~}
var gs1_symbols='{{@base_settings.gs1_symbols|raw}}';
</script>
<script type="text/javascript" src="/ui/scripts/js.js?v={{@site_version}}"></script>
<link rel="stylesheet" type="text/css" href="/ui/css/daterangepicker.css?v={{@site_version}}" />
<check if="{{mb_strpos(@PATH, '/egais')===false}}">
<script type="text/javascript" src="/ui/scripts/hotkeys.js?v={{@site_version}}"></script>
</check>
<check if="{{@base_settings['multikassa']==1 && !@AJAX && (@PATH=='/' || @PATH=='/receipts/sales')}}">
<script type="text/javascript">
scan_cashboxes();
setInterval(scan_cashboxes, 270000);
</script>
</check>
<check if="{{!@base_settings.animation || (int)@base_settings.animation==0}}">
<link rel="stylesheet" type="text/css" href="/ui/css/no_animation.css?v={{@site_version}}" />
</check>
<check if="{{@PATH=='/receipts/sales' || @PATH=='/receipts/return' || @PATH=='/'}}">
<script type="text/javascript" src="/ui/scripts/for_no_copy.js?v={{@site_version}}"></script>
</check>
<style type="text/css">
.room_ceil_select, .room_ceil {
	width: {{@base_settings.table_size?@base_settings.table_size+3:73}}px;
	height: {{@base_settings.table_size?@base_settings.table_size+3:73}}px;
}

.dinner_table_title {
	width: {{@base_settings.table_size?@base_settings.table_size:70}}px;
	max-height: {{@base_settings.table_size?@base_settings.table_size:70}}px;
}

{{@base_settings['css']|raw}}
</style>