summaryrefslogtreecommitdiff
path: root/trunk/reprap/web/part-lister/views/parts.bytype.php
blob: a92aa2e919f54138926d5020b84081113c8b0d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<? $parts = $collection->getAll(); ?>

<h2>Unique <?=UniquePart::typeToEnglish($type)?> Parts</h2>
<? if (!empty($parts)): ?>
	<table width="100%">
	<tr>
		<th width="33%">Part</th>
		<th>Description</th>
	</tr>
	<? foreach ($parts AS $row): ?>
		<? $part = $row['UniquePart'] ?>
		<tr>
			<td><b><a href="<?=$part->getViewUrl()?>"><?=$part->get('name')?></a></b></td>
			<td><?=$part->get('description')?></td>
		</tr>
	<? endforeach ?>
	</table>
<? else: ?>
	<b>No parts found.</b>
<? endif ?>