Exemplo n.º 1
0
		<td>Bezeichnung</td>
		<td>Anmerkung</td>
		<td>Preis</td>
	</tr>
<?php 
$list = $product->getByFilter($search_product, $search_category, $item_offset, $item_count);
$count = $product->getCountByFilter($search_product, $search_category);
for ($i = 0; $i < count($list); $i++) {
    if ($list[$i][0] == "") {
        continue;
    }
    echo "\t<tr class=\"list_normal\" onclick=\"javascript: window.location.href = 'product_details.php?product_id=" . $list[$i][0] . "';\" onmouseover=\"javascript: this.className='list_hover';\" onmouseout=\"javascript: this.className='list_normal';\">\n";
    echo "\t\t<td>" . $list[$i][0] . "</td>\n";
    echo "\t\t<td>" . $list[$i][1] . "</td>\n";
    echo "\t\t<td>" . $list[$i][2] . "</td>\n";
    echo "\t\t<td align=\"right\">" . number_format($price->getPriceTax($priceset_id, $list[$i][0], $netto, $list[$i][4]), 2) . "</td>\n";
    echo "\t</tr></a>\n";
}
?>

</table>
</div>
<div width="90%" align="right">

<?php 
if ($item_offset != 0) {
    echo "<a href=\"product_list.php?search_product=" . $search_product . "&search_category=" . $search_category . "&item_offset=" . ($item_offset - $item_count) . "&item_count=" . $item_count . "\">zur&uuml;ck</a>&nbsp;";
}
$page_count = $count[0][0] / $item_count;
$start = $item_offset / $item_count - 2;
if ($start < 0) {
	</tr>
	<tr>
		<td><font color="#8C8C8C">Produktnummer:</font> <?php 
    echo $list[$i][0];
    ?>
</td>
	</tr>
	<tr>
		<td><font color="#8C8C8C">Anmerkungen:</font> <?php 
    echo $list[$i][8];
    ?>
</td>
	</tr>
	<tr>
		<td align="right" colspan="2"><font color="#8C8C8C">Preis:</font> <big><?php 
    echo number_format($price->getPriceTax($priceset_id, $list[$i][0], $netto, $list[$i][4]), 2);
    ?>
 EUR</big></td>
	</tr>
	<tr>
		<td align="right" colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td align="right" colspan="2">
			<form action="#" method="post" name="product_details_to_cart">
				<input type="hidden" name="action" value="add_product_to_cart">
				<input type="hidden" name="product_id" value="<?php 
    echo $list[$i][0];
    ?>
">
				<input type="text" name="amount" value="1.0" size="7">