MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.217.118.7
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/pilingdrillingservices.com/../thewebshop.co.in/../shsindia.com/crm/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/pilingdrillingservices.com/../thewebshop.co.in/../shsindia.com/crm/header.php
            <div class="navbar-custom">
                <div class="topbar container-fluid">
                    <div class="d-flex align-items-center gap-1">

                        <!-- Topbar Brand Logo -->
                        <!--<div class="logo-topbar">-->
                        <!--    <a href="index-2.html" class="logo-light">-->
                        <!--        <span class="logo-lg">-->
                        <!--            <img src="assets/images/logo.png" alt="logo">-->
                        <!--        </span>-->
                        <!--        <span class="logo-sm">-->
                        <!--            <img src="assets/images/logo-sm.png" alt="small logo">-->
                        <!--        </span>-->
                        <!--    </a>-->
                        <!--    <a href="index-2.html" class="logo-dark">-->
                        <!--        <span class="logo-lg">-->
                        <!--            <img src="assets/images/logo-dark.png" alt="dark logo">-->
                        <!--        </span>-->
                        <!--        <span class="logo-sm">-->
                        <!--            <img src="assets/images/logo-sm.png" alt="small logo">-->
                        <!--        </span>-->
                        <!--    </a>-->
                        <!--</div>-->

                        <!-- Sidebar Menu Toggle Button -->
                        <button class="button-toggle-menu">
                            <i class="ri-menu-line"></i>
                        </button>

                        <!-- Horizontal Menu Toggle Button -->
                        <button class="navbar-toggle" data-bs-toggle="collapse" data-bs-target="#topnav-menu-content">
                            <div class="lines">
                                <span></span>
                                <span></span>
                                <span></span>
                            </div>
                        </button>

                        <!-- Topbar Search Form -->
                        <!--<div class="app-search d-none d-lg-block">-->
                            <!--<form>-->
                            <!--    <div class="input-group">-->
                            <!--        <input type="search" class="form-control" placeholder="Search...">-->
                            <!--        <span class="ri-search-line search-icon text-muted"></span>-->
                            <!--    </div>-->
                            <!--</form>-->
                        <!--</div>-->
                    </div>

                    <ul class="topbar-menu d-flex align-items-center gap-3">
                        <li class="dropdown d-lg-none">
                            <!--<a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button"-->
                            <!--    aria-haspopup="false" aria-expanded="false">-->
                            <!--    <i class="ri-search-line fs-22"></i>-->
                            <!--</a>-->
                            <div class="dropdown-menu dropdown-menu-animated dropdown-lg p-0">
                                <!--<form class="p-3">-->
                                <!--    <input type="search" class="form-control" placeholder="Search ..."-->
                                <!--        aria-label="Recipient's username">-->
                                <!--</form>-->
                            </div>
                        </li>

                       

                        <li class="dropdown notification-list">
                            <!-- <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button"
                                aria-haspopup="false" aria-expanded="false">
                                <i class="ri-mail-line fs-22"></i>
                                <span class="noti-icon-badge badge text-bg-purple">4</span>
                            </a> -->
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated dropdown-lg py-0">
                                <div class="p-2 border-top-0 border-start-0 border-end-0 border-dashed border">
                                    <div class="row align-items-center">
                                        <div class="col">
                                            <h6 class="m-0 fs-16 fw-semibold"> Messages</h6>
                                        </div>
                                        <div class="col-auto">
                                            <a href="javascript: void(0);" class="text-dark text-decoration-underline">
                                                <small>Clear All</small>
                                            </a>
                                        </div>
                                    </div>
                                </div>

                                <div style="max-height: 300px;" data-simplebar>

                                    <!-- item-->
                                    <a href="javascript:void(0);"
                                        class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none">
                                        <div class="card-body">
                                            <div class="d-flex align-items-center">
                                                <div class="flex-shrink-0">
                                                    <div class="notify-icon">
                                                        <img src="images/user-default.png" class="img-fluid rounded-circle" alt="" />
                                                    </div>
                                                </div>
                                                <div class="flex-grow-1 text-truncate ms-2">
                                                    <h5 class="noti-item-title fw-semibold fs-14">Cristina Pride <small
                                                            class="fw-normal text-muted float-end ms-1">1 day ago</small></h5>
                                                    <small class="noti-item-subtitle text-muted">Hi, How are you? What about our
                                                        next meeting</small>
                                                </div>
                                            </div>
                                        </div>
                                    </a>

                                    <!-- item-->
                                    <a href="javascript:void(0);"
                                        class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none">
                                        <div class="card-body">
                                            <div class="d-flex align-items-center">
                                                <div class="flex-shrink-0">
                                                    <div class="notify-icon">
                                                        <img src="assets/images/users/avatar-2.jpg" class="img-fluid rounded-circle"
                                                            alt="" />
                                                    </div>
                                                </div>
                                                <div class="flex-grow-1 text-truncate ms-2">
                                                    <h5 class="noti-item-title fw-semibold fs-14">Sam Garret <small
                                                            class="fw-normal text-muted float-end ms-1">2 day ago</small></h5>
                                                    <small class="noti-item-subtitle text-muted">Yeah everything is fine</small>
                                                </div>
                                            </div>
                                        </div>
                                    </a>

                                    <!-- item-->
                                    <a href="javascript:void(0);"
                                        class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none">
                                        <div class="card-body">
                                            <div class="d-flex align-items-center">
                                                <div class="flex-shrink-0">
                                                    <div class="notify-icon">
                                                        <img src="assets/images/users/avatar-3.jpg" class="img-fluid rounded-circle"
                                                            alt="" />
                                                    </div>
                                                </div>
                                                <div class="flex-grow-1 text-truncate ms-2">
                                                    <h5 class="noti-item-title fw-semibold fs-14">Karen Robinson <small
                                                            class="fw-normal text-muted float-end ms-1">2 day ago</small></h5>
                                                    <small class="noti-item-subtitle text-muted">Wow that's great</small>
                                                </div>
                                            </div>
                                        </div>
                                    </a>

                                    <!-- item-->
                                    <a href="javascript:void(0);"
                                        class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none">
                                        <div class="card-body">
                                            <div class="d-flex align-items-center">
                                                <div class="flex-shrink-0">
                                                    <div class="notify-icon">
                                                        <img src="assets/images/users/avatar-4.jpg" class="img-fluid rounded-circle"
                                                            alt="" />
                                                    </div>
                                                </div>
                                                <div class="flex-grow-1 text-truncate ms-2">
                                                    <h5 class="noti-item-title fw-semibold fs-14">Sherry Marshall <small
                                                            class="fw-normal text-muted float-end ms-1">3 day ago</small></h5>
                                                    <small class="noti-item-subtitle text-muted">Hi, How are you? What about our
                                                        next meeting</small>
                                                </div>
                                            </div>
                                        </div>
                                    </a>

                                    <!-- item-->
                                    <a href="javascript:void(0);"
                                        class="dropdown-item p-0 notify-item read-noti card m-0 shadow-none">
                                        <div class="card-body">
                                            <div class="d-flex align-items-center">
                                                <div class="flex-shrink-0">
                                                    <div class="notify-icon">
                                                        <img src="assets/images/users/avatar-5.jpg" class="img-fluid rounded-circle"
                                                            alt="" />
                                                    </div>
                                                </div>
                                                <div class="flex-grow-1 text-truncate ms-2">
                                                    <h5 class="noti-item-title fw-semibold fs-14">Shawn Millard <small
                                                            class="fw-normal text-muted float-end ms-1">4 day ago</small></h5>
                                                    <small class="noti-item-subtitle text-muted">Yeah everything is fine</small>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                </div>

                                <!-- All-->
                                <a href="javascript:void(0);"
                                    class="dropdown-item text-center text-primary text-decoration-underline fw-bold notify-item border-top border-light py-2">
                                    View All
                                </a>

                            </div>
                        </li>
                        <?php
                            $nots = mysqli_query($db, "select * from notification where date='$currentDate' and user_type != '".$_SESSION['user']['user_type']."' order by id desc");
                            // and user_type != '".$_SESSION['user']['user_type']."'
                        ?>
                        <li class="dropdown notification-list">
                            <a class="nav-link dropdown-toggle arrow-none" data-bs-toggle="dropdown" href="#" role="button"
                                aria-haspopup="false" aria-expanded="false">
                                <i class="ri-notification-3-line fs-22"></i>
                                <span class="noti-icon-badge badge text-bg-pink">
                                    <?php echo mysqli_num_rows($nots); ?>
                                </span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated dropdown-lg py-0">
                                <div class="p-2 border-top-0 border-start-0 border-end-0 border-dashed border">
                                    <div class="row align-items-center">
                                        <div class="col">
                                            <h6 class="m-0 fs-16 fw-semibold"> Notification</h6>
                                        </div>
                                        <div class="col-auto">
                                            <!--<a href="javascript: void(0);" class="text-dark text-decoration-underline">-->
                                            <!--    <small>Clear All</small>-->
                                            <!--</a>-->
                                        </div>
                                    </div>
                                </div>

                                <div style="max-height: 300px;" data-simplebar>
                                     <!--item-->
                                <?php foreach($nots as $msg){ ?>
                                    <a href="javascript:void(0);" class="dropdown-item notify-item">
                                        <div class="notify-icon bg-primary-subtle">
                                            <i class="mdi mdi-comment-account-outline text-primary"></i>
                                        </div>
                                        <p class="notify-details">
                                            <?php
                                            if($msg['user_type'] == 'employee'){
                                                $s = mysqli_fetch_assoc(mysqli_query($db, "select * from tbl_employee where emp_id='".$msg['emp_id']."'"));
                                                echo $s['emp_name'].'-'.$s['emp_number'];
                                            }else{
                                                $s = mysqli_fetch_assoc(mysqli_query($db, "select * from login_tbl where id='".$msg['action_by']."'"));
                                                echo $s['name'];
                                            }
                                            ?>
                                            <br>
                                            <?=$msg['info']?> by <?=$msg['user_type']?>
                                            <!--Caleb Flakelar commented on Admin-->
                                            <small class="noti-time"><?=$msg['date_time']?></small>
                                        </p>
                                    </a>
                                <?php } ?>
                                    <!-- <i class="mdi mdi-account-plus text-warning"></i>-->
                                    <!-- <i class="mdi mdi-heart text-danger"></i>-->
                                </div>

                                <!-- All-->
                                <!--<a href="javascript:void(0);"-->
                                <!--    class="dropdown-item text-center text-primary text-decoration-underline fw-bold notify-item border-top border-light py-2">-->
                                <!--    View All-->
                                <!--</a>-->

                            </div>
                        </li>

                        <!--<li class="d-none d-sm-inline-block">-->
                        <!--    <a class="nav-link" data-bs-toggle="offcanvas" href="#theme-settings-offcanvas">-->
                        <!--        <i class="ri-settings-3-line fs-22"></i>-->
                        <!--    </a>-->
                        <!--</li>-->

                        <li class="d-none d-sm-inline-block">
                            <div class="nav-link" id="light-dark-mode">
                                <i class="ri-moon-line fs-22"></i>
                            </div>
                        </li>

                        <li class="dropdown">
                            <a class="nav-link dropdown-toggle arrow-none nav-user" data-bs-toggle="dropdown" href="#" role="button"
                                aria-haspopup="false" aria-expanded="false">
                                <span class="account-user-avatar">
                                    <img src="images/user-default.png" alt="user-image" width="32" class="rounded-circle">
                                </span>
                                <span class="d-lg-block d-none">
                                    <h5 class="my-0 fw-normal">SHS 
                                        <i class="ri-arrow-down-s-line d-none d-sm-inline-block align-middle"></i></h5>
                                </span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-animated profile-dropdown">
                                <!-- item-->
                                <div class=" dropdown-header noti-title">
                                    <h6 class="text-overflow m-0">Welcome !</h6>
                                </div>

                                <!-- item-->
                                <!--<a href="#" class="dropdown-item">-->
                                <!--    <i class="ri-account-circle-line fs-18 align-middle me-1"></i>-->
                                <!--    <span>My Account</span>-->
                                <!--</a>-->

                                <!-- item-->
                                <!--<a href="#" class="dropdown-item">-->
                                <!--    <i class="ri-settings-4-line fs-18 align-middle me-1"></i>-->
                                <!--    <span>Settings</span>-->
                                <!--</a>-->

                                <!-- item-->
                                <!--<a href="#" class="dropdown-item">-->
                                <!--    <i class="ri-customer-service-2-line fs-18 align-middle me-1"></i>-->
                                <!--    <span>Support</span>-->
                                <!--</a>-->

                                <!-- item-->
                                <!--<a href="#" class="dropdown-item">-->
                                <!--    <i class="ri-lock-password-line fs-18 align-middle me-1"></i>-->
                                <!--    <span>Lock Screen</span>-->
                                <!--</a>-->

                                <!-- item-->
                                <a href="logout.php" class="dropdown-item">
                                    <i class="ri-logout-box-line fs-18 align-middle me-1"></i>
                                    <span>Logout</span>
                                </a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>

MMCT - 2023