<?php if ($record): ?>

<!-- Product Summary & Images -->
<table id="prod-summaryimages">
<tr>
<td id="sumimg-summary">
<div id="summary-foldericon">
<?php foreach (getUploads($options['tableName'], 'thumbnail_image', $record['num']) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="75" height="75" alt="inset photo" />
<?php else: ?>
<img src="/images/NoImage-thumbnail2.jpg" width="75" height="75" alt="inset photo" />
<?php endif ?>
<?php endforeach ?>
<p id="foldericon-yearmodel">
<?php if ($record['year'] != ""): ?>
<?php echo $record['year'] ?><br />
<?php endif ?>
<?php if ($record['model'] != ""): ?>
<?php echo $record['model'] ?>
<?php endif ?>
</p>
</div>
<?php if ($record['summary'] != ""): ?>
<div id="summary-prodsummary">
<?php echo $record['summary'] ?>

</div>
<?php endif ?>
</td>
<td id="sumimg-mainimage">
<?php foreach (getUploads($options['tableName'], 'main_image', $record['num']) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="Product Main Image - <?php echo $upload['filename'] ?>" title="<?php echo $record['name'] ?>" /></a>
<?php else: ?>
<img src="/images/NoImage-main.jpg" alt="NoImage-main.jpg" />
<?php endif ?>
<?php endforeach ?>
</td>
</tr>
<tr>
<td colspan="2" id="sumimg-otherimages">
<br />
<?php foreach (getUploads($options['tableName'], 'other_images', $record['num']) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="<?php echo $upload['filename'] ?>" title="<?php echo $upload['info1'] ?>" /></a>
<?php if (count($images) > 0): ?>  
<p id="otherimages-clicklarger">Click on small photos to enlarge</p>
<?php endif ?>
<?php endif ?>
<?php endforeach ?>
</td>
</tr>
</table>

<br />

<!-- Product Specifications -->
<table id="prod-specs">
<tr>
<td colspan="2" id="specs-groupheader">
<b>EQUIPMENT SPECIFICATIONS</b>
</td>
</tr>
<tr>
<td class="specs-fieldname">Manufacturer:</td>
<td class="specs-fieldinfo">
<?php if ($record['model'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['manufacturer'] ?></span>, &nbsp;
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Model:</td>
<td class="specs-fieldinfo">
<?php if ($record['model'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['model'] ?></span>, &nbsp;
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Year:</td>
<td class="specs-fieldinfo">
<?php if ($record['year'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['year'] ?></span>
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Price:</td>
<td class="specs-fieldinfo">
<?php if ($record['price'] != ""): ?>
<span class="nameinfo-price"><?php echo $record['price'] ?></span>
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">S/N:</td>
<td class="specs-fieldinfo">
<?php if ($record['serial_number'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['serial_number'] ?></span>
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Condition:</td>
<td class="specs-fieldinfo">
<?php if ($record['condition'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['condition'] ?></span>, &nbsp;
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Hours:</td>
<td class="specs-fieldinfo">
<?php if ($record['hours'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['hours'] ?></span>
<?php endif ?>
</td>
</tr>
<tr>
<td class="specs-fieldname">Location:</td>
<td class="specs-fieldinfo">
<?php if ($record['location'] != ""): ?>
<span class="nameinfo-info"><?php echo $record['location'] ?></span>
<?php endif ?>
</td>
</tr>
</table>

<br />

<!-- Product Detailed Description -->
<?php if ($record['description'] != ""): ?>
<table id="prod-longdesc">
<tr>
<td id="longdesc-groupheader">
<b>DETAILED DESCRIPTION:</b>
</td>
<tr>
<td id="longdesc-description">
<?php echo $record['description'] ?>

</td>
</tr>
</table>
<?php endif ?>

<?php endif ?>