Пример #1
0
		<table width="100%">
			<thead>
				<tr>
					<th width="40px"><a href="#">ID<img src="img/icons/arrow_down_mini.gif" width="16" height="16" align="absmiddle" /></a></th>					
					<th><a href="#">Name</a></th>
					<th><a href="#">Description</a></th>
					<th width="90px"><a href="#">Type</a></th>
					<th width="70px"><a href="#">Sub_Type</a></th>
					<th width="90px"><a href="#">Price</a></th>
					<th width="60px"><a href="#">Action</a></th>
				</tr>
			</thead>
			<tbody>
				<?php 
require_once "../../controller/ProductController.php";
$products = ProductController::GetAll($curItem, $maxItems);
$totalItems = ProductController::Count();
if ($totalItems != 0) {
    foreach ($products as $product) {
        ?>
					<tr>
					<td class="a-center"><?php 
        echo $product["ID"];
        ?>
</td>
					<td><a href="?action=view&<?php 
        echo "id=" . $product["ID"];
        ?>
"><?php 
        echo $product["Name"];
        ?>
Пример #2
0
				<thead>
					<tr>
						<th width="40px"><a href="#">ID<img src="img/icons/arrow_down_mini.gif" width="16" height="16" align="absmiddle" /></a></th>					
						<th><a href="#">Name</a></th>
						<th><a href="#">Description</a></th>
						<th width="90px"><a href="#">Type</a></th>
						<th width="50px"><a href="#">Sub_Type</a></th>
						<th width="90px"><a href="#">Price</a></th>
						<th width="60px"><a href="#">Action</a></th>
					</tr>
				</thead>
				<tbody>
					<?php 
require_once "../../controller/ProductController.php";
$totalItems = ProductController::Count();
$products = ProductController::GetAll(0, $totalItems);
foreach ($products as $product) {
    ?>
						<tr>
						<td class="a-center"><?php 
    echo $product["ID"];
    ?>
</td>
						<td><a href="?action=view&<?php 
    echo "id=" . $product["ID"];
    ?>
"><?php 
    echo $product["Name"];
    ?>
</a></td>
						<td><?php