<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "/var/www/vhosts/actionmc.com.au/httpdocs/cmsAdmin/lib/viewer_functions.php";

  list($google_analyticsRecords, $google_analyticsMetaData) = getRecords(array(
    'tableName'   => 'google_analytics',
    'where'       => whereRecordNumberInUrl(1),
    'loadUploads' => '0',
    'limit'       => '1',
  ));
  $google_analyticsRecord = @$google_analyticsRecords[0]; // get first record
  
  list($used_bikes_metaRecords, $used_bikes_metaMetaData) = getRecords(array(
    'tableName'   => 'used_bikes_meta',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $used_bikes_metaRecord = @$used_bikes_metaRecords[0]; // get first record

  list($button_controlsRecords, $button_controlsMetaData) = getRecords(array(
    'tableName'   => 'button_controls',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $button_controlsRecord = @$button_controlsRecords[0]; // get first record
  
list($motorcycle_historyRecords, $motorcycle_historyMetaData) = getRecords(array(       
	'tableName'   => 'motorcycle_history', 
	'where'       => "title='".mysql_escape(@$_REQUEST['manufacturer'])."'", 
	'allowSearch' => '0',      
	'loadUploads' => '0',  
	'limit'       => '1', 
  )); 
  $motorcycle_historyRecord = @$motorcycle_historyRecords[0]; // get first record

  list($pre_owned_bikes_logosRecords, $pre_owned_bikes_logosMetaData) = getRecords(array(
    'tableName'   => 'pre_owned_bikes_logos',
    'allowSearch' => '0',	
  ));	
 
  list($action_tubeRecords, $action_tubeMetaData) = getRecords(array(
    'tableName'   => 'action_tube',
    'perPage'     => '1',
  ));
	
  list($used_motorcyclesRecords, $used_motorcyclesMetaData) = getRecords(array(
    'tableName'   => 'used_motorcycles',
    'limit'       => '3',
  ));
	
  list($city_products_soldRecords, $city_products_soldMetaData) = getRecords(array(
    'tableName'   => 'city_products_sold',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $city_products_soldRecord = @$city_products_soldRecords[0]; // get first record
  
  list($parramatta_products_soldRecords, $parramatta_products_soldMetaData) = getRecords(array(
    'tableName'   => 'parramatta_products_sold',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $parramatta_products_soldRecord = @$parramatta_products_soldRecords[0]; // get first record
 
  list($home_page_left_top_boxRecords, $home_page_left_top_boxMetaData) = getRecords(array(
    'tableName'   => 'home_page_left_top_box',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $home_page_left_top_boxRecord = @$home_page_left_top_boxRecords[0]; // get first record
 
  // show error message if no matching record is found
  if (!$google_analyticsRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

?>
<?php include_once "/var/www/vhosts/actionmc.com.au/httpdocs/includes/spambot-email-protector.php" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $used_bikes_metaRecord['page_title'] ?></title>
<meta name="keywords" content="<?php echo $used_bikes_metaRecord['keywords'] ?>" />
<meta name="description" content="<?php echo $used_bikes_metaRecord['description_tag'] ?>" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="shopstyle.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {

var pageTracker = _gat._getTracker("<?php echo $google_analyticsRecord['google_account'] ?>");
pageTracker._trackPageview();
} catch(err) {}</script>
<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div class="pagecartheader">
      <div class="pagecartheadercontent"><a href="cart.php" class="cartlink">View Cart</a> &nbsp;|&nbsp; <a href="cart.php?mode=acct" class="cartlink">My Account</a> &nbsp;|&nbsp; <a href="clientlogin.php#ord" class="cartlink">Order Status</a> &nbsp;|&nbsp; <a href="giftcertificate.php" class="cartlink">Gift Certificates</a> &nbsp;|&nbsp; <a href="clientlogin.php" class="cartlink">Sign in</a> / <a href="cart.php?mode=newaccount" class="cartlink">Create Account</a></div>
    </div></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><div class="headertop"></div></td>
      </tr>
      <tr>
        <td><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="maintable">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="975"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="header">
              <tr>
                <td height="146" id="logo"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="105" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="22%" rowspan="2"><div class="logo"><a href="index.php"><img src="images/action-mc-logo.jpg" width="250" height="88" border="0" /></a></div></td>
                        <td width="38%" rowspan="2"><div class="slogan"><a href="finance-insurance.php"><img src="images/slogan.jpg" width="400" height="100" border="0" /></a></div></td>
                        <td height="32" align="center"><div class="socialnetworks"><img src="images/socialnetworks.jpg" width="240" height="32" border="0" usemap="#Map" /></div></td>
                      </tr>
                      <tr>
                        <td width="30%" align="center" valign="top" class="ridingconditions">                        
                          <div class="weather"><!--Weatherzone forecast button-->
  <script type="text/javascript" src="http://www.weatherzone.com.au/woys/graphic_forecast.jsp?postcode=2000&locality=sydney"></script>
<a href="http://www.weatherzone.com.au/radar.jsp">lightning tracker</a>
<!--end Weatherzone forecast button--></div>Today's Riding Conditions</td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="35" align="center"><div class="navnew"><span class="link"><a href="getting-your-licence.php" class="link">Getting Your Licence</a></span> <span class="navbars">|</span> <span class="link"> <a href="new-scooters.php" class="link">Scooters</a></span> <span class="navbars">|</span> <span class="link"> <a href="learner-legal.php" class="link">Learner Approved</a></span> <span class="navbars">|</span> <span class="link"> <a href="new-motorcycles.php" class="link">Motorcycles</a></span> <span class="navbars">|</span> <span class="link"> <a href="finance-insurance.php" class="link">Finance &amp; Insurance</a></span> <span class="navbars">|</span> <span class="link"> <a href="accessories.php" class="link">Online Accessories</a></span> <span class="navbars">|</span> <span class="link"> <a href="service-booking.php" class="link">Service Bookings</a></span> <span class="navbars">|</span> <span class="link"> <a href="sell-your-bike.php" class="link">Sell Your Bike Today</a></span> <span class="navbars">|</span> <span class="link"> <a href="vip-club.php" class="link">VIP Riders Club</a></span></div></td>
                  </tr>
                </table></td>
                </tr>
              </table></td>
              </tr>
              <tr>
                <td height="250"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                        <td width="50%" align="left"><div class="lefttop">
                          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="lefttoptxt">
                            <tr>
                              <td align="center" valign="top">
                                <!-- STEP 2a: Display Uploads for field 'left_top_logo' (Paste this anywhere inside STEP2 to display uploads) -->
                                <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
                                <?php foreach ($home_page_left_top_boxRecord['left_top_logo'] as $upload): ?>
                                <?php if ($upload['hasThumbnail']): ?>
                                <img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" hspace="7" vspace="7" />
                                <?php elseif ($upload['isImage']): ?>
                                <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
                                
                                <?php else: ?>
                                <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
                                
                                <?php endif ?>
                                <?php endforeach ?>
                                <!-- STEP2a: /Display Uploads --><br/></td>
                              </tr>
                            <tr>
                              <td align="center" valign="bottom"><!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
                                <!-- STEP 2a: Display Uploads for field 'logos' (Paste this anywhere inside STEP2 to display uploads) -->
                                <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
                                <?php foreach ($home_page_left_top_boxRecord['logos'] as $upload): ?>
                                <?php if ($upload['hasThumbnail']): ?>
                                <a href="http://<?php echo $upload['info1'] ?>" target="_blank"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" hspace="5" border="0" /></a>
                                <?php elseif ($upload['isImage']): ?>
                                <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="5" border="0" /><br/>
                                
                                <?php else: ?>
                                <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
                                
                                <?php endif ?>
                                <?php endforeach ?>
                                <?php if (!$home_page_left_top_boxRecord): ?>
                                No record found!<br/><br/>
                                <?php endif ?></td>
                              </tr>
                          </table>
                        </div></td>
                        <td width="50%" align="left" class="righttopunder">
                        
                        <div class="righttop">
                          <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="470" height="250">
                            <param name="movie" value="cu3er.swf" />
                            <param name="quality" value="high" />
                            <param name="wmode" value="opaque" />
                            <param name="swfversion" value="9.0.45.0" />
                            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                            <param name="expressinstall" value="Scripts/expressInstall.swf" />
                            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                            <!--[if !IE]>-->
                            <object type="application/x-shockwave-flash" data="cu3er.swf" width="470" height="250">
                              <!--<![endif]-->
                              <param name="quality" value="high" />
                              <param name="wmode" value="opaque" />
                              <param name="swfversion" value="9.0.45.0" />
                              <param name="expressinstall" value="Scripts/expressInstall.swf" />
                              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                              <div>
                                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                              </div>
                              <!--[if !IE]>-->
                            </object>
                            <!--<![endif]-->
                          </object>
                        </div></td>
                      </tr>
                </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><div class="middletitlebar"></div></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><div class="headertxt">Pre Owned Model's</div></td>
                  </tr>
                  <tr>
                    <td align="center" valign="top"><div class="usedbikescontent"><table border="0" align="center" cellpadding="3" cellspacing="3"> 
                      <tr>  
                        
<?php foreach ($used_motorcyclesRecords as $record): ?> 
                        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="usedbikesoutline">
                          <tr>
                            <td width="175" height="140" align="left" valign="top" nowrap="nowrap"><p><span class="usedbikeheadersmall"><strong><a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a></strong></span><strong>&nbsp;&nbsp;<?php if (strtotime(date('Y-m-d'))-strtotime($record['createdDate']) < 60*60*24*30): ?> 
                              <span style="color:red;font-weight:bold;text-decoration:blink;"><br />
                                JUST ARRIVED</span> 
                              <?php endif; ?> <br />
                              </strong>
                              Year: <em><?php echo $record['year'] ?></em><br/>
                              KM: <em><?php echo $record['km'] ?></em><br />
                              Engine: <em><?php echo $record['engine'] ?>cc</em></p>
                              <p><?php echo $record['location'] ?><br />
                                
                                <a href="<?php echo $record['_link'] ?>"><br />
                                <?php foreach ($button_controlsRecord['view_bike_image'] as $upload): ?>
                                  <?php if ($upload['hasThumbnail']): ?>
                                  <img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" /><br/>
                                  
                                  <?php elseif ($upload['isImage']): ?>
                                  <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /><br/>
                                  
                                  <?php else: ?>
                                  
                                  <?php endif ?>
                                  <?php endforeach ?></a></td>
                            </tr>
                          <tr>
                            <td height="145" align="center" valign="bottom" nowrap="nowrap"><p>
                              <?php if($record['sold']): ?>
                              <span style="color:blue;font-weight:bold;text-decoration:underline;">JUST SOLD</span>
                              <?php endif ?></p>
                              <div class="usedbikesimg">
                              <p>
                                <?php foreach ($record['pictures'] as $upload): ?>
                                  <?php if ($upload['hasThumbnail']): ?>
                                  <a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath4'] ?>" alt="" width="<?php echo $upload['thumbWidth4'] ?>" height="<?php echo $upload['thumbHeight4'] ?>" border="0" /></a><br/>
                                  <?php elseif ($upload['isImage']): ?>
                                  <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
                                  <?php else: ?>
                                  <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
                                </p>
                                <?php endif ?>
                                <?php break; ?>
                                <?php endforeach ?>
                            </div></td>
                            </tr>
                          </table>
                          <!-- /STEP2: Display Records --></td> 
                        
                        <?php $maxCols=5; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?> 
                          <?php endforeach ?> 
                          
                          </tr> 
  </table>
                        <p><br />
                          <br />
                          <?php if ($used_motorcyclesMetaData['invalidPageNum']): ?>
                          Results page '<?php echo $used_motorcyclesMetaData['page']?>' not found, <a href="<?php echo $used_motorcyclesMetaData['firstPageLink'] ?>">start over &gt;&gt;</a>.<br/>
                          <br/>
                          <?php elseif (!$used_motorcyclesRecords): ?>                        
                        <p>                        
                        <p>                          <span class="nousedstock"><strong><br />
                              <br />
                          Sorry we are currently uploading all of our used bike stock please call us to inquire about our used bikes models!</strong></span><strong><br />
                          <br />
<br/>
                          </strong><br/>
                          <?php endif ?>
                          <!-- /STEP2: Display Records -->
                          <!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") -->
                          <?php if ($used_motorcyclesMetaData['prevPage']): ?>
                          <a href="<?php echo $used_motorcyclesMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>
                          <?php else: ?>
                          &lt;&lt; prev
                          <?php endif ?>
                          - page <?php echo $used_motorcyclesMetaData['page'] ?> of <?php echo $used_motorcyclesMetaData['totalPages'] ?> -
                          <?php if ($used_motorcyclesMetaData['nextPage']): ?>
                          <a href="<?php echo $used_motorcyclesMetaData['nextPageLink'] ?>">next &gt;&gt;</a>
                          <?php else: ?>
                          next &gt;&gt;
                          <?php endif ?>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left"><div class="historycontent"><strong>
                              <?php if($motorcycle_historyRecord) : ?>
                              The History of <?php echo $motorcycle_historyRecord['title'] ?></strong><br />
                              <?php echo $motorcycle_historyRecord['content'] ?> <br />
                              <?php endif ?></div></td>
                          </tr>
                        </table></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><div class="middletitlebar">
                  
                </div></td>
              </tr>
              <tr>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><div class="headertxt">Pre Owned Model's</div></td>
                  </tr>
                  <tr>
                    <td align="center"><div class="hp_preowned_bike_items">  
                      <p>
                        <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
                        <?php foreach ($pre_owned_bikes_logosRecords as $record): ?>
                        <!-- STEP 2a: Display Uploads for field 'logo' (Paste this anywhere inside STEP2 to display uploads) -->
                        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
                        <?php foreach ($record['logo'] as $upload): ?>
                        <?php if ($upload['hasThumbnail']): ?>
                        <a href="used-motorcycles.php?manufacturer=<?php echo $record['title'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" hspace="5" vspace="7" border="0" /></a>
                        <?php elseif ($upload['isImage']): ?>
                        <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="5" vspace="7" />
                      <br/><br />
<br/>
                        
                        <?php else: ?>
                        <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a>
                        <?php endif ?>
                        <?php endforeach ?>
  <!-- STEP2a: /Display Uploads -->
  <?php endforeach ?>
  
  <?php if (!$pre_owned_bikes_logosRecords): ?>
  No records were found!<?php endif ?>
  <!-- /STEP2: Display Records -->
</p>
</div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><div class="middletitlebar">
                
                </div></td>
              </tr>
              <tr>
                <td><div align="center">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="center" valign="top"><div class="headertxt">City Location</div></td>
                      <td align="center" valign="top">&nbsp;</td>
                      <td align="center" valign="top"><div class="headertxt"><img src="images/action-tube.png" alt="" width="208" height="50" /></div></td>
                      <td align="center" valign="top">&nbsp;</td>
                      <td align="center" valign="top"><div class="headertxt">Parramatta Location</div></td>
                    </tr>
                    <tr>
                      <td width="32%" align="center" valign="top"><div class="hp_city_location">
                        <p><a href="store-locations.php?title=city"><img src="images/citymap.jpg" width="180" height="180" border="0" /><br />
                          </a>Click Map for Full size view</p>
                          <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
      Products Sold at <?php echo $city_products_soldRecord['title'] ?><br/>
      <br/>


      <!-- STEP 2a: Display Uploads for field 'logos' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?php foreach ($city_products_soldRecord['logos'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />
            <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
        <?php if (!$city_products_soldRecord): ?>
      No record found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records --><br />
                        </p>
                      </div></td>
                      <td width="1%" align="center" valign="top"><div class="vdotted">
                      <p>&nbsp;</p>
                    </div></td>
                      <td width="32%" align="center" valign="top"><div class="hp_weekly_specials">  
  <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
    <?php foreach ($action_tubeRecords as $record): ?>
<?php echo $record['content'] ?><br/>
    <?php endforeach ?>

    <?php if ($action_tubeMetaData['invalidPageNum']): ?>
      Results page '<?php echo $action_tubeMetaData['page']?>' not found, <a href="<?php echo $action_tubeMetaData['firstPageLink'] ?>">start over &gt;&gt;</a>.<br/><br/>
    <?php elseif (!$action_tubeRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->
                          </div></td>
                      <td width="1%" align="center" valign="top"><div class="vdotted">
                      <p>&nbsp;</p>
                    </div></td>
                      <td width="32%" align="center" valign="top"><div class="hp_parramatta_location">
                        <p><a href="store-locations.php?title=parramatta"><img src="images/parramattamap.jpg" width="180" height="180" border="0" /><br />
                          </a>Click Map for Full size view<!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
                        </p>
                        <p><!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
      Products Sold at <?php echo $parramatta_products_soldRecord['title'] ?><br/>
      <br/>


      <!-- STEP 2a: Display Uploads for field 'logos' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?php foreach ($parramatta_products_soldRecord['logos'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />
            <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
        <?php if (!$parramatta_products_soldRecord): ?>
      No record found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->                          <br />
                        </p>
                      </div></td>
                    </tr>
                  </table>
                </div></td>
              </tr>
              <tr>
                <td><?php include("includes/footer.inc.php"); ?></td>
              </tr>
            </table></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>

<map name="Map" id="Map">
  <area shape="rect" coords="17,2,43,29" href="index.php" />
  <area shape="rect" coords="48,4,75,29" href="http://twitter.com/ActionMc" target="_blank" />
  <area shape="rect" coords="79,4,105,28" href="http://www.facebook.com/ActionMotorcycles" target="_blank" />
  <area shape="rect" coords="110,5,177,29" href="http://www.paypal.com.au/au" target="_blank" />
</map>
</body>
</html>