<?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($custom_bikes_metaRecords, $custom_bikes_metaMetaData) = getRecords(array(
    'tableName'   => 'custom_bikes_meta',
    'limit'       => '1',
  ));
  $custom_bikes_metaRecord = @$custom_bikes_metaRecords[0]; // get first record
  
  list($pre_owned_bikes_logosRecords, $pre_owned_bikes_logosMetaData) = getRecords(array(
    'tableName'   => 'pre_owned_bikes_logos',
    'allowSearch' => '0',
  ));
  
  list($newsRecords, $newsMetaData) = getRecords(array(
    'tableName'   => 'news',
    'perPage'     => '10',
    'loadUploads' => '0',
  ));
  
  list($custom_motorbikesRecords, $custom_motorbikesMetaData) = getRecords(array(
    'tableName'   => 'custom_motorbikes',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $custom_motorbikesRecord = @$custom_motorbikesRecords[0]; // get first record	
  
  list($action_tubeRecords, $action_tubeMetaData) = getRecords(array(
    'tableName'   => 'action_tube',
    'perPage'     => '1',
  ));
   
   list($city_products_soldRecords, $city_products_soldMetaData) = getRecords(array(
    'tableName'   => 'city_products_sold',
	'allowSearch' => false, 
	'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',
	'allowSearch' => false, 
	'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',
    'limit'       => '1',
  ));
  $home_page_left_top_boxRecord = @$home_page_left_top_boxRecords[0]; // get first record

?>
<?php include_once "/var/www/vhosts/actionmc.com.au/httpdocs/newsite/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 $custom_bikes_metaRecord['page_title'] ?></title>
<meta name="keywords" content="<?php echo $custom_bikes_metaRecord['keywords'] ?>" />
<meta name="description" content="<?php echo $custom_bikes_metaRecord['description_tag'] ?>" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="shopstyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/easySlider1.5.js"></script>
<script type="text/javascript">
		$(document).ready(function(){	
			$("#slider").easySlider();
		});	
	</script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
</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="#" class="cartlink">View Cart</a> &nbsp;|&nbsp; <a href="#" class="cartlink">My Account</a> &nbsp;|&nbsp; <a href="#" class="cartlink">Order Status</a> &nbsp;|&nbsp; <a href="giftcertificate.php" class="cartlink">Gift Certificates</a> &nbsp;|&nbsp; <a href="#" class="cartlink">Sign in</a> / <a href="#" 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">Custom Rides</div></td>
                  </tr>
                  <tr>
                    <td><div class="custombikecontent">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="50%" align="left" valign="top"><p><strong><?php echo $custom_motorbikesRecord['title'] ?></strong></p>
                            <p><br/>
                              <?php echo $custom_motorbikesRecord['content'] ?><br/>
                              
                              <?php if (!$custom_motorbikesRecord): ?>
                              No record found!<br/>
  <br/>
  <?php endif ?>
                            </p>
                            <p>&nbsp;</p>
                            <p>
                              <!-- /STEP2: Display Records -->
                            </p>
                            <p><a href="<?php echo $custom_motorbikesMetaData['_listPage']; ?>">&lt;&lt; Back to custom bikes list</a></p></td>
                          <td align="left" valign="top"><!-- STEP 2a: Display Uploads for field 'upload' (Paste this anywhere inside STEP2 to display uploads) -->
                              <p>
                                <!-- 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 ($custom_motorbikesRecord['upload'] as $upload): ?>
                                <?php if ($upload['hasThumbnail']): ?>
                                <a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[screenshots]" ><img src="<?php echo $upload['thumbUrlPath3'] ?>" alt="" width="<?php echo $upload['thumbWidth3'] ?>" height="<?php echo $upload['thumbHeight3'] ?>" hspace="5" vspace="5" border="0" align="top" /></a>
                                <?php elseif ($upload['isImage']): ?>
                              </p>
                              <p>                                <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="5" vspace="5" border="0" align="top" /><br/>
                                <?php else: ?>
                                <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
                              </p>
                              <?php endif ?>
                              <?php endforeach ?>
                              <!-- STEP2a: /Display Uploads --></td>
                        </tr>
                      </table>
                      <p></p>
                    </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">Action Tube</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>