403Webshell
Server IP : 46.202.172.170  /  Your IP : 216.73.216.59
Web Server : LiteSpeed
System : Linux fr-int-web1904.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
User : u627918583 ( 627918583)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u627918583/domains/techtime-om.com/public_html/controlPanel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u627918583/domains/techtime-om.com/public_html/controlPanel/installmet.php
<?php
include '../controlPanel/Database.php';
include "../connection.php";
$db = new Database();
$user = $_GET['id'];

$query = "SELECT * FROM `orders` WHERE user = '$user'";
$result = $db->dbQuery($query);

if ($db->dbNumRows($result)) {
    $rows = $db->dbFetchResult($result);
    foreach ($rows as $row) {
        $name = $row['name'];
        $whatsapp = $row['whatsapp'];
        $FirstBatch = $row['FirstBatch'];
        $Installment = $row['Installment'];
        $addres = $row['country'] . ' - ' . $row['city'] . ' - ' . $row['neighborhood_name'];
        $coin = $row['coin'];
    }
}

$totel_price = 0;
$query = "SELECT product_id,quantity FROM `cart` WHERE user = $user";
$result = $db->dbQuery($query);
$name_pro = 0;
if ($db->dbNumRows($result)) {
    $rows = $db->dbFetchResult($result);
    foreach ($rows as $row) {
        $product_id = $row['product_id'];
        $query = "SELECT * FROM `products` WHERE id = $product_id";
        $result = $db->dbQuery($query);

        if ($db->dbNumRows($result)) {
            $rows = $db->dbFetchResult($result);
            foreach ($rows as $rowp) {
                if ($coin == 'kw') {
                    if ($rowp['decPrice_kw'] == 0) {
                        $totel_price += $rowp['price_kw'];
                    } else {
                        $totel_price += $rowp['decPrice_kw'];
                    }
                } elseif ($coin == 'qa') {
                    if ($rowp['decPrice_qa'] == 0) {
                        $totel_price += $rowp['price_qa'];
                    } else {
                        $totel_price += $rowp['decPrice_qa'];
                    }
                } elseif ($coin == 'om') {
                    if ($rowp['decPrice_om'] == 0) {
                        $totel_price += $rowp['price_om'];
                    } else {
                        $totel_price += $rowp['decPrice_om'];
                    }
                } elseif ($coin == 'sa') {
                    if ($rowp['decPrice'] == 0) {
                        $totel_price += $rowp['price'];
                    } else {
                        $totel_price += $rowp['decPrice'];
                    }
                } elseif ($coin == 'ae') {
                    if ($rowp['decPrice_ae'] == 0) {
                        $totel_price += $rowp['price_ae'];
                    } else {
                        $totel_price += $rowp['decPrice_ae'];
                    }
                }
            }
        }
    }
}

$name_products = '';
$stmt_cart = $connection->prepare("SELECT * FROM cart WHERE user = '$user'");
$stmt_cart->execute();
$row_cart = $stmt_cart->get_result();
while ($data_cart = $row_cart->fetch_assoc()) {
    $product_id = $data_cart['product_id'];
    $color_id = $data_cart['color_id'];
    $stmt = $connection->prepare("SELECT name, subclass FROM products WHERE id = $product_id");
    $stmt->execute();
    $row = $stmt->get_result();
    while ($data = $row->fetch_assoc()) {
        if ($data['subclass'] == 'الايفون') {
            $stmt_color = $connection->prepare("SELECT color FROM colors WHERE id = $color_id");
            $stmt_color->execute();
            $row_color = $stmt_color->get_result();
            while ($data_color = $row_color->fetch_assoc()) {
                $name_products = $name_products . ' ' . $data["name"] . ' اللون ' . $data_color['color'] . ' -';
            }
        } else {
            $name_products = $name_products . ' ' . $data["name"] . ' -';
        }
    }
}


$query = "SELECT * FROM `website` WHERE `id` = 1";
$result = $db->dbQuery($query);

if ($db->dbNumRows($result)) {
    $rows = $db->dbFetchResult($result);
    foreach ($rows as $row) {
        $name_site = $row['name_site'];
        $name_site_E = $row['name_site_E'];
        $link = $row['link'];
        $logo = $row['logo'];
        $seal = $row['seal'];
    }
}


// $batch = ($totel_price - $payment) / $first_batch;

$currentDate = date('Y/m/d');
?>
<!DOCTYPE html>
<html dir="rtl">

<head>
    <title>عقد التقسيط</title>
    <style>
        * {
            font-size: 15px;
        }
    </style>
</head>

<body style="padding: 40px 40px 0;">
    <div id="main">
        <div>
            <table style=" width: 100%;">
                <tr>
                    <th style="text-align: right;">
                        <h1><?= $name_site ?></h1>
                    </th>
                    <th style="text-align: center;"><img src="../BEqq/<?= $logo ?>" width="100"></th>
                    <th style="text-align: left;">
                        <h1> <?= $name_site_E ?></h1>
                    </th>
                </tr>
            </table>
        </div>
        <div style="border: 1px solid #aaa; padding: 1px;"></div>
        <h2 style="text-align: center; margin-top: 30px;" id="printButton"> عقد بيع بالتقسيط</h2>
        <p>اليوم: <span style="font-weight: bold;" id="time"></span></p>
        <p>التاريخ: <span style="font-weight: bold;"><?= $currentDate; ?></span></p>
        <p>نعم أنا السيد/: <span style="font-weight: bold;"><?= $name; ?></span> برقم جوال/: <span
                style="font-weight: bold;"><?= $whatsapp; ?></span> وعنوانه/: <span
                style="font-weight: bold;"><?= $addres; ?></span> </p>
        <p>أقر واعترف وانا في حالتي الشرعية وبكامل قواي العقلية بأني في ذمتي للمؤسسة المدعوة /: <span
                style="font-weight: bold;"><?= $name_site; ?></span> </p>
        <p>مبلغ وقدره /: <span style="font-weight: bold;"><?= $totel_price; ?>.00</span> </p>
        <p>وذلك قيمة عن ما تبقي من ثمن جهاز/اجهزة /: <span style="font-weight: bold;"><?= $name_products; ?></span> </p>
        <p>على ان يدفع المبلغ على اقساط شهرية متتالية ومستمرة بدون انقطاع على مدى <span
                style="font-weight: bold;"><?= $Installment; ?> شهر </span> بما فيها شهر رمضان والاعياد </p>
        <p>قيمة الدفعة الشهرية /: <span
                style="font-weight: bold;"><?= number_format(($totel_price - $FirstBatch) / $Installment) ?>.00</span> فقط اعتبارا من
            تاريخ /: <span style="font-weight: bold;">الخميس</span></p>
        <p>نهاية المبلغ المذكور اعلاه وأنني بسداد الاقساط في موعدها بدون تأخر عن أي قسط عن موعده المحدد فإني ملنزم
            التزاما تاما بسداد المبلغ المتبقي كاملا دفعة واحدة.</p>
        <p>كما انتتي أقر على نفسي بأنه لا يوجد التزامات مالية ولا كفالات غرامية وقد اذنت والله خير الشاهدين </p>
        <div style="display: flex;justify-content: space-between;align-items: flex-start;margin-top: 60px;">
            <div class="info_cus">
                <h4>الإسم/: -----. </h4>
                <h4>التوقيع /: ................... </h4>
            </div>
            <div class="info_cus">
                <h4>الختم</h4>
                <div style="text-align: left;">
                    <img src="img/<?= $seal ?>" width="180" style="transform: rotate(-20deg);">
                </div>
            </div>
        </div>
    </div>
</body>

</html>
<script>
    const days = ["الأحد", "الاثنين", "الثلاثاء", "الإربعاء", "الخميس", "الجمعة", "السبت"];
    const d = new Date();
    let day = days[d.getDay()];

    document.getElementById("time").innerHTML = day;
</script>
<script>
    // تعريف الوظيفة التي سيتم تنفيذها عند النقر على الزر
    function printInvoice() {
        window.print();  // يطبع الصفحة الحالية
    }

    // الحصول على الزر
    const printButton = document.getElementById('printButton');

    // إضافة استماع للنقر على الزر لتنفيذ الوظيفة
    printButton.addEventListener('click', printInvoice);
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit