Вот он!
[spoiler]{* product detailed information view *}
{if $product_info ne NULL}
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1>{$product_info[1]}
<!-- Редактирование на витрине -->
{if $smarty.session.access==3}
<div style="float:right; vertical-align: bottom;">
<a title="Редактировать" href="admin.php?dpt=catalog&sub=products_edit&productID={$product_info[11]}"><img src="./images/prod_edit.png" /></a>
</div>
{/if}
</h1>
</div>
<div class="middle">
{* Picture viever *}
<link rel="stylesheet" type="text/css" href="./css/css_{$smarty.const.CONF_COLOR_SCHEME}/stylesheet/jquery.jqzoom.css">
<script type="text/javascript" src="./css/css_{$smarty.const.CONF_COLOR_SCHEME}/javascript/jquery.jqzoom.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.jqzoom').jqzoom({
zoomType: "standart",
lens: true,
title: false,
preloadImages: false,
preloadText: "Загрузка",
alwaysOn:false,
xOffset:40
});
});
</script>
<table id="products" style="width: 100%; border-collapse: collapse;">
<tr>
<td style="width:270px;">
<div class="item">
<div class="thumb_wrapper">
<div class="thumb box_shadow">
<ul>
{if $product_info[5]}
<li><a rev="group1" class="jqzoom" href="./products_pictures/{$product_info[9]}">
<img src="./products_pictures/{$product_info[5]}" title="{$product_info[1]}" style="width: {$smarty.const.RESIZE_NORMAL_X}px; height: {$smarty.const.RESIZE_NORMAL_Y}px" id="dp{$product_info[11]}"></a></li>
{else}
<img src="./images/nophoto.jpg" style="width:{$smarty.const.RESIZE_NORMAL_X}px; height: {$smarty.const.RESIZE_NORMAL_Y}px" alt="{$product_info[1]}" id="{$product_info[11]}" />
{/if}
{if $product_thumb[0] ne NULL}
{section name=i loop=$product_thumb}
<li><a rev="group1" class="jqzoom" href="./products_thumb/{$product_info[11]}/{$product_thumb}"><img src="./products_thumb/{$product_info[11]}/P_{$product_thumb}" style="width: {$smarty.const.RESIZE_NORMAL_X}px; height: {$smarty.const.RESIZE_NORMAL_Y}px" alt="{$product_desc}"/></a></li>
{/section}
{/if}
</ul>
</div>
{if $product_thumb|@count>0}
<a class="prev" href="#"></a>
<a class="next" href="#"></a>
{/if}
</div>
</div>
<p style="font-weight:bold; float: left;">
{if $product_info[5] || $product_thumb|@count>0}
<span style="padding-left:65px;">Всего изображений: {if $product_info[5]}{$product_thumb|@count+1}{else}{$product_thumb|@count}{/if}</span>
{else}
<span style="padding-left:77px;">Изображений нет</span>
{/if}
</p>
</td>
{* END Picture viever *}
<td style="vertical-align: top; width: 400px; ">
<table style="width: 100%; vertical-align: top;">
{if $product_info[20] ne ""}{* Manufactured *}
<tr>
<td style="vertical-align: top"><b>{$smarty.const.STRING_MANUFACTURER}:</b></td>
<td><a href="./{$product_info[19]}">{$product_info[20]}</a><br></td>
</tr>
{/if}
<tr>{* Model *}
<td style="vertical-align: top"><b>{$smarty.const.STRING_MODEL}:</b></td>
<td>{$product_info[1]}<br></td>
</tr>
{if $product_info[12] ne ""}{* product code *}
<tr>
<td style="vertical-align: top"><b>{$smarty.const.ADMIN_PRODUCT_CODE}:</b></td>
<td>[{$product_info[12]}]<br></td>
</tr>
{/if}
{if $product_info[3] ne 0} {* rating *}
<tr>
<td style="vertical-align: top"><b>{$smarty.const.ADMIN_PRODUCT_RATING}:</b></td>
<td>{section name=i loop=5}{if $smarty.section.i.index<$product_info[3]}<img src="./images/icon_bes.png" alt="{$smarty.section.i.index}" />{else}<img src="./images/black_star.png" alt="{$smarty.section.i.index}" />{/if}{/section} <br /> </td>
</tr>
{/if}
{assign var="id" value=$product_info[11]}
{assign var="p" value=0}
{foreach from=$options2 item=option key=key name=option}
<tr>
<td style="vertical-align: top">
<b>{$option.name}:</b>
</td>
<td>
{if count($option.var)>1}
{assign var="i" value=$i+1}
{assign var="new_price" value="0"}
<select class="product_option_{$option.productID}" onChange="GetNewPrice({$option.productID},this)" name="product_option_{$option.productID}_{$key}" id="product_option[{$option.productID}][{$i}]">
<option rel="0" value="">Не выбрано</option>
{foreach from=$option.var item=var}
<option {if $var.default} {assign var=p value=$p+$var.price_surplus} {assign var="newfoto" value=$var.picture} selected{/if} rel="0" value="{$var.variantID}:{$var.price_surplus}:{$var.picture}">{$var.name}{if $var.price_surplus!=0} {assign var="new_price" value="1"} ({if $var.price_surplus>0}+{/if}{math equation="x/y" x=$var.price_surplus y=$smarty.const.CURRENCY_val format="%.2f"}){/if}</option>
{/foreach}
</select>
{else}
{$option.var.0.name}
{/if}
<br>
</td>
</tr>
{/foreach}
<tr>
<td style="vertical-align: top" colspan="2">
<div {if !$new_price} style="display:none;" {/if}>
{$smarty.const.STRING_NEWPRICE}: {$smarty.const.CONF_CURRENCY_ID_LEFT}<font id="vnewprice{$id}" >{math equation="x+y/z" x=$product_info[4] y=$p z=$smarty.const.CURRENCY_val format="%.2f" assign="newsum"}{$newsum|print_price}</font>{$smarty.const.CONF_CURRENCY_ID_RIGHT}
</div >
</td>
</tr>
<input type="hidden" id="newprice{$id}" value="{math equation="x+y" x=$product_info.real y=$p format="%.2f"}">
<input type="hidden" id="sprice{$id}" value="{$product_info.real}">
<tr>
<td style="vertical-align: top"><b>{$smarty.const.IN_STOCK}:</b></td>
<td><font style="color: #900">{if $product_info[6]>0}{$product_info[6]}{else}{$smarty.const.IN_STOCK_NO}{/if}</font><br/> </td>
</tr>
{if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0}
<tr>
<td style="vertical-align: top"><b>{$smarty.const.LIST_PRICE}: </b></td>
<td><font class="list_price">{$product_info[25]}</font></td>
</tr>
{/if}
<tr>
<td style="vertical-align: top"><b>{$smarty.const.TABLE_PRODUCT_COST}:</b></td>
<td><font class="pprice"><span id="sum">{$product_info[24]}</span></font></td>
</tr>
{if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0}
<tr>
<td style="vertical-align: top"> </td>
<td> </td>
</tr>
<tr>
<td style="vertical-align: top"><font class="you_save">{$smarty.const.YOU_SAVE}: </font> </td>
<td><font class="you_save_price">{$product_info[26]} ({$product_info[27]}%)</font></td>
</tr>
{/if}
</table>
{if $product_info[28] eq 1}
<div class="border">
<div style="text-align: center;">
<a onclick="$('#product').submit();" id="tocart_{$product_info[11]}" href="./add2cart/{$product_info[14]}" class="ajaxcart button"><span>{$smarty.const.ADD_TO_CART_STRING}</span></a>
<select class="select" id="count_{$product_info[11]}" name="count">
{section name=foo start=1 loop=11}
<option value="{$smarty.section.foo.index}">{$smarty.section.foo.index}</option>
{/section}
</select>
</div>
</div>
{/if}
<script src="http://odnaknopka.ru/ok2.js" type="text/javascript"></script>
</td>
</tr>
</table>
<br>
<div class="tabs">
<a rel="#tab_description">{$smarty.const.ADMIN_PRODUCT_DESC}</a>
{if $accompany}<a rel="#tab_related">{$smarty.const.STRING_RELATED_ITEMS}</a>{/if}
{if $product_thumb[0] ne NULL}
<a rel="#tab_image">{$smarty.const.ADMIN_PRODUCT_THUMB} ({$product_thumb|@count})</a>
{/if}
<a rel="#tab_review">{$smarty.const.PRODUCT_REVIEW_TITLE} {if $reviews} ({$reviews|@count}){/if}</a>
{*if $product_all_count ne NULL}
<a rel="#tab_all_product">{$smarty.const.ADMIN_CATEGORY_ALL} «{$selected_category[1]}»</a>
{/if*}
</div>
<div id="tab_description" class="page">
<div class="border a-justify" style="height: 100%; width: 670px; display:inline-block">
{if $product_info[2] ne ""} {$product_info[2]} {else}<b>Описание отсутствует</b>{/if}
</div>
</div>
{* reviws *}
<div id="tab_review" class="page">
<div id="review"></div>
{if $reviews}
<div id="read">
<div class="heading">{$smarty.const.PRODUCT_REVIEW_ALL}</div>
<div class="border" style="height: 300px; overflow: auto;">
{section name=i loop=$reviews}
<b>{$reviews[2]}</b><br />
<hr />
{$reviews[4]}<br />
<small class="red">[{$reviews[5]}]</small>
<br><br>
{/section}
</div>
<div class="buttons">
<table>
<tr>
<td align="right"><a onclick="{literal}document.getElementById('read').style.display='none'; document.getElementById('write').style.display='block';{/literal}" class="button"><span>{$smarty.const.PRODUCT_REVIEW_WRITE}</span></a></td>
</tr>
</table>
</div>
</div>
<div id="write" style="display: none;">
<div class="heading" id="review_title">{$smarty.const.PRODUCT_REVIEW_WRITE}</div>
<div class="border">
<div id="results"></div><br>
<form action="index.php" class="cmxform" method="post" id="review_form">
<b>{$smarty.const.PRODUCT_REVIEW_NAME}</b><br />
<input type="text" name="name" id="first_name" value="" size="40" class="required" /><br />
<b>{$smarty.const.PRODUCT_REVIEW_EMAIL}</b><br />
<input type="text" name="email" id="email" value="" size="40" class="required email" /><br />
<br />
<b>{$smarty.const.PRODUCT_REVIEW_HELLO}</b>
<textarea name="review" id="review" style="width: 99%;" rows="8" cols="5" class="required"></textarea>
<input type="hidden" id="last_name" value="none" />
<input type="hidden" id="phone" value="8 (000) 000-00-00" />
<input name="productID" id="productID" value="{$product_info[11]}" type="hidden" />
<br />
<b>{$smarty.const.VOTING_FOR_ITEM_TITLE}</b>
<span>{$smarty.const.MARK_POOR}</span>
<input type="radio" name="mark" value="0.1" style="margin: 0;" />
<input type="radio" name="mark" value="1" style="margin: 0;" />
<input type="radio" name="mark" value="2.5" style="margin: 0;" />
<input type="radio" name="mark" value="3.8" style="margin: 0;" />
<input type="radio" name="mark" value="5" style="margin: 0;" checked="checked" />
<span>{$smarty.const.MARK_EXCELLENT}</span><br />
<input type="hidden" name="vote" value="yes" />
<br />
<b>{$smarty.const.STRING_SEND_CAPCHA}:</b>
<br />
<input class='required error' minlength='3' type="text" name="captcha" id="captcha"/>
<br />
<img id="cap" src="./core/core_captcha.php?bg=F7F7F7" alt="{$smarty.const.STRING_SEND_CAPCHA}" onclick="go_cap()" style="cursor:pointer;" title="Обновить капчу"/>
</form>
</div>
<div class="buttons">
<table>
<tr>
<td><a onclick="{literal}document.getElementById('write').style.display='none'; document.getElementById('read').style.display='block';{/literal}" class="button"><span>{$smarty.const.PRODUCT_REVIEW_ALL}</span></a></td>
<td align="right"><a class="button review"><span>{$smarty.const.PRODUCT_REVIEW_WRITE}</span></a></td>
</tr>
</table>
</div>
</div>
{else}
<div>
<div class="heading">{$smarty.const.PRODUCT_REVIEW_WRITE}</div>
<div class="border">
<div id="results"></div><br>
<form action="index.php" method="post" id="review_form">
<b>{$smarty.const.PRODUCT_REVIEW_NAME}</b><br />
<input type="text" name="name" id="first_name" value="" size="40" class="required" /><br />
<b>{$smarty.const.PRODUCT_REVIEW_EMAIL}</b><br />
<input type="text" name="email" id="email" value="" size="40" class="required email"/><br />
<br />
<b>{$smarty.const.PRODUCT_REVIEW_HELLO}</b>
<textarea name="review" style="width: 99%;" rows="8" cols="5" class="required"></textarea>
<input type="hidden" id="last_name" value="none" />
<input type="hidden" id="phone" value="8 (000) 000-00-00" />
<input name="productID" id="productID" value="{$product_info[11]}" type="hidden" />
<br />
<b>{$smarty.const.VOTING_FOR_ITEM_TITLE}</b>
<span>{$smarty.const.MARK_POOR}</span>
<input type="radio" name="mark" value="0.1" style="margin: 0;" />
<input type="radio" name="mark" value="1" style="margin: 0;" />
<input type="radio" name="mark" value="2.5" style="margin: 0;" />
<input type="radio" name="mark" value="3.8" style="margin: 0;" />
<input type="radio" name="mark" value="5" style="margin: 0;" checked="checked" />
<span>{$smarty.const.MARK_EXCELLENT}</span><br />
<input type="hidden" name="vote" value="yes" />
<br />
<b>{$smarty.const.STRING_SEND_CAPCHA}:</b>
<br />
<input class='required error' minlength='3' type="text" name="captcha" id="captcha" class="required"/>
<br />
<img id="cap" src="./core/core_captcha.php?bg=F7F7F7" alt="{$smarty.const.STRING_SEND_CAPCHA}" onclick="go_cap()" style="cursor:pointer;" title="Обновить капчу"/>
</form>
</div>
<div class="buttons">
<table>
<tr>
<td align="right"><a class="button review"><span>{$smarty.const.PRODUCT_REVIEW_WRITE}</span></a></td>
</tr>
</table>
</div>
</div>
{/if}
</div>
{* more image *}
{if $product_thumb[0] ne NULL}
<div id="tab_image" class="page">
<div style="display: inline-block;">
{section name=i loop=$product_thumb}
<div style="display: inline-block; float: left; text-align: center; margin-left: 5px; margin-right: 5px; margin-bottom: 10px;">
<p>{$product_desc}</p>
<a href="./products_thumb/{$product_info[11]}/{$product_thumb}" title="{$product_desc}" rel="example_group">
<img src="./products_thumb/{$product_info[11]}/P_{$product_thumb}" alt="{$product_desc}" style="border: 1px solid #DDDDDD; margin-bottom: 3px;" /><br>
<span style="font-size: 11px">{$smarty.const.ENLARGE_PICTURE}</span></a>
</div>
{/section}
</div>
</div>
{/if}
{* related products *}
{if $accompany}
<div id="tab_related" class="page">
<div style="background: #F7F7F7; border: 1pxsolid #DDDDDD; padding: 10px; margin-bottom: 10px;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
{section name=i2 loop=$accompany}
<td style="text-align: center;">
{if $accompany[i2][3]}
<a href="./{$accompany[i2][5]}"><img src="./products_pictures/{$accompany[i2][3]}" alt="{$accompany[i2][2]}" /></a>
<br />
{/if}
<a href="./{$accompany[i2][5]}">{$accompany[i2][2]}</a>
</td>
{/section}
</tr>
</table>
</div>
</div>
{/if}
<div>
{*include file="dechevle.tpl.html"*}
</div>
{* all products
{if $product_all_count ne NULL}
<div id="tab_all_product" class="page">
<div id="allproduct" style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px; height: 200px; overflow: auto;">
<ul>
{section name=i5 loop=$product_all max=$product_all_count}
<li><a href="index.php?productID={$product_all[i5][0]}">{$product_all[i5][1]}</a></li>
{/section}
</ul>
</div>
</div>
{/if}*}
</div>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
{/if}
[/spoiler]