<?php
/**
 * User Module Page — BIS Campaign (no licence enforcement).
 */
$sidebar_active = 'users';
include("web_function.php");
include("User/web_user_function.php");
include('includes/crm_page_start.php');
?>
<body>
    <div class="wrapper">
        <div class="container-fluid">
            <div class="row" style="min-height:90vh">
                <div class="col-sm-2" style="padding-left:0">
                    <?php include("includes/sidebar.php"); ?>
                </div>
                <div class="col-sm-10 mt-3" style="padding-left:0">
                    <div class="rightpanels">
                        <?php
                        $token = base64_decode($_GET['token'] ?? '');
                        if ($token == 'web_userhome') {
                            include_once("User/web_userhome.php");
                        } else if ($token == 'web_usercreate') {
                            include_once("User/web_usercreate.php");
                        } else if ($token == 'web_userdetailview') {
                            include_once("User/web_userdetailview.php");
                        } else {
                            echo "<script>window.location.href = '../web_logout.php';</script>";
                            exit;
                        }
                        ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <?php include("includes/web_footer.php"); ?>
        </div>
    </div>
</body>
<script language="javascript" src="<?=$SiteURL?>/public/js/user_script.js"></script>
