<?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($distributionRecords, $distributionMetaData) = getRecords(array(
    'tableName'   => 'distribution',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $distributionRecord = @$distributionRecords[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;
	}
   
  .size-project-images {
	position: absolute;
	width: 129px;
	overflow: hidden;
	height: 82px;
}
.size-table {
	overflow: hidden;
	width: 129px;
	height: 82px;
}
.img-project-images {
	height: 82px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	overflow: hidden;
}
</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>


</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="<?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="288" 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" cellpadding="0" cellspacing="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="7" 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 width="417" 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">
                          <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> </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>
                          <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> </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>
                     <?php if ($downloadsRecord['bim_files']): ?>   <?php if ($itemsRecord['download_id']): ?>          
 <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> <?php endif ?>  <?php endif ?>  
                          <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-rc.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" height="125" valign="top"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="18" bgcolor="#667f97"><div align="center" class="table-header-white">project images</div></td>
                    </tr>
                  <tr>
                    <td height="125" align="center" bgcolor="#2d343d" class="td-detail-table"><table width="125" border="0" align="center" cellpadding="0" cellspacing="0" class="size-table">
                      <tr>
                        <td class="size-project-images"><?php foreach ($itemsRecord['project_images'] as $upload): ?>
                          <?php if ($upload['hasThumbnail']): ?>
                          <a href="<?php echo $upload['urlPath'] ?>" title="" rel="lightbox[dia]" alt=""><img src="<?php echo $upload['thumbUrlPath'] ?>" " alt="" title="<?php echo $upload['info1'] ?>" width="125" class="img-project-images" /></a>
                          <?php endif ?>
                          <?php endforeach ?></td>
                      </tr>
                    </table></td>
                    </tr>
                  </table></td>
                <td width="16">&nbsp;</td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5"></td>
                <td height="5">&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>
