<?php
/**
 * The display code for the main welcome page that lists the available mythweb
 * sections.
 *
 * @url         $URL$
 * @date        $Date$
 * @version     $Revision$
 * @author      $Author$
 * @license     GPL
 *
 * @package     MythWeb
 *
/**/

// Set the desired page title
    $page_title = 'MythTV - '.t('Backend Logs');

// Custom headers
    $headers[] = '<link rel="stylesheet" type="text/css" href="'.skin_url.'/backend_log.css" />';

// Print the page header
    require 'modules/_shared/tmpl/'.tmpl.'/header.php';

// No logs?
    if (empty($Logs)) {
    }

    else {
// Print the table header
        echo "<table id=\"backend_logs\">\n<tr class=\"header\">\n  <th>row</th>\n";
        foreach (array_keys($Logs[0]) as $key) {
            echo "  <th>$key</th>\n";
        }
        echo '</tr>';
        foreach ($Logs as $i => $log) {
            echo '<tr class="',
                 ($i % 2 ? 'even' : 'odd'),
                 "\">\n  <td>$i</td>\n";
            foreach ($log as $col) {
                echo "  <td>$col</td>\n";
            }
            echo '</tr>';
        }
        echo "\n</table>";
    }

// Print the page footer
    require 'modules/_shared/tmpl/'.tmpl.'/footer.php';

