/**
  * @return \CountryMap 
  */
 private static function populateCountryMap()
 {
     $dao = new GenericDao(Connection::connect());
     $controller = new Controller($dao);
     $countryMap = new CountryMap();
     $countryMap->addOrigins($controller->listOrigins());
     $countryMap->addDestinies($controller->listDestinies());
     return $countryMap;
 }
//$page = $_REQUEST['page'];
$type = $_REQUEST['type_country'];
$list = new ArrayObject();
$table_type = "";
//CacheCountry::setCacheBehavior(SessionAdmin::getCacheBehavior());
//CacheCountry::cacheCountries();
//$countries = CacheCountry::getCountries();
//print_r($countries);
if ($type == 'origin') {
    $table_type = "Origem";
    //$list = $countries->getOrigins()->values();
    $list = $controller->listOrigins();
} elseif ($type == 'destiny') {
    $table_type = "Destino";
    //$list = $countries->getDestinies()->values();
    $list = $controller->listDestinies();
}
?>
<?if($list->count() >  0):?>
<div class="pagination">
</div>
<div id="list-results">
    <table class="list-publications">
        <thead>
            <tr>
                <th>Nome</th>
                <th>Tipo</th>
                <th>Reexportação</th>
                <th style='width: 100px;'>Exclusão</th>
                <th style='width: 100px;'>Edição</th>
            </tr>