blob: 102d7a169bb26a72191c53d632bdb29337d39f7b (
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
29
30
|
<h1><?=$supplier->get('name')?>: <a href="<?=$supplier->get('website')?>"><?=$supplier->getHost()?></a></h1>
<p>
<?= $supplier->get('description')?>
</p>
<h2>Supplied Parts</h2>
<? if (!empty($parts)): ?>
<table width="100%">
<tr>
<th width="33%">Name</th>
<th>Part #</th>
</tr>
<? foreach ($parts AS $row): ?>
<? $part = $row['UniquePart'] ?>
<? $spart = $row['SupplierPart'] ?>
<? $url = $spart->getBuyUrl() ?>
<tr>
<td><b><a href="<?=$part->getViewUrl()?>"><?=$part->get('name')?></a></b></td>
<? if ($url): ?>
<td><a href="<?=$url?>"><?=$spart->get('part_num')?></a></td>
<? else: ?>
<td><?=$spart->get('part_num')?></td>
<? endif ?>
</tr>
<? endforeach ?>
</table>
<? else: ?>
<b>No parts found.</b>
<? endif ?>
|