https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/views/admin/stocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/views/admin/stocks/transfer_stocks_index.php
<style>
    .chosen-container,
    .chosen-container-single {
        width: 100% !important;
    }

    @media only screen and (min-width: 768px) {
        .dataTables_filter {
            text-align: right;
        }

        .dataTables_paginate {
            text-align: right;
        }

        .dataTables_info {
            padding-top: 25px;
        }

        .export {
            text-align: right;
        }

        .addBtn {
            width: 300px;
            text-align: center;
        }

        .divAdd {
            text-align: left;
        }
    }

    @media only screen and (max-width: 768px) {
        .divAdd {
            text-align: center;
        }

        .addBtn {
            width: 100%;
            text-align: center;
        }

        .export {
            text-align: right;
            padding: 15px 0;
        }
    }
</style>


<div class="row">
    <div class="col-sm-12">
        <p><a href="<?= base_url('admin/stocks'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Stok</a></p><br>
        <h2>Transfer Stock</h2>
        <?= $this->session->flashdata('success'); //to display success message 
        ?>
        <?= $this->session->flashdata('result'); //to display result message 
        ?>
    </div><!-- end class="col-sm-12" -->
</div> <!-- end row -->

<a class="btn btn-primary" href="<?= base_url('admin/stocks/add_transfer_stock'); ?>"><i class="fa fa-plus" aria-hidden="true"></i> Tambah Transfer Stok</a>
<a class="btn btn-success" href="<?= base_url('admin/stocks/Report_export'); ?>"><i class="fa fa-print" aria-hidden="true"></i> Download Report</a>
<br><br>
<div class="table-responsive">
    <table id="tabeltfstock" class="table table-striped">
        <thead>
            <tr>
                <th>Transfer ID</th>
                <th>Gudang Asal</th>
                <th>Gudang Tujuan</th>
                <th>Ongkos Kirim</th>
                <th>Status</th>
                <th>Aktifitas</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($transfer_stock as $ts) : ?>
                <tr>
                    <td><?= $ts->id_transfer_stock; ?></td>
                    <td><?php
                        //get warehouse
                        $this->db->select('name')->from('warehouse')->where('id', $ts->out_warehouse_id);
                        $warehouse_name = $this->db->get()->row()->name;
                        echo ucwords($warehouse_name);
                        ?></td>
                    <td><?php
                        //get warehouse
                        $this->db->select('name')->from('warehouse')->where('id', $ts->in_warehouse_id);
                        $warehouse_name = $this->db->get()->row()->name;
                        echo ucwords($warehouse_name);
                        ?></td>
                    <td><?= $ts->shipping_fee; ?></td>
                    <td>
                        <?php
                        if ($ts->status == 0) {
                            echo 'Pending';
                        } elseif ($ts->status == 1) {
                            echo 'Proses';
                        } elseif ($ts->status == 2) {
                            echo 'Terkirim';
                        } elseif ($ts->status == 3) {
                            echo 'Diterima';
                        } elseif ($ts->status == 4) {
                            echo 'Batal';
                        } else {
                            echo 'Status tidak valid';
                        }
                        ?>
                    </td>
                    <td><a href="<?= base_url('admin/stocks/view_transfer_stock/'); ?><?= $ts->id_transfer_stock; ?>"><i class="fa fa-edit" aria-hidden="true">View</i></a></td>
                </tr>
            <?php endforeach ?>
        </tbody>
    </table>
</div>

https://t.me/RX1948 - 2025