|
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/angkasapuraretail.com/public_html/application/views/admin/resellers/ |
Upload File : |
<div class="row">
<div class="col-sm-12">
<p><a href="<?= base_url('admin/reseller_page'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Reseller Page</a></p>
<h4>Chosen Brand For Reseller Administrator</h4>
<?= $this->session->flashdata('success');?>
</div><!-- end class="col-sm-12" -->
</div> <!-- end row -->
<div class="row">
<div class="col-sm-12">
<a data-toggle="modal" data-target="#add_brand" style="cursor: pointer;"><i class="fa fa-plus" aria-hidden="true"></i> ADD BRAND</a>
</div><!-- end class="col-sm-12" -->
</div> <!-- end row -->
<?php if (count($chosen_brand) != null): ?>
<div class="row">
<div class="col-sm-12">
<table class="table table-striped">
<thead>
<tr>
<th>Brand</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($chosen_brand as $chosen_brand_item): ?>
<?php
$detail = $this->db->select('*')->from('brands')->where('id_brands',$chosen_brand_item->brand_id)->get()->row();
?>
<tr>
<td><?= ucfirst($detail->brand); ?></td>
<td><a href="<?= base_url('admin/resellers/delete_chosen_brand/'.$chosen_brand_item->id);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
<?php else: ?>
<div class="row">
<div class="col-sm-12" style="text-align: center;">
<h4>Not Found Chosen Brand For Reseller</h4>
</div>
</div>
<?php endif ?>
<!-- Modal Add Discount -->
<div class="modal fade" id="add_brand" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">ADD BRAND</h4>
</div>
<div class="modal-body">
<?= form_open();?>
<div class="row">
<div class="col-sm-3">
<p>Brand</p>
</div>
<div class="col-sm-9">
<select name="brand_id" class="form-control">
<?php foreach ($brands as $brand):?>
<option value="<?= $brand->id_brands?>"><?= ucfirst($brand->brand);?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="row">
<div class="col-sm-3">
</div>
<div class="col-sm-9">
<?= form_submit('submit', 'ADD', 'class="btn btn-primary btn-success"'); ?>
</div>
</div>
<?= form_close();?>
</div>
</div>
</div>
</div>