$f_AdminButtons
<table cellpadding=0 cellspacing=0 border=0 class=c_new align=left><tr><td valign=top>
<table border=0 cellpadding=0 cellspacing=0 class=c_main align=left>
<tr><td class=c_verx>
<a class=c_link_01 href='$fullLink'>".opt($f_prtualetn, "$f_prtualetn")." ".opt($f_protivparaz, "$f_protivparaz")." ".opt_case($f_toys, "$f_toys", "$f_Vendor")." </a>
</td></tr>
<tr><td class=cat_td_img colspan=2>
".opt_case($f_SmallImg1, "<a href='$fullLink'><img src=$f_SmallImg1 border=0 class=cat_img></a>","<img src=/images1/nofoto.jpg border=0 class=cat_img>")."
<br><div class=c_op><a class=c_opis href='$fullLink'>$f_Name</a></div>
</td></tr>
<tr><td class=c_kolbaska>
<table cellpadding=0 cellspacing=0 border=0 class=c_cena align=center>
<tr><td class=c_korz>
<form method=post action=\"/netcat/modules/netshop/post.php\" style=\"margin:0\">
<input type='hidden' name='redirect_url' value='$GLOBALS[uri_path]'>
<input type='hidden' name='cart_mode' value='add'>
<input type='hidden' name='cart[$classID][$f_RowID]' value='1'>
<input type=image src=/images1/korzinka.jpg alt='В корзину'>
</form>
</td>
<td class=c_sto>".$shop->FormatCurrency($Price, $Currency, true, "")."</td>
<td class=c_ves>" .opt_case($f_Ves, "<b>$f_Ves</b> кг", "
" .opt_case($f_Ves_GR, "<b>$f_Ves_GR</b> гр", "<b>1</b> шт"). "
"). "</td>
</tr></table>
</td></tr>
";
$this_item_variants = listQuery("SELECT * FROM Message$classID WHERE Parent_Message_ID=$f_RowID ORDER BY Priority DESC",
'
<tr><td class=c_kolbaska>
<table cellpadding=0 cellspacing=0 border=0 class=c_cena align=center>
<tr><td class=c_korz>
<form method=post action=\"/netcat/modules/netshop/post.php\" style=\"margin:0\">
<input type=hidden name=redirect_url value=\"$GLOBALS[uri_path]\">
<input type=hidden name=cart_mode value=add>
<input type=hidden name=\"cart[{$GLOBALS[classID]}][{$data[Message_ID]}]\" value=1>
<input type=image src=/images1/korzinka.jpg alt=\"В корзину\">
</form>
</td>
<td class=c_sto> ".($data[$GLOBALS["shop"]->PriceColumn]
? $GLOBALS["shop"]->FormatCurrency($data[$GLOBALS["shop"]->PriceColumn], $data[$GLOBALS["shop"]->CurrencyColumn])
: "цена не указана")."</td>
<td class=c_ves>" .opt_case($data[Ves], "<b>$data[Ves]</b> кг", "" .opt_case($data[Ves_GR], "<b>$data[Ves_GR]</b> гр", "<b>1</b> шт"). ""). "
</td>
</tr></table>
</td></tr>');
if($this_item_variants) {
$result .= "
$this_item_variants
";
}
$result .= opt($f_Image, "")."";
# Кнопка "Добавить в корзину" (не показывается в режиме администрирования или если есть варианты товара)
if(!$admin_mode && !listQuery("SELECT COUNT(*) as n FROM Message$classID WHERE Parent_Message_ID=$f_RowID AND Checked=1", '$data[n]')) {
$result .= "
";
}
else if(!$admin_mode) {
# у товара есть варианты
$result .= "";
}
$result .= "<tr><td><img src=/images1/niz.jpg></td></tr>
</td></tr></table>
</td></tr></table>