// Copyright (C) 2006 The Trustees of Princeton University
//
// $Id$ $
//
// Get API handle
require_once 'plc_session.php';
global $adm;
// Print header
require_once 'plc_drupal.php';
drupal_set_title('Sites');
include 'plc_header.php';
?>
10000,'pagesize_area'=>false));
$table->start();
$peers=new Peers($adm);
// All defined sites
$sites = $adm->GetSites(array('is_public' => TRUE),
array('peer_id','name', 'url','latitude','longitude'));
foreach ($sites as $site) {
$name = htmlspecialchars($site['name']);
$url = $site['url'];
$table->row_start();
$peers->cell($table,$site['peer_id']);
if ($url)
$table->cell(href($url,$name));
else
$table->cell($name);
$table->cell($site['longitude']);
$table->cell($site['latitude']);
$table->row_end();
}
$table->end();
include 'plc_footer.php';
?>