<?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 "/services/webpages/a/x/axislighting.com/public/cmsAdmin/lib/viewer_functions.php";

  list($itemsRecords, $itemsMetaData) = getRecords(array(
    'tableName'   => 'items',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
 
  $itemsRecord = @$itemsRecords[0]; // get first record
  
  list($typesRecords, $typesMetaData) = getRecords(array(
    'tableName'   => 'types',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $typesRecord = @$typesRecords[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

  // show error message if no matching record is found
  if (!$itemsRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

?>
<!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></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
<style type="text/css">
    body          {
	font-family: arial;
	background-color: #2e353e;
	}
   
  </style>
 <link href="axis.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="stmenu.js"></script>
<script type="text/javascript" src="stlib.js"></script>
<script type="text/javascript">
    var GB_ROOT_DIR = "http://axislighting.com/CMS/greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />
	
	<script src="lightbox/js/prototype.js" type="text/javascript"></script>
	<script src="lightbox/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
	<script src="lightbox/js/lightbox.js" type="text/javascript"></script>

</head>
<body>
<?php include("header.php"); ?><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="18"></td>
  </tr>
  <tr>
    <td height="30" bgcolor="#16191e"><div class="breadcrumbs">PRODUCTS >> <a href="brandsList.php?type=<?php echo $itemsRecord['type'] ?>"><?php echo $itemsRecord['type'] ?></a> >> 
    <a href="<?php echo $itemsRecord['link'] ?>"><?php echo $itemsRecord['brands'] ?></a> >> <?php echo $itemsRecord['name'] ?></div></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="217" align="left" valign="top" bgcolor="#2d343d"><div class="tree">
           <?php if ($itemsRecord['menu_tree']): ?>
          <script type="text/javascript" src="http://www.axislighting.com/CMS/<?php echo $itemsRecord['menu_tree'] ?>.js"></script>
          <?php endif ?>
        </div>
     </td>
        <td valign="top" bgcolor="#2d343d"><table width="803" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="287" height="76" class="blue-stroke-logo-bottom"><?php foreach ($itemsRecord['logo'] as $upload): ?><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" border="0" />
             
              <?php endforeach ?></td>
            <td width="514" height="76" valign="bottom"><table width="514" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                <td height="45">&nbsp;</td>
                </tr>
              <tr>
                <td width="98" height="31"><?php foreach ($itemsRecord['tab1'] as $upload): ?>
                  <?php if ($upload['isImage']): ?>
                  <a href="<?php echo $itemsRecord['link_tab_1'] ?>" ><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="0" vspace="0" border="0" /></a>
                  <?php endif ?>
                  <?php endforeach ?></td>
                <td width="6" height="31"><img src="images/TABS_spacer.jpg" alt="" width="6" height="31" /></td>
                <td width="98" height="31"><?php foreach ($itemsRecord['tab2'] as $upload): ?>
                  <?php if ($upload['isImage']): ?>
                  <a href="<?php echo $itemsRecord['link_tab_2'] ?>"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="0" vspace="0" border="0" /></a>
                  <?php endif ?>
                  <?php endforeach ?></td>
                <td width="6" height="31"><img src="images/TABS_spacer.jpg" alt="" width="6" height="31" /></td>
                <td width="98" height="31"><?php foreach ($itemsRecord['tab3'] as $upload): ?>
                  <?php if ($upload['isImage']): ?>
                  <a href="<?php echo $itemsRecord['link_tab_3'] ?>"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="0" vspace="0" border="0" /></a>
                  <?php endif ?>
                  <?php endforeach ?></td>
                <td width="6" height="31"><img src="images/TABS_spacer.jpg" alt="" width="6" height="31" /></td>
                <td width="98" height="31"><?php foreach ($itemsRecord['tab4'] as $upload): ?>
                  <?php if ($upload['isImage']): ?>
                  <a href="<?php echo $itemsRecord['link_tab_4'] ?>"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="0" vspace="0" border="0" /></a>
                  <?php endif ?>
                  <?php endforeach ?></td>
                <td width="6" height="31"><img src="images/TABS_spacer.jpg" alt="" width="6" height="31" /></td>
                <td width="98" height="31" valign="bottom"><?php foreach ($itemsRecord['tab5'] as $upload): ?>
                  <?php if ($upload['isImage']): ?>
                  <a href="<?php echo $itemsRecord['link_tab_5'] ?>"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="0" vspace="0" border="0" /></a>
                  <?php endif ?>
                  <?php endforeach ?></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="289" colspan="2" valign="top"><table width="803" border="0" cellpadding="0" cellspacing="0" class="detail-table-middle-top">
              <tr>
                <td width="385" valign="top" bgcolor="#3e4854"><table width="385" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="385" valign="top" class="blue-stroke-img"><?php foreach ($itemsRecord['main_image'] as $upload): ?>
                      <?php if ($upload['isImage']): ?>
                      <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
                      <?php endif ?>
                      <?php endforeach ?>
                      <!-- STEP 2a: Display Uploads for field 'images' (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 -->
                      <!-- STEP2a: /Display Uploads -->
                      <?php if (!$itemsRecord): ?>
                      No record found!<br/>
                      <br/>
                      <?php endif ?></td>
                  </tr>
                </table></td>
                <td valign="top"><table width="417" border="0" cellpadding="0" cellspacing="0" class="detail-table-top">
                  <tr>
                    <td width="16" height="16">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td height="16">&nbsp;</td>
                    <td height="16">&nbsp;</td>
                    <td height="16">&nbsp;</td>
                    </tr>
                  <tr>
                    <td width="16">&nbsp;</td>
                    <td width="185" valign="top"><table width="185" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="18" bgcolor="#667f97"><div align="center" class="table-header-white">luminaire dimensions</div></td>
                        </tr>
                      <tr>
                        <td height="209" align="center" valign="top" bgcolor="#2d343d" class="td-detail-table"><?php foreach ($itemsRecord['luminaire_dimensions'] as $upload): ?>
                          <?php if ($upload['isImage']): ?>
                          <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" vspace="10" /><br/>
                          <?php endif ?>
                          <?php endforeach ?></td>
                        </tr>
                      </table></td>
                    <td width="15">&nbsp;</td>
                    <td width="185"><table width="185" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="18" bgcolor="#667f97"><div align="center" class="table-header-white">downloads</div></td>
                        </tr>
                      <tr>
                        <td height="209" valign="top" bgcolor="#2d343d" class="td-detail-table"><ul class="text-13Copy">
                          <?php foreach ($itemsRecord['brochure'] as $upload): ?>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-b.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Brochure</a>
                            <?php endforeach ?>
                            </li>
                          <li><a href="http://www.axislighting.com/CMS/downloadsDetail-pop-pi.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]"> Product Images</a></li>
                          <li><a href="http://www.axislighting.com/CMS/downloadsDetail-pop-ss.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Specification Sheets</a></li>
                          <?php foreach ($itemsRecord['lighting_application'] as $upload): ?>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-la.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Lighting Application</a>
                            <?php endforeach ?>
                            </li>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-icg.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Integrated Control Guides</a></li>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-ies.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">IES Files</a></li>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-bim.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">BIM Files</a></li>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop-is.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Installation Sheets</a></li>
                          <?php foreach ($itemsRecord['row_configuration'] as $upload): ?>
                          <li> <a href="http://www.axislighting.com/CMS/downloadsDetail-pop.php?<?php echo $itemsRecord['download_id'] ?>" target="_blank" rel="gb_page_center[700, 480]">Row Configurations</a>
                            <?php endforeach ?>
                            </li>
                          </ul></td>
                        </tr>
                      </table></td>
                    <td width="16">&nbsp;</td>
                    </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td valign="top">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td colspan="3" valign="top"><table width="386" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="18" bgcolor="#667f97"><div align="center" class="table-header-white">mounting options</div></td>
                        </tr>
                      <tr>
                        <td height="104" align="center" bgcolor="#2d343d" class="td-detail-table">
                        <table width="350" align="center" cellpadding="2" cellspacing="2">
                            <tr>      <?php $maxCols=3;?>      
                             <?php foreach ($itemsRecord['mounting_options'] as $upload): ?>
                             <td width="115" align="left">   
                          <?php if ($upload['isImage']): ?>
                          <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" border="0" /><br />
                          <?php endif ?> </td>            <? if (@++$count % $maxCols == 0): ?></tr><tr><?php endif ?>       <?php endforeach ?>           </tr>   </table></td>
                        </tr>
                      </table></td>
                    <td>&nbsp;</td>
                    </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td valign="top">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="76" colspan="2" valign="top"><table width="803" border="0" cellpadding="0" cellspacing="0" class="detail-middle-table2">
              <tr>
                <td width="16">&nbsp;</td>
                <td width="4" height="150" valign="top"><table width="550" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="18" bgcolor="#667f97"><div class="table-header-white">&nbsp;&nbsp;lamp configurations</div></td>
                    </tr>
                  <tr>
                    <td height="125" bgcolor="#2d343d" class="td-detail-table"><?php echo $itemsRecord['lamp_configurations'] ?></td>
                    </tr>
                  </table></td>
                <td width="16">&nbsp;</td>
                <td width="200" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="18" bgcolor="#667f97"><div align="center" class="table-header-white">project images</div></td>
                    </tr>
                  <tr>
                    <td height="125" bgcolor="#2d343d" class="td-detail-table">
                     <table width="200" align="center"><tr><td> 
                     <!-- <div class="ppy" id="ppy1">
                        <ul class="ppy-imglist"> -->
                          
                          <?php foreach ($itemsRecord['project_images'] as $upload): ?>
                          
                          <!--  <li>-->
                            
 
 <a href="<?php echo $upload['urlPath'] ?>" rel="lightbox" alt="" title=""><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="95" /></a><br/><a href="lightbox/images/image-1.jpg" rel="lightbox"><img src="lightbox/images/thumb-1.jpg" width="100" height="40" alt="" /></a>
                            <!-- </li>-->
                          
                          
                          <?php endforeach ?>  <!--  </ul>
                       <div class="ppy-outer">
                          <div class="ppy-stage">
                            <div class="ppy-nav">
                              <a class="ppy-prev" title="Previous image">Previous image</a>
                       <a class="ppy-switch-enlarge" title="Enlarge">Enlarge</a>
                              <a class="ppy-switch-compact" title="Close">Close</a>
                              <a class="ppy-next" title="Next image">Next image</a>
                              </div>
                            </div>
                          </div>
                        
                        </div>--></td></tr></table>
                      
                      </td>
                    </tr>
                  </table></td>
                <td width="16">&nbsp;</td>
              </tr>
              <tr>
                <td height="16">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              </table></td>
          </tr>
          </table> </td>
      </tr>
    </table>
  


     </td>
  </tr>
</table>
  <?php include("footer.php"); ?>
</body>
</html>
