<div {{!@authorization_user?'id="display"':'class="content2"'}}>
	<div class="products" href="{{@URI}}">
		<div class="reload">
			<check if="{{!@authorization_user}}">
			<div align="right">
				<button onclick="window.open('','_self').close();">Закрыть</button>
			</div>
			<br>
			<table width="100%"></table>
			</check>
			<check if="{{@products}}">
			<button value="button" class="show_window right" href="/messages/continue?uri={{urlencode("/products/clearstop")}}">
				Удалить все
			</button>
			</check>
			<h1>
				{{@page_data.title}}
			</h1>
			<table width="100%"></table>
			<div class="stop_list">
				<include href="pagination.htm" />
				<table class="work_table" id="search_products_table">
					<tr>
						<th>
							Наименование
						</th>
						<th width="150" class="order_hide">
							Категория
						</th>
						<th width="100">
							Цена
						</th>
						<th width="100">
							<button type="button" class="show_window" href="/products/addstop">
								Добавить
							</button>
						</th>
					</tr>
					<repeat group="{{@products}}" value="{{@product}}">
					<tr class="product_line">
						<td>
							{{@product.title}}
						</td>
						<td class="order_hide">
							{{@product.category_title}}
						</td>
						<td align="center">
							{~@price=@product.price+(@product.price*(@product.vat/100))*max(0, @product.vat_type)~}
							{~@price=round(@price, 2)~}
							{{number_format(@price, 2)}}
						</td>
						<td>
							<button type="button" class="show_window" href="/products/deletestop?id={{@product.id}}">
								Удалить
							</button>
						</td>
					</tr>
					</repeat>
				</table>
			</div>
		</div>
	</div>
</div>
