
<?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 */

  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/services/webpages/a/x/axislighting.com/public/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records
  list($galleryRecords, $galleryMetaData) = getRecords(array(
    'tableName'   => 'gallery',  

  ));

   list($globalRecords,$globalMetaData)=getRecords(array(        
	'tableName' =>'global',    
	'limit' => 1,      
	'allowSearch' =>0, 
	));  
  
  $global = $globalRecords[0]; 
  
  ?>
<!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>Welcome to Axis Lighting!</title>
<style type="text/css">
<!--
body {
	background-color: #2e353e;
}
.size-project-images {
	position: absolute;
	width: 129px;
	overflow: hidden;
	height: 82px;
	border: 1px solid #b9cddf;
}
.size-table {
	overflow: hidden;
	width: 129px;
	height: 82px;
}
.img-project-images {
	height: 83px;
	overflow: hidden;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	width: 129px;
}
-->
</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">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</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">
<?php echo $galleryRecord['mounting'] ?> Gallery Images</div></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="500" valign="top" bgcolor="#2d343d"><!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
          <BR />
  <table width="150" align="left" cellpadding="2" cellspacing="2">
    <tr>    <?php foreach ($galleryRecords as $record): ?>      
      <td width="150"  align="left" valign="top">  
      
<table width="150" align="left">
  <tr>
     <td align="left">   
    
<table width="125" border="0" align="align="left"" cellpadding="0" cellspacing="0" class="size-table">
   <tr>
      <td align="left" class="size-project-images"><?php foreach ($record['gallery_images'] as $upload): ?>
                          <?php if ($upload['hasThumbnail']): ?>
                          <a href="<?php echo $upload['urlPath'] ?>" title="" rel="lightbox[<?php echo $record['name'] ?>]" 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>
             
        <?php foreach ($record['brand_logo'] as $upload): ?>
 <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" vspace="6" border="0" />    
        <?php endforeach ?>
       
  </td> 
     </tr>
        </table>
     
      <?php $maxCols=6; if (@++$count % $maxCols == 0): ?>       </tr><tr>      <?php endif ?>     <?php endforeach ?>   
        </tr>
    </table>
    
          <?php if ($galleryMetaData['invalidPageNum']): ?>
          Results page '<?php echo $brandsMetaData['page']?>' not found, <a href="<?php echo $brandsMetaData['firstPageLink'] ?>">start over &gt;&gt;</a>.<br/><br/>
          <?php elseif (!$galleryRecords): ?>
          No records were found!<br/><br/>
          <?php endif ?>
          <!-- /STEP2: Display Records -->
          

          
</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table> <?php include("footer.php"); ?>
