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/affiliator/ |
Upload File : |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <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>Dashboard Progress Misi</h2> <?= $this->session->flashdata('success'); ?> <?= $this->session->flashdata('result'); ?> </div> </div> <div> <div class="row"> <div class="col-sm-12"> <a href="<?= base_url('admin/affiliator'); ?>"><button class="btn btn-success">Dashboard</button></a> <a href="<?= base_url('admin/affiliator/list'); ?>"><button class="btn btn-info">Ranking Affiliator</button></a> <a href="<?= base_url('admin/affiliator/mission'); ?>"><button class="btn btn-warning">Misi</button></a> <a href="<?= base_url('admin/affiliator/commision'); ?>"><button class="btn btn-danger">Komisi</button></a> <a href="<?= base_url('admin/affiliator/product'); ?>"><button class="btn btn-primary">Produk Affiliator</button></a> </div> </div> </div> <div> <div class="row"> <div class="col-sm-12"> <div class="text-right"> <a href="<?= base_url('admin/affiliator/addmission'); ?>" class="btn btn-success ml-auto">Tambah Misi</a> <a href="<?= base_url('admin/affiliator/mission'); ?>" class="btn btn-primary ml-auto">Kembali ke List Misi</a> </div> <div style="padding: 15px;" class="tab-pane active" id="orders1" role="tabpanel" aria-labelledby="tab1"> <h5 style="text-align: center;">Mission Progress</h5> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>ID Customer</th> <th>Nama</th> <th>Progress</th> </tr> </thead> <tbody> <?php if (isset($affiliator_list) && count($affiliator_list)) : ?> <?php foreach ($affiliator_list as $ml) : ?> <tr> <td><?php echo $ml->id_customers; ?></td> <td><?php echo $ml->name; ?></td> <td> <?php foreach ($progress_list as $progress) { if ($progress->id_customer == $ml->id_customers) { $percentage = ($progress->progress / $progress->mission_target) * 100; echo '<div class="col-sm-6" style="margin-right: 0;">'; echo '<p style="font-size: small;">' . $progress->mission_name . '</p>'; echo '<div class="progress">'; echo '<div class="progress-bar bg-warning" role="progressbar" style="width: ' . $percentage . '%" aria-valuenow="' . $percentage . '" aria-valuemin="0" aria-valuemax="100">'; echo $percentage . '%'; echo '</div></div></div>'; } } ?> </td> </tr> <?php endforeach; ?> <?php else : ?> <tr> <td colspan="3">Tidak Ada Data Affiliator</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> <!-- end class col-sm-12 --> </div> <!-- end class="row" --> </div> <div style="padding: 15px;" class="tab-pane active" id="orders1" role="tabpanel" aria-labelledby="tab1"> <h5 style="text-align: center;">Mission Progress Report</h5> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>No</th> <th>Mission</th> <th>Date Submit</th> <th>Proof</th> <th>Status</th> <th>Edit</th> </tr> </thead> <tbody> <?php $i = 1; ?> <?php foreach ($progressreport as $ar) : ?> <tr> <td><?= $i; ?></td> <td><?= $ar->name_mission; ?></td> <td><?= $ar->date_submit; ?></td> <td><?= $ar->link; ?></td> <td><?= $ar->status; ?></td> <td> <a style="text-decoration: underline;" href="submitview/<?= $ar->id_submit; ?>"> <i class="fa fa-edit"></i> Edit </a> </td> </tr> <?php $i++; ?> <?php endforeach; ?> </tbody> </table> </div> </div> <!-- end class col-sm-12 --> </div> <!-- end class="row" --> </div> </div> </div> </div>