Marketplace Multi Seller Multi Buyer, Tampilan Orders ReportDibuat
Login Terakhir
1 Bulan lalu,
Telah Dilihat 1198 Kali
| |
Sultan Account |
|
|
Fadil Maulana Malik
Mengatakan :
Sultan Account
Assalamualaikum Warahmatullahi Wabarakatuh... mohon bantuannya tampilan orders report saat di buka di Hp dan semacamnya hanya tampil sebagian, contoh seperti gambar dibawah. terimakasih Ada 1 File Kiriman : 1. WhatsApp_Image_2019-07-02_at_11_44_48.jpeg (64 KB) |
|
| PHPMU.COM Support commented on 03 Jul 2019 08:03:29 Sultan Account |
|
|
|
Assalamualaikum,.. Buka file "application/views/phpmu-tigo/reseller/members/view_orders_report.php"
baris 9 tablenya : <table class='table table-hover table-condensed'>
ubah menjadi :
<table id='example2' style='overflow-x:scroll; width:96%' class="table table-bordered table-striped table-condensed">
Terakhir buka file "application/views/phpmu-tigo/template.php"
didalam tag <head> </head> tambahkan :
<link rel="stylesheet" href="<?php echo base_url(); ?>/asset/admin/plugins/datatables/dataTables.bootstrap.css">
diatas tag </body> tambahkan :
<script src="<?php echo base_url(); ?>asset/admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url(); ?>asset/admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script>
$(function () {
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false,
"lengthMenu": [[30, 55, 70, -1], [30, 55, 70, "All"]]
});
});
</script>
Simpan dan selesai,.. |
|
| PHPMU.COM Support commented on 03 Jul 2019 08:15:40 Sultan Account |
|
|
|
Assalamualaikum,.. oo ya ada yang ketinggaln, tambahkan di dalam config datatable di atas :
"scrollX": true, nanti jadinya gini :
<script>
$(function () {
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"scrollX": true,
"autoWidth": false,
"lengthMenu": [[30, 55, 70, -1], [30, 55, 70, "All"]]
});
});
</script>
saya lampirkan juga filenya dibawah ini,.. Terdapat 2 File dilampirkan : 1. template2.zip (3 KB)2. view_orders_report.zip (1 KB) |
|