<?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($new_motorcycles_metaRecords, $new_motorcycles_metaMetaData) = getRecords(array(
    'tableName'   => 'new_motorcycles_meta',
    'where'       => whereRecordNumberInUrl(1),
    'loadUploads' => '0',
    'limit'       => '1',
  ));
  $new_motorcycles_metaRecord = @$new_motorcycles_metaRecords[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($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
  
  list($new_motorcyclesRecords, $new_motorcyclesMetaData) = getRecords(array(
    'tableName'   => 'new_motorcycles',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $new_motorcyclesRecord = @$new_motorcyclesRecords[0]; // get first record
  
  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_middle_blockRecords, $home_page_middle_blockMetaData) = getRecords(array(
    'tableName'   => 'home_page_middle_block',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $home_page_middle_blockRecord = @$home_page_middle_blockRecords[0]; // get first record
  
  list($button_controlsRecords, $button_controlsMetaData) = getRecords(array(
    'tableName'   => 'button_controls',
    'limit'       => '1',
  ));
  $button_controlsRecord = @$button_controlsRecords[0]; // get first record
  
  list($new_motorcycles_specialsRecords, $new_motorcycles_specialsMetaData) = getRecords(array(
    'tableName'   => 'new_motorcycles_specials',
    'allowSearch' => '1',
  ));
  $new_motorcycles_specialsRecord = @$new_motorcycles_specialsRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$new_motorcyclesRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

?>
<?php 
function callback($a, $b) { 
global $key; 
if ($a[$key] == $b[$key]) return 0; 
return $a[$key] > $b[$key] ? 1 : -1; 
} 
?>
<?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 $new_motorcycles_metaRecord['page_title'] ?></title>
<meta name="keywords" content="<?php echo $new_motorcycles_metaRecord['keywords'] ?>" />
<meta name="description" content="<?php echo $new_motorcycles_metaRecord['description_tag'] ?>" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="shopstyle.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
function sales(URL)
{
  window.open(URL, '_blank', 'width=520,height=500,location=no,left=50,top=50,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=no,status=no');
}
</script>
</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><?php include("includes/header.inc.php"); ?></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="categories.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']): ?>
                                <a href="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" hspace="7" vspace="7" border="0" /></a>
                                <?php elseif ($upload['isImage']): ?>
                                <a href="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a><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"><?php echo $new_motorcycles_specialsRecord['manufacturer'] ?> New Motorcycle Specials</div></td>
                  </tr>
                  <tr>
                    <td align="center" valign="top"><div class="newmotorcyclescontent">
                      <p>&nbsp;</p>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center">   <p>
                            <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
                            <?php foreach ($new_motorcycles_specialsRecords as $record): ?>
                            <br/>
                            <!-- STEP 2a: Display Uploads for field 'upload' (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['upload'] as $upload): ?>
                            <?php if ($upload['hasThumbnail']): ?>
                            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" 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 echo $record['store_location'] ?>
                            <!-- STEP2a: /Display Uploads -->
                            </p>
                          </p>
                            <p>      <!-- STEP 2a: Display Uploads for field 'contact_sales_image' (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 ($button_controlsRecord['contact_sales_image'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <a href="javascript:sales('new-bike-form/form.php')"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" /></a><br/>

          <?php elseif ($upload['isImage']): ?>
            <a href="javascript:sales('new-bike-form/form.php')"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads --></p>
                            <p>
                              <?php endforeach ?>
                              
                              <?php if (!$new_motorcycles_specialsRecords): ?>
                              There currently no specials available!<br/>
                              <br/>
                            </p>
                            <p>
                              <?php endif ?>
                              <!-- /STEP2: Display Records -->
                            </p>
                            <p>&nbsp;</p>
                            <p>&nbsp;</p>
                            <p>&nbsp;</p>
                            <p><a href="javascript:history.go(-1)"><img src="images/go back.jpg" width="70" height="35" border="0" /></a></p>
                            <p>&nbsp;</p>
                            <p>&nbsp;</p></td>
                        </tr>
                      </table>
                      <p>
                      <p> 
                      </p>
                      <p>&nbsp; </p>
                    </div></td>
                  </tr>
                </table></td>
              </tr>
              <tr><tr>
                <td align="center" valign="middle" class="centrebar"><div class="middleboxcontent"><!-- STEP 2a: Display Uploads for field 'upload' (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_middle_blockRecord['upload'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="Action Motorcycles City 02 9212 1122 and Parramatta 02 9893 7588" />
            <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="Action Motorcycles City 02 9212 1122 and Parramatta 02 9893 7588" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
        <?php if (!$home_page_middle_blockRecord): ?>
      No record found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records --></div></td>
              </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"><a href="used-motorcycles.php">View all Pre Owned Model's</a></div></td>
                  </tr>
                  <tr>
                    <td align="center"><div class="hp_preowned_bike_items">
                      <p>or click bike to view by brand</p>
                    </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="<?php echo $record['title'] ?>" 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="<?php echo $record['title'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="5" vspace="7" /> <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 -->
                        <br />
                        <a href="used-motorcycles.php">View All Used Bikes Click Here</a><br />
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td align="right"><!-- STEP 2a: Display Uploads for field 'collectables_image' (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 ($button_controlsRecord['collectables_image'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <a href="collectables.php"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads --></td>
    <td align="left">      <!-- STEP 2a: Display Uploads for field 'weekly_specials_image' (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 ($button_controlsRecord['weekly_specials_image'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <a href="used-motorcycles.php?weekly_specials=1"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads --></td>
  </tr>
</table>
                    </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['title'] ?><br />
<?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" />
  <area shape="rect" coords="179,6,232,28" href="http://stores.shop.ebay.com.au/Action-Motor-Online" target="_blank" />
</map>
</body>
</html>