blob: c8c8ffadf7b5a62b400418a6e4831513a3e5cf07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<? if (!empty($parts)): ?>
<table>
<tr>
<th>Part #</th>
<th>Name</th>
<th>Quantity</th>
</tr>
<? foreach ($parts AS $part): ?>
<? $unique = new UniquePart($part->get('part_id')) ?>
<tr>
<td>
<?=$part->get('part_num')?>
</td>
<td>
<? if ($url): ?>
<a href="<?=$part->getBuyUrl()?>"><?=$unique->get('name')?>
<? else: ?>
<?=$unique->get('name')?>
<? endif ?>
</td>
<td><?=$part->orderQuantity()?></td>
</tr>
<? endforeach ?>
</table>
<? else: ?>
<b>No parts found.</b>
<? endif?>
|