if(!$page)
$page = 1;
if($arch && !in_array($arch, $arr_arch))
$arch = null;
// Select arch
$class = "";
if(!$arch)
$class = "active";
echo "
\n";
$str = gettext('SORT BY PLATFORM');
echo "\t
$str
\n";
echo "\t\t
\n";
$str = gettext('all platforms');
echo "\t\t\t- $str
\n";
foreach($arr_display_arch as $name) {
$class = "";
if($name == $arch)
$class = 'active';
if($name == end($arr_display_arch))
$li = "last";
else
$li = "";
$url = $base_uri.'arch/'.$name;
echo "\t\t\t- $name
\n";
}
echo "\t\t
\n";
echo "\t
\n";
echo "
\n";
if($page)
$offset = $amount * ($page - 1);
$arr = recentPackages($amount, $offset, $arch);
// Common::pre($arr);
if(count($arr))
foreach($arr as $row)
$arr_packages[$row['package']][] = $row['ebuild'];
// Common::pre($arr_packages);
if(count($arr_packages)) {
foreach($arr_packages as $arr) {
echo keywordsRow($arr, 'new');
}
}
// $page is the current page we are on, so default is 1.
$base = $base_uri;
if($arch)
$base .= "arch/$arch/";
$next_page = $base.($page + 1);
$prev_page = $base.($page - 1);
echo "\n";
?>