<?php echo $this->render('header.phtml') ?>
<body style="margin-top: 34px; margin-left: 3em;">

<?php echo $this->render('main-menu.phtml') ?>

<?php if ( $this->meta_refresh ) : ?>
<div class="update-info">
    <?php print sprintf( $this->translate->_("Last Updated: %s"), date("r")); ?>.
    <?php print sprintf( $this->translate->_("Updated every %s seconds"), $this->meta_refresh); ?>
</div>
<?php endif; ?>


<?php
// create array of  content
$aContent = array();
    if ( !empty($this->layout()->job_running) )
        $aContent[] = $this->layout()->job_running;

    if ( !empty($this->layout()->job_next) )
        $aContent[] = $this->layout()->job_next;

    if ( !empty($this->layout()->job_terminated) )
        $aContent[] = $this->layout()->job_terminated;

    if ( !empty($this->layout()->job_timeline) )
        $aContent[] = $this->layout()->job_timeline;

    if ( !empty($this->layout()->job_problem) )
        $aContent[] = $this->layout()->job_problem;

    if ( !empty($this->layout()->volume_problem) )
        $aContent[] = $this->layout()->volume_problem;
?>

<!-- layout content -->
<?php $i = 0; ?>
<?php foreach($aContent as $content) : ?>
    <div class="float_panel">
        <?php
            echo $content;
            $i++;
        ?>
    </div>
    <?php
        if ( ($i % 2) === 0 )
            echo '<br class="clear_both" />';
    ?>
<?php endforeach; ?>

<p style="clear: both;">&nbsp;</p>

</body>
<?php echo $this->render('footer.phtml') ?>