<script id="priceTpl" type="text/html">

	<table class="list_header">
		<thead class="sticked--top">
		<TR class="header_contaner">
			<TH width="15" class="hidden-netbook"><input type="checkbox" name="che" id="che" onclick="checkb()"/></TH>
			<TH class="yw120 text-left">
				<div class="ellipsis hand" id="x-artikul" onclick="changesort('artikul')" title="Изменить порядок вывода">Артикул</div>
			</TH>
			<TH class="min100 text-left">
				<div class="ellipsis hand" id="x-title" onclick="changesort('title')" title="Изменить порядок вывода">Название позиции</div>
			</TH>
			{{#header.nprice_in}}
			<TH class="yw100 text-left">
				<div class="ellipsis hand" id="x-price_in" onclick="changesort('price_in')" title="Изменить порядок вывода">{{header.nprice_in}}, {{valuta}}</div>
			</TH>
			{{/header.nprice_in}}
			{{#header.fields}}
				<TH class="yw100 text-left">
					<div class="ellipsis hand" id="x-{{field}}" onclick="changesort('{{field}}')" title="Изменить порядок вывода">{{title}}, {{valuta}}</div>
				</TH>
			{{/header.fields}}
			<TH class="hidden-netbook text-left yw80"><b>Описание</b></TH>
			<TH width="5"></TH>
		</TR>
		</thead>
		<tbody>
		{{#list}}
			<tr class="ha {{#archive}}graybg-sub{{/archive}} th60" id="price{{id}}">
				<td class="hidden-netbook"><input name="ch[]" type="checkbox" class="mc" id="ch[]" value="{{id}}"/></td>
				<td><span class="ellipsis" title="{{artikul}}">{{artikul}}</span></td>
				<td class="min100">
					<span class="name-ellipsis Bold hand fs-11 mfh-10" title="{{title}}" onclick="editPrice('{{id}}','view');">{{title}}</span>
					{{#category}}<br><span class="smalltxt gray2">{{category}}</span>{{/category}}
				</td>
				{{#header.nprice_in}}
					<td title="{{price_in}} {{header.valuta}}/{{edizm}}"><span>{{price_in}}</span></td>
				{{/header.nprice_in}}
				{{#fields}}
					<td title="{{value}} {{valuta}}/{{edizm}}"><span class="ellipsis">{{value}}</span></td>
				{{/fields}}
				<td class="hidden-netbook">
					<div title="{{content}}" class="ellipsis">{{content}}</div>
				</td>
				<TD valign="middle">
					<div class="action--container">
						<div class="action--block">

							<A href="javascript:void(0)" onclick="editPrice('{{id}}','edit');" title="Изменить" class="gray blue"><i class="icon-pencil blue"></i></A>
							<A href="javascript:void(0)" onclick="cf=confirm('Вы действительно хотите удалить файл?');if (cf)editPrice('{{id}}','delete')" title="Удалить" class="gray red"><i class="icon-cancel red"></i></A>

						</div>
					</div>
				</TD>
			</tr>
		{{/list}}
		</tbody>
	</TABLE>
	
	<div class="space-40"></div>
	
</script>

<script id="priceTplColumns" type="text/html">

	<table class="list_header">
		<thead class="sticked--top">
		<TR class="header_contaner">
			<TH class="w15 hidden-netbook">
				<input type="checkbox" name="che" id="che" onclick="checkb()"/>
			</TH>
			{{#columns}}
				<TH class="{{class}}" data-id="{{field}}" id="x_{{field}}">
					{{{th}}}
					<div class="thandler" title="Переместить колонку"></div>
				</TH>
			{{/columns}}
			<TH class="w5" data-id="buttons"></TH>
		</TR>
		</thead>
		<tbody>
		{{#list}}
			<tr class="ha th55 {{#archive}}graybg-sub gray-dark{{/archive}}" id="catalog{{id}}">
				<TD class="hidden-netbook">
					<input name="ch[]" type="checkbox" class="mc" id="ch[]" value="{{id}}"/>
				</TD>
				{{#cols}}
					{{{td}}}
				{{/cols}}
				<TD data-id="buttons">
					<div class="action--container">
						<div class="action--block">
							<A href="javascript:void(0)" onclick="editPrice('{{id}}','edit');" title="Изменить" class="gray blue"><i class="icon-pencil blue"></i></A>
							<A href="javascript:void(0)" onclick="cf=confirm('Вы действительно хотите удалить файл?');if (cf)editPrice('{{id}}','delete')" title="Удалить" class="gray red"><i class="icon-cancel red"></i></A>
						</div>
					</div>
				</TD>
			</tr>
		{{/list}}
		</tbody>
	</TABLE>
	<div class="h60" style="height:60px"></div>

</script>