| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Михаил 24.12.2010 13:56
<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="margin" />
<xsl:template match="search">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="item">
<tr onmouseover="this.style.backgroundColor='#eeeeee'" onmouseout="this.style.backgroundColor='#FFFFFF'">
<td>
<xsl:apply-templates select="code"/>
</td>
<td>
<xsl:apply-templates select="brand"/>
</td>
<td>
<xsl:apply-templates select="name"/>
</td>
<td>
<xsl:apply-templates select="rest"/>
</td>
<td>
<xsl:apply-templates select="deliverydays_max"/>
</td>
<td>
<xsl:value-of select="ceiling(number(price) * $margin)"/>
</td>
<td>
вот эту ---- <a onclick="AddItem('<xsl:apply-templates select="code"/>','<xsl:apply-templates select="brand"/>','<xsl:apply-templates select="name"/>','<xsl:value-of select="ceiling(number(price) * $margin)"/>','utec')" style="cursor: pointer">
<img src="/i/bullet_add_1.png" style="margin: 5" title="Добавить в корзину" />
</a>
</td>
</tr>
</xsl:template>
<xsl:template match="itemtype|deliverydays|deliverydays_min|direction|currencycode">
<td style="display:none">
<xsl:value-of select="."/>
</td>
</xsl:template>
</xsl:stylesheet>