summaryrefslogtreecommitdiff
path: root/trunk/reprap/web/part-lister/views/parts.all.php
blob: 5629d88593db4b8052c1ae0b1d521cd7dbf4965f (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
<h1>Parts</h1>
<? if (!empty($parts)): ?>
		<? foreach ($parts AS $row): ?>
			<? $part = $row['UniquePart'] ?>
			<? if ($part->get('type') != $type): ?>
				<? if ($type): ?>
					</table>
				<? endif ?>
				<? $type = $part->get('type'); ?>
				<h2><?=UniquePart::typeToEnglish($type)?> Parts (<a href="/type/<?=$type?>">see all</a>)</h2>
				<table width="100%">
					<tr>
						<th width="33%">Part</th>
						<th>Description</th>
					</tr>
			<? endif ?>
			<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 ?>