<?php
/**
 * The display code for the main welcome page that lists the available mythweb
 * sections.
 *
 * @url         $URL: http://svn.mythtv.org/svn/branches/release-0-23-fixes/mythplugins/mythweb/modules/backend_log/tmpl/lite/backend_log.php $
 * @date        $Date: 2008-02-16 23:23:54 +0200 (Sat, 16 Feb 2008) $
 * @version     $Revision: 16061 $
 * @author      $Author: xris $
 * @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';

