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/RecepitVoucher.php
<?php
include "../connection.php";
global $connection;
$user = $_GET['id'];

$stmt = $connection->prepare("SELECT * FROM orders WHERE user = '$user'");
$stmt->execute();
$row = $stmt->get_result();
while ($data = $row->fetch_assoc()){
    $user = $data['user'];
    $whatsapp = $data['whatsapp'];
    $FirstBatch = $data['FirstBatch'];
    $name = $data['name'];
    $addres = $data['country'] .' - '.$data['city'].' - '.$data['neighborhood_name']; 
    $coin = $data['coin'];
}
$item = '';
$itema = '';
if ($coin == 'kw') {
    $item = 'د.ك';
    $itema = 'دينار كويتي';
}elseif ($coin == 'qa') {
    $item = 'ر.ق';
    $itema = 'ريال قطري';
}elseif ($coin == 'om') {
    $item = 'ر.عُ';
    $itema = 'ريال عُماني';
}elseif ($coin == 'sa') {
    $item = 'ر.س';
    $itema = 'ريال سعودي';
}elseif ($coin == 'ae') {
    $item = 'د.إ';
    $itema = 'درهم إماراتي';
}

$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"] .' -';
        }
    }
}

$stmt = $connection->prepare("SELECT * FROM `website` WHERE `id` = 1");
$stmt->execute();
$row = $stmt->get_result(); 
while ($data = $row->fetch_assoc()){
  $name_site = $data['name_site'];
  $name_site_E = $data['name_site_E'];
  $link = $data['link'];
  $logo = $data['logo'];
  $seal = $data['seal'];
}

?>
<!DOCTYPE html>
<html lang="en" dir="rtl">
<head>
    <title>سند قبض</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
    <script>
        function pafD(){
            let filePDF = this.document.getElementById('main');
            html2pdf().from(filePDF).save();
            setTimeout(function() {
                window.history.back();
            }, 1000);
        }
    </script>
    <style>
        *{
            font-family: Arial;
            font-size: 15px;
        }
    </style>
</head>
<body>
    <!-- <button onclick="pafD()" style="width: 100px; height: 40px; background-color: #00a8ff; border: 1px solid; color: #ffffff; font-size: 15px;">تحميل</button> -->
    <div id="main" style="padding: 30px;">
        <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>
        <hr style="border: 1px solid #000;margin-top: 35px;">
        <div  style="border: 1px solid;">
            <table style="width: 100%;">
                <tr>
                    <th style="width: 33%;"></th>
                    <th style="background-color: #9b9999;font-size: 20px" id="printButton"> سند  قبض</th>
                    <th style="width: 33%;color: #f00;font-style: italic;">No #<?php echo rand(); ?></th>
                </tr>
            </table>
            <table style="width: 50%;border: 3px solid #909090;margin-top: 10px;">
                <tr>
                    <th style="width: 33%;text-align: left;">المبلغ</th>
                    <th><?php echo $FirstBatch; ?></th>
                    <th><?= $item; ?></th>
                </tr>
            </table>
            <table style="width: 65%;margin-top: 10px;border: 3px solid #909090;border-collapse: collapse;">
                <tr>
                    <th style="width: 25%;border: 3px solid #909090;border-collapse: collapse;background-color: #9b9999;color: #fff;text-align: left;">استلمت من السيد</th>
                    <th style="border: 3px solid #909090;border-collapse: collapse;text-align: right;padding-right: 10px;"><?php echo $name; ?></th>
                </tr>
            </table>
            <table style="width: 65%;margin-top: 10px;border: 3px solid #909090;border-collapse: collapse;">
                <tr>
                    <th style="width: 25%;border: 3px solid #909090;border-collapse: collapse;background-color: #9b9999;color: #fff;text-align: left;">رقم الجوال</th>
                    <th style="border: 3px solid #909090;border-collapse: collapse;text-align: right;padding-right: 10px;"><?php echo $whatsapp; ?></th>
                </tr>
            </table>
            <table style="width: 65%;margin-top: 10px;border: 3px solid #909090;border-collapse: collapse;margin-bottom: 10px">
                <tr>
                    <th style="width: 25%;border: 3px solid #909090;border-collapse: collapse;background-color: #9b9999;color: #fff;text-align: left;">العنوان</th>
                    <th style="border: 3px solid #909090;border-collapse: collapse;text-align: center;padding-right: 10px;"><?php echo $addres; ?></th>
                </tr>
            </table>
        </div>
        <div  style="border: 1px solid;">
            <p style="display: inline; padding: 0 50px 0 0; font-weight: bold;">وذلك عن دفعة اولى ثمن جهاز/ اجهزة/ <?php echo $name_products; ?></p>
        </div>
        <div style="border-left: 1px solid;border-right: 1px solid;height: 10px;"> </div>
        <div  style="border: 1px solid;">
            <p style="display: inline; padding: 0 50px 0 0; font-weight: bold;">المبلغ :فقط (<?php echo $FirstBatch; ?>) <?= $itema; ?> لا غير </p>
        </div>
        <div style="border-left: 1px solid;border-right: 1px solid;border-bottom: 1px solid;height: 180px;"> 
            <table style="width: 100%;">
                <tr>
                    <th>توقيع المستلم</th>
                    <th>الختم</th>
                </tr>
                <tr>
                    <th>.................</th>
                    <th><img src="img/<?= $seal ?>" width="180" style="transform: rotate(-20deg);"></th>
                </tr>
            </table>
        </div>
        <div style="margin-top: 30px;border-bottom: 3px solid;"> 
            <table style="width: 100%;">
                <tr>
                    <th style="width: 40%;text-align: left;"><?= $name_site ?></th>
                    <th></th>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>

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

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

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

Youez - 2016 - github.com/yon3zu
LinuXploit