<?php
/************************************************************************/
/*     PROGRAMMER     :  SMA                                            */
/*     SCRIPT NAME    :  adminuser_welcome.php                          */
/*     CREATED ON     :  10/JULY/2006                                   */
/*     MODERNIZED     :  20/AUG/2025                                    */
/*     PURPOSE        :  Welcome Page for admin users (non-Super Admin)*/
/************************************************************************/

include_once '../includes/session.php';
include_once '../includes/constants.php';
include_once '../includes/functions.php';
include_once '../includes/function1.php';

$userobj = new adminuser();

$id = isset($_SESSION['ADMINUSERID']) ? intval($_SESSION['ADMINUSERID']) : 0;

$username = '';
if ($id > 0 && $userobj->GetAdimUserDetails($id)) {
    $username = htmlspecialchars($userobj->username);
}
?>

<table align="center" cellpadding="0" cellspacing="0" class="tablebdr" width="100%" height="350">
    <tr>
        <td align="center" valign="middle">
            <b>
                <font size="+2" color="#000000">
                    <?= $username ?><br />&nbsp;Welcome to Administrator Control Panel.
                </font>
            </b>
        </td>
    </tr>
</table>
