--- a/ranking.php +++ b/ranking.php @@ -1,1 +1,213 @@ - +get_db('disclosr-agencies'); +?> +
Agency Name | "; + echo "Score | "; + foreach ($columnKeys as $columnID) { + echo "" . (isset($schemas['agency']["properties"][$columnID]['x-title']) ? $schemas['agency']["properties"][$columnID]['x-title'] : "$columnID") . " | "; + } + echo "
---|---|---|
". $scoredagency['name'] . " | "; + echo "" . $scoredagency['score'] . " | "; + foreach ($columnKeys as $key) { + echo ""; + if (isset($scoredagency['columns'][$key])) { + $value = $scoredagency['columns'][$key]; + if (is_array($value)) { + if (count($value) == 1) { + $href = $value[0]; + } else { + $href = $value[0]; + } + + } else { + $href = $value; + } + if ($href[0] == "@") { + $href = str_replace("@","https://twitter.com/",$href); + } + //$href= urlencode($href); + + echo ""; + + if (strstr($href, "http")) { + echo "✓"; + } else { + echo "✓"; + } + + echo ""; + } else { + echo "✘"; + } + echo " | "; + } + echo "