<div id="error_page">
	<h1>Ошибка</h1>
	<p class="false" align="center">Клиент не найден</p>
	<check if="{{in_array('receipts/new_card', @authorization_user.module)}}">
		<true>
	<p align="center">Добавить нового клиента?</p>
	<form name="partners_new_form" method="GET" action="/receipts/new_card">
		<input type="text" name="client_name" class="mixed_pay mixed_pay_client_name client_name {{@base_settings.virtual_keyboard==1?'partner_input':''}}" pid="client_name" placeholder="Имя клиента" autocomplete="off" value="{{!is_numeric(@value)?@value:''}}">
		{{@base_settings.virtual_keyboard!=1?'<br>':''}}
		<input type="text" name="client_value" class="mixed_pay mixed_pay_client_value client_value {{@base_settings.virtual_keyboard==1?'partner_input':''}}" pid="client_value" value="{{@is_phone || is_numeric(@value)?@value:''}}" placeholder="Телефон или номер карты" autocomplete="off">
		{{@base_settings.virtual_keyboard!=1?'<br>':''}}
		<select name="type" class="{{@base_settings.virtual_keyboard==1?'partner_input':''}}">
			<option value="card">Номер карты</option>
			<option value="phone" {{@is_phone?'selected="selected"':''}}>Номер телефона</option>
		</select>
		<check if="{{@base_settings.virtual_keyboard==1}}">
			<true>
				<div class="virtual_keyboard virtual_keyboard_partner_form full_keyboard">
				{~@keys='1234567890-+|QWERTYUIOP_|ASDFGHJKL@|ZXCVBNM'~}
					<div class="eng">
					<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
						<check if="{{@keys[@i]=='|'}}">
							<true>
						<br>
							</true>
							<false>
						<input type="button" class="virtual_key" value="{{@keys[@i]}}" for="mixed_pay_client_name">
							</false>
						</check>
					</loop>
						<button type="button" class="virtual_key_bks" for=" mixed_pay_client_name">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_client_name" value="CE">
						<br>
						<input type="button" class="virtual_key_ru" value="RU">
						<input type="button" class="virtual_key virtual_key_space" for="mixed_pay_client_name" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_client_name" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_client_name" value=".">
					</div>
					{~@keys='1234567890-+|ЙЦУКЕНГШЩЗХЪ|ФЫВАПРОЛДЖЭ_|ЯЧСМИТЬБЮ@'~}
					<div class="ru">
						<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
							{~@a=mb_substr(@keys, @i, 1)~}
							<check if="{{@a=='|'}}">
								<true>
						<br>
								</true>
								<false>
						<input type="button" class="virtual_key" value="{{@a}}" for="mixed_pay_client_name">
								</false>
							</check>
						</loop>
						<button type="button" class="virtual_key_bks" for="mixed_pay_client_name">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_client_name" value="CE">
						<br>
						<input type="button" class="virtual_key_eng" value="ENG">
						<input type="button" class="virtual_key virtual_key_space" for="mixed_pay_client_name" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_client_name" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_client_name" value=".">
					</div>
				</div>
					</true>
				</check>
				<p align="center">
					<button type="submit">Сохранить</button>
				</p>
	</form>
		</true>
		<false>
<script type="text/javascript">
var w=$('#error_page').closest('.popup');
clearTimeout(auto_close);
auto_close=setTimeout('w.remove();', 3000);
</script>
		</false>
	</check>
</div>
<script>
false_alarm();
</script>