<?php

//out put ok message...
if(count($GLOBALS['okMessages']) > 0) { ?>
    <table class="okMsgTable" border=0 cellspacing=0 cellpadding=2>
    <tr>
        <td class="okMessageHeader">
        <img src="<?php echo THEME_PATH;?>/images/success.png">&nbsp;
        <?php echo L_G_SUCCESS; ?>
        </td>
    </tr>
    <tr>
        <td class="okMessage" align=left valign=top>
        <ul class="okMessage2">
        <?php foreach($GLOBALS['okMessages'] as $msg) { ?>
            <li class="okMessage"><?php echo $msg?></li>
        <?php } ?>
        </ul>
        </td>
    </tr>
    </table>
<?php }   //out put error message...
if(count($GLOBALS['errorMessages']) > 0) { ?>
    <table class="errorMsgTable" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr>
        <td class="errorMessageHeader">
            <img src="<?php echo THEME_PATH;?>/images/exclamation.png" />&nbsp;
            <?php echo L_G_ERROR?>
        </td>
    </tr>
    <tr>
        <td class="errorMessage" align="left" valign="top">
        <ul class="errorMessage">
        <?php
            foreach($GLOBALS['errorMessages'] as $msg) { ?>
                <li class="errorMessage"><?php echo $msg?></li>
        <?php } ?>
        </ul>
        </td>
    </tr>
    </table>
<?php } ?>