<?php if (!defined('MAX_PATH')) { exit; } ?>
    <br />
    <table border='0' cellpadding='0' cellspacing='0' width='100%'>
    <tr>
        <td valign='top'>
            <img class="install-icon" src='<?php echo $imgPath; ?>images/install-tasks.png'></td><td width='100%' valign='top'>
            <br />
            <span class='tab-s'><?php echo $message ?></span>
            <br />
            <img src='<?php echo $imgPath; ?>images/break-el.gif' width='100%' height='1' vspace='8'>
        </td>
    </tr>
    </table>
    <br />
    <br />

    <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tbody>
        <tr>
            <td>&nbsp;</td>
            <td height='25' colspan='2' class='underline'><b>Executing tasks<!-- echo $heading --></b></td>
        </tr>
        <tr>
            <td> </td>
            <td align="center" colspan="2">
    <?php
        if (empty($aPostTasks))
        {
            $aPostTasks[] = array('error'=>array(0=>'No Tasks Found'));
        }
        if (is_array($aPostTasks) && count($aPostTasks))
        {
            foreach ($aPostTasks AS $k => $aItem)
            {
                if (is_array($aItem['error']) && count($aItem['error']))
                {
    ?>
                <table border='0' width='100%' cellpadding='0' cellspacing='0' class='sysinfotable'>
    <?php
                    foreach ($aItem['error'] AS $i => $error)
                    {
    ?>
                    <tr>
                        <td>
                        <?php echo $error; ?>
                        </td>
                    </tr>

                    <!-- NOTE in order for it to look as in mockup we need to split error in two parts
                    as in system check tab
                    <tr>
                      <td class='check'>{$k}</td>
                      <td class='check-res'>{$v}</td>
                    </tr>
                     -->

    <?php
                    }
                }
                ?>
                </table>
              </td>
          </tr>
        </tbody>
      </table>


                <?php
            }
        }
    ?>
<form id="frmOpenads" name="frmOpenads" method="POST" action="install.php">
    <input type="hidden" name="aAdminPost" id="aAdminPost" value="<?php echo htmlspecialchars(stripslashes($_POST['aAdminPost'])); ?>">
    <input type="submit"  class="button" id="btn_finish" name="btn_finish" value="<?php echo $strBtnContinue; ?>" tabindex="1" />
</form>
