<!DOCTYPE html>
<html lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>HUTFIT</title>

    <?php
    $vheadcolor = $_SESSION["vheadcolor"];
    $vmidcolor = $_SESSION["vmidcolor"];
    ?>
    <link href="assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">

    <link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css">

    <link href="assets/css/core.css" rel="stylesheet" type="text/css">

    <link href="assets/css/components.css" rel="stylesheet" type="text/css">

    <link href="assets/css/colors.css" rel="stylesheet" type="text/css">

    <link href="assets/css/icons/fontawesome/styles.min.css" rel="stylesheet" type="text/css">

    <!--<link href="path/to/file/interface.css" rel="stylesheet" type="text/css">-->

    <!-- /global stylesheets -->

    <!-- FOR SCALING  -->

    <!-- Core JS files -->

    <script type="text/javascript" src="assets/js/plugins/loaders/pace.min.js"></script>

    <script type="text/javascript" src="assets/js/core/libraries/jquery.min.js"></script>

    <script type="text/javascript" src="assets/js/core/libraries/bootstrap.min.js"></script>

    <script type="text/javascript" src="assets/js/plugins/loaders/blockui.min.js"></script>

    <!-- /core JS files -->


    <link href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.1.1/jquery.min.js"></script>
    <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

    <!-- MY FILES -->

    <script src="scripts/main.js?a=<?= mt_rand(); ?>" type="text/javascript"></script>

    <link href="styles/main.css?b=<?= mt_rand(); ?>" rel="stylesheet" />

    <link href="assets/css/select2.min.css" rel="stylesheet" />
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"> -->
    <!--<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />-->

    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>

    <style>
        .mySearchTr {
            background-color: <?= $vmidcolor; ?> !important;
        }
    </style>



    <script>
        $(document).ready(function() {

            //                $('[data-toggle="tooltip"]').tooltip(); 

            $(".focusfield").focus();





            <?php
            $usertp = $_SESSION["usertype"];



            if ($usertp > 2) {
            ?>

                $("#hdelete").hide();

            <?php
            }
            ?>

            <?php
            if ($addflag != 1) {
            ?>

                $('body').find('.form').attr('disabled', 'disabled');

            <?php
            }
            ?>

            $("#edit").click(function() {

                $('body').find('.form').removeAttr('disabled', 'disabled');

                $(".focusfield").focus();

                $('body').find('.buttonform').removeAttr('style');

                $('#hprevious, #hnext, #hsearch, #hprint, #hadd, #hedit, #hdelete, #hexit, #scancbill').hide();

                $('#ssubmit, #scancel').show();

                $(".remove").show();

                $(".norem").show();

            });

        });
    </script>



    <!-- Keyboard Shortcut Js File -->

    <script type="text/javascript" src="MyScript/shortkeys.js?a=<?= mt_rand(); ?>"></script>
    <input type="hidden" name="menutype" class="menutype" value="<?= $_SESSION["menutype"] ?>">
    <script>
        $(document).ready(function() {
            var menutype = $(".menutype").val();
            //    alert(menutype);

            if (menutype == 2) {
                $(".fitmenu").hide();
            }
            if (menutype == 3) {
                $(".hutmenu").hide();
            }
        });
    </script>