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/indolok.id/application/views/admin/sales_list/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/dashboard'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Dashboard</a></p> <h2>Sales List Administrator</h2> <?= $this->session->flashdata('success'); //to display success message ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h3>Bulk Upload Sales List</h3> <p>UPLOAD SALES DATA. ACCEPT ONLY XLS/XLSX. <a href="<?= base_url() . 'assets/admin/sales_list_sample.xlsx'; ?>">CLICK HERE</a> for excel sample</p> <p><strong>Important: Upload will replace all current data with Excel data.</strong></p> <?= form_open_multipart('admin/sales_list/upload_sales_list'); ?> <table> <tr> <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" class="btn btn-info" value="UPLOAD"> <?= $this->session->flashdata('upload_excel_info'); //to display success message ?> </div> </td> </tr> </table> <?= form_close();?> <p>Note: During Upload, please wait until process finish. Do not close current window.</p> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <table class="table table-striped"> <thead> <tr> <th>EMPLOYEE ID</th> <th>NAME</th> <th>WORK LOCATION (CURRENT)</th> <th>BA/DEPT</th> <th>POSITION</th> </tr> </thead> <tbody> <?php if(count($sales_list)) : ?> <?php foreach($sales_list as $sales_list_item): ?> <tr> <td><?= $sales_list_item->employee_id; ?></td> <td><?= $sales_list_item->sales_name; ?></td> <td><?= $sales_list_item->sales_work_location; ?></td> <td><?= $sales_list_item->sales_ba_dept; ?></td> <td><?= $sales_list_item->position; ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="5">We could not find any sales.</td> </tr> <?php endif; ?> </tbody> </table> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <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 -->