--- a/getAgency.php +++ b/getAgency.php @@ -4,8 +4,9 @@ function displayValue($key, $value, $mode) { global $db, $schemas; + $ignoreKeys = Array("metadata" ,"metaTags", "statistics","rtkURLs","rtkDescriptions"); if ($mode == "view") { - if (strpos($key, "_") === 0 || $key == "metadata" || $key == "metaTags" || $key == "statistics") + if (strpos($key, "_") === 0 || in_array($key,$ignoreKeys)) return; echo ""; @@ -159,8 +160,31 @@ } if ($mode == "view") { - echo '
'; - echo '"; + echo '
+
+
+ +
+
'; + echo '
'; + echo '
+

' . $row['name'] . '

'; + if (isset($row['description'])) { + echo '

'.$row['description'].'

'; + } + echo '

' . $row['name'] . "

'; echo ""; } if ($mode == "edit") { @@ -192,6 +216,10 @@ } if ($mode == "view") { echo "
Field NameField Value
"; + echo ' + + + '; } if ($mode == "edit") { echo ''; @@ -199,24 +227,45 @@ } else { // show all list include_header('Agencies'); + echo '
+
+
+ +
+
+
+

Hello, world!

+

This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.

+

Learn more »

+
+
+
'; try { $rows = $db->get_view("app", "byCanonicalName")->rows; //print_r($rows); $rowCount = count($rows); - echo '
    '; foreach ($rows as $i => $row) { - if ($i % ($rowCount/3) == 0 && $i != 0 && $i != $rowCount -2 ) echo "
    "; + if ($i % ($rowCount/3) == 0 && $i != 0 && $i != $rowCount -2 ) echo '
'; // print_r($row); - echo '
  • + echo '
  • '; - } - echo ""; + . '

    '; + } + } catch (SetteeRestClientException $e) { setteErrorHandler($e); } + echo '
    +
    +
    +
    '; } + include_footer(); ?>