} // navigation commands for tables, if necessary if ($stats['count'] > TABLES_PER_PAGE) { $home = 'tables/'; if ($context['with_friendly_urls'] == 'Y') { $prefix = $home . 'index.php/'; } elseif ($context['with_friendly_urls'] == 'R') { $prefix = $home; } else { $prefix = $home . '?page='; } $context['page_menu'] += Skin::navigate($home, $prefix, $stats['count'], TABLES_PER_PAGE, $page); } // query the database and layout that stuff $offset = ($page - 1) * TABLES_PER_PAGE; if (!($text = Tables::list_by_date($offset, TABLES_PER_PAGE, 'full'))) { $context['text'] .= '<p>' . i18n::s('No table has been created yet.') . '</p>'; } elseif (is_array($text)) { $context['text'] .= Skin::build_list($text, 'decorated'); } } // page tools if (Surfer::is_associate()) { $context['page_tools'][] = Skin::build_link('tables/import.php', i18n::s('Import'), 'basic'); $context['page_tools'][] = Skin::build_link('tables/check.php', i18n::s('Maintenance'), 'basic'); } // page extra content $cache_id = 'tables/index.php#extra'; if (!($text = Cache::get($cache_id))) { // side bar with the list of most recent pages if ($items =& Articles::list_by('publication', 0, COMPACT_LIST_SIZE, 'compact')) {