<?php
$spec = $_SESSION["spltype_" . $dbname];
?>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php Echo $project_title; ?></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <!-- Favicon -->
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
    <!-- Font Icons -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/simple-line-icons.css">
    <!-- CSS Animate -->
    <link rel="stylesheet" href="assets/css/animate.css">
    <!-- Switchery -->
    <link rel="stylesheet" href="assets/plugins/switchery/switchery.min.css">
    <!-- Custom styles for this theme -->
    <link rel="stylesheet" href="assets/css/main.css">
    <!-- Fonts -->

    <!-- JQUERY CDN -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <!-- SELECT2 -->
    <link href="assets/plugins/select2/select2.min.css" rel="stylesheet" />
    <script src="assets/plugins/select2/select2.full.min.js"></script>
    <!-- DataTables-->
    <link rel="stylesheet" href="assets/plugins/dataTables/css/dataTables.css">
    <!-- MY FILES -->
    <script src="MyScript/main-js.js?a=109" type="text/javascript"></script>
    <script src="MyScript/shortkeys.js" type="text/javascript"></script>
    <link href="MyStyle/main-css.css" rel="stylesheet" />
    <?php 
    
        if($spec == 1){
            $bgclr = "#58B19F";
        } else {
            $bgclr = "#554480";
        }
    ?>
    
    <style>

        #header .brand {
            float: left;
            width: 240px;
            min-height: 80px;
            padding: 0 0 0 10px;
            position: relative;
            background: <?= $bgclr; ?> 25px 26px;
        }
        .mySearchTr{
            background-color: <?= $bgclr;?>;
        }
        /* Chrome, Safari, Edge, Opera */
        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        /* Firefox */
        input[type=number] {
            -moz-appearance: textfield;
        }
        </style>
    <script>
        $(document).ready(function () {
<?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, #sdelotp').hide();
                $('#ssubmit, #scancel').show();
                $(".remove").show();
            });
        });
    </script>