<?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('/home/amgltdbi/public_html/','','../','../../','../../../');
  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 from 'clients_popup_window'
  list($clients_popup_windowRecords, $clients_popup_windowMetaData) = getRecords(array(
    'tableName'   => 'clients_popup_window',
    'loadUploads' => true,
    'allowSearch' => false,
  ));

?><!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=iso-8859-1" />
<TITLE>Clients: Popup Window - List</TITLE>
<LINK HREF="styles.css" REL="stylesheet" TYPE="text/css" />
</HEAD>

<BODY class="bodyWhite">
    <h1>Clients: Popup Window - List</h1>
    <?php foreach ($clients_popup_windowRecords as $record): ?>
      <p><?php echo htmlencode($record['num']) ?>:&nbsp;<a href="<?php echo $record['_link'] ?>"><?php echo htmlencode($record['title']) ?></a></p>
      <hr noshade="noshade"/>
    <?php endforeach ?>

    <?php if (!$clients_popup_windowRecords): ?>
    <?php endif ?>
</BODY>
</HTML>
