<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "../cmsAdmin/lib/viewer_functions.php";

  
   
  list($distributionRecords, $distributionMetaData) = getRecords(array(
    'tableName'   => 'distribution',
  ));
  $distributionRecord = @$distributionRecords[0]; // get first record

  list($mountingRecords, $mountingMetaData) = getRecords(array(
    'tableName'   => 'mounting',
  ));
  $mountingRecord = @$mountingRecords[0]; // get first record

  list($lampingRecords, $lampingMetaData) = getRecords(array(
    'tableName'   => 'lamping',
  ));
  $lampingRecord = @$lampingRecords[0]; // get first record
  
  list($brandsRecords, $brandsMetaData) = getRecords(array(
    'tableName'   => 'brands',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $brandsRecord = @$brandsRecords[0]; // get first record
  
  list($downloadsRecords, $downloadsMetaData) = getRecords(array(
    'tableName'   => 'downloads',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
 $downloadsRecord = @$downloadsRecords[0]; // get first record

 

?>
<!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>
  <title>Welcome to Axis Lighting!</title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <style type="text/css">
    body          { font-family: arial; color:#fff;}
    .instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
  a:link {
	color: #80a4c3;
}
a:visited {
	color: #80a4c3;
}
a:hover {
	color: #47637c;
}
  .text-12-no-justify-search {
	font-size: 12px;
	color: #7c93a7;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 16px;
}

.text-12-no-justifySort-butt {
	font-size: 12px;
	color: #FFF;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 35px;
}
  .form-button-clear {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 8pt;
	color: #FFF;
	background-color: #65768a;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	text-transform: uppercase;
	margin-left: 39px;
	margin-top: 15px;
}
  </style>
<link href="axis.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
    <script type="text/javascript">
      jQuery.noConflict();
jQuery(document).ready(function() {
  var getData = "";
  //getData = "";
  jQuery(".searchForm").click(function() {  
   getData = "";
   getData = "mounting=" + jQuery("input[name='mounting']:checked", ".searchForm").val();
   getData += "&distribution=" + jQuery("input[name='distribution']:checked", ".searchForm").val();
   getData += "&lamping=" + jQuery("input[name='lamping']:checked", ".searchForm").val();   


    jQuery.get('search_products_results4.php?' + getData, function(data) {
      jQuery('#searchContent').html(data);
    });
  });
});
</script> 
 
 
 </head>
<body>
  <?php include("header.php"); ?>
  <tr>
    <td height="18"></td>
  </tr>
  <tr>  
    <td height="30" bgcolor="#16191e"><div class="breadcrumbs">Products >> Search Results </div></td>
   </tr>
  <tr>
    <td valign="top">
     <table width="1020" >
      <tr>
        <td width="175" valign="top" bgcolor="#2d343d">
          <form method="GET" action="?" id="searchForm" class="searchForm">
         <span class="text-12-no-justifySort-butt" ><strong>Sort by: </strong> </span>
         <input name="Clear All" type="reset" class="form-button-clear" value="Clear All" />
         <br /><table width="160" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <td height="22" bgcolor="#65768a" class="text-12-no-justifyWhite"><strong>&nbsp;&nbsp;MOUNTING</strong></td>
            </tr>
            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr>
<?php foreach($mountingRecords as $mountingRecord) {            
    echo "        
            <tr>
              <td height='21' bgcolor='#3e4854' class='text-12-no-justifyWhite'>
                <label>
                  <input name='mounting' type='radio' value='" . $mountingRecord['name'] . "' />
                </label>
                " . $mountingRecord['name'] . "</td>
            </tr>
            
        ";  
        } ?>

            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr>
            <tr>
              <td height="22" bgcolor="#65768a" class="text-12-no-justifyWhite"><strong>&nbsp;&nbsp;DISTRIBUTION</strong></td>
            </tr>
            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr>
<?php foreach($distributionRecords as $distributionRecord) {            
    echo "        
            <tr>
              <td height='21' bgcolor='#3e4854' class='text-12-no-justifyWhite'>
                <label>
                  <input name='distribution' type='radio' value='" . $distributionRecord['name'] . "' />
                </label>
                " . $distributionRecord['name'] . "</td>
            </tr>
            
        ";  
        } ?>            


            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr>
            <tr>
              <td height="22" bgcolor="#65768a" class="text-12-no-justifyWhite"><strong>&nbsp;&nbsp;LAMPING</strong></td>
            </tr>
            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr>
<?php foreach($lampingRecords as $lampingRecord) {            
    echo "        
            <tr>
              <td height='21' bgcolor='#3e4854' class='text-12-no-justifyWhite'>
                <label>
                  <input name='lamping' type='radio' value='" . $lampingRecord['name'] . "' />
                </label>
                " . $lampingRecord['name'] . "</td>
            </tr>
            
        ";  
        } ?>     

            <tr>
              <td height="4" bgcolor="#3e4854"></td>
            </tr></table>
            </form>
          </td>
           
               <td width="845" valign="top" bgcolor="#2d343d">
  <div id='searchContent'>          

<?php include "search_products_results4.php"; ?>
  </div>
    </td>
  </tr>
</table>
   <?php include("footer.php"); ?>


</body>
</html>
