Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /home/matalashes/.trash/app.bak.13/Views/admin/pages/custom/report/reportadjuststock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/matalashes/.trash/app.bak.13/Views/admin/pages/custom/report/reportadjuststock/printpdf.php
<head>
    <style>
        @page {
            margin-left: 1cm;
            margin-top: 1cm;
            margin-right: 1cm;
            margin-bottom: 1cm;
        }

        body {
            line-height: 1em;
        }

        .center {
            text-align: center;
        }

        .table {
            font-size: 12px;
        }

        .table-border, .table-border th, .table-border tr, .table-border td {
            border: 1px solid black;
            border-collapse: collapse;
            padding: 2px;
            font-size: 10px;
        }

        .table-border thead {
            text-align: center;
            font-weight: bold;
        }

        .invoice-table {
            width: 100%;
            border-collapse: collapse;
        }

        .invoice-table th, .invoice-table td {
          padding: 5px;
          border: 1px solid black;
          text-align: center;
            font-size: 12px;
        }        
        
        table .total {
          text-align: right;
          background: #074c9c;
          color: #FFFFFF;
        }

        .invoice-table th {
            background-color: #f2f2f2;
        }

        .invoice-head {
            border-bottom: 2px solid #000000;
            margin-bottom: 30px;
        }
        .client {
          padding-left: 6px;
          border-left: 3px solid #0087C3;
          float: left;
        }
    </style>
</head>
<body>
    <div class="row">
            <table class="invoice-doc" style="width: 100%;">
                <tbody>
                    <tr>
                        <td align="left"><h4>Penyesuaian Stok Bahan Baku</h4></td> 
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                </tbody>
            </table>               
            
            <table class="invoice-table">
            <thead>
                <tr class="text-center text-muted fw-bolder fs-7 text-capitalize gs-0">
                    <th>Barang</th>
                    <th>Minus</th>
                    <th>Plus</th>
                    <th>Alasan</th>
                    <th>Created at</th>
                </tr>
            </thead>
            <tbody> 
                <?php
                foreach ($_data as $d) {
                    $id = $d->mb_id;

                    if($id == $barangId){ 
                        $temp_minus = 0;
                        $temp_plus = 0;
                        if($d->ms_stok_bahanbaku > 0){
                            $temp_plus = $d->ms_stok_bahanbaku;
                        }else{
                             $temp_minus = $d->ms_stok_bahanbaku;
                        }
                ?>
                    <tr>
                        <td ><?= $data->mb_name ?></td>
                        <td ><?= number_format($temp_minus,0,",",".") ?></td>
                        <td ><?= number_format($temp_plus,0,",",".") ?></td>
                        <td ><?= $d->ms_alasan ?></td>
                        <td><?= date("d/m/Y H:i", strtotime($d->created_at ?? '')) ?></td>
                    </tr>
                <?php
                    }
                }
                ?>                
            </tbody>
            </table>
        </div>
    </div>
</body>

haha - 2025