// Are there some entries to display?
if (SQL_NUMROWS($result) > 0) {
// List all entries
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// Translate some data and add color
- $content['sw'] = $SW;
$content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
// Fix empty message and status
- if (empty($content['primera_api_message'])) $content['primera_api_message'] = '---';
if (empty($content['primera_api_status'])) $content['primera_api_status'] = 'OK';
// Append it and switch colors
$OUT .= loadTemplate('admin_list_primera_row', true, $content);
- $SW = 3 - $SW;
} // END - while
// Load main template