Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (67491 Members, 783 Products, 5291 Topic, 12956 Comments)

View produk pada halaman reseller tidak responsive Pada marketplace

Dibuat
Login Terakhir 6 Bulan lalu,
Telah Dilihat 1189 Kali
azray kisaran Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...Mas robi dan para suhu. Gimana cara membuat view produk dihalaman reseller jadi responsive?

Ada 6 Jawaban

PHPMU.COM Support
commented on 28 Jun 2020 08:26:30
  1. Assalamualaikum,.. pertanyaan yang sama lagi, jika ada pertanyaan seperti ini lagi maka akan kita hapus ya :
  2. https://members.phpmu.com/forum/read/tampilan-view-rekning-dihalaman-reseller-tidak-responsive-marketplace
azray kisaran
commented on 28 Jun 2020 10:46:44
  1. Assalamualaikum,.. mas. oleh sebab karena tidak berhasil makanya saya tanya lagi mas. sudah saya coba saran mas tersebut. gak ada efek mas. munkin ada yang salah kali ya mas coba dibantu mas.
  2. ini bagian application\views\reseller\mod_penjualan\view_penjualan.php
  3.  
  4. <div class="col-xs-12">
  5. <div class="box">
  6. <div class="box-header">
  7. <h3 class="box-title">Data Transaksi Penjualan / Orderan Konsumen</h3>
  8. <a class='pull-right btn btn-primary btn-sm' href='<?php echo base_url(); ?>reseller/tambah_penjualan'>Tambah Penjualan</a>
  9. </div><!-- /.box-header -->
  10. <div class="box-body">
  11. <div class='table-responsive'>
  12. <table id="example1" class="table table-bordered table-striped table-condensed">
  13. <thead>
  14. <tr>
  15. <th style='width:40px'>No</th>
  16. <th>Kode Transaksi</th>
  17. <th>Nama Konsumen</th>
  18. <th>Kurir</th>
  19. <th>Status</th>
  20. <th>Total + Ongkir</th>
  21. <th></th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <?php
  26. $no = 1;
  27. foreach ($record->result_array() as $row){
  28. if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; $status = 'Proses'; $icon = 'star-empty'; $ubah = 1; }elseif($row['proses']=='1'){ $proses = '<i class="text-success">Proses</i>'; $status = 'Pending'; $icon = 'star text-yellow'; $ubah = 0; }else{ $proses = '<i class="text-info">Konfirmasi</i>'; $status = 'Proses'; $icon = 'star'; $ubah = 1; }
  29. $total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
  30. echo "<tr><td>$no</td>
  31. <td>$row[kode_transaksi]</td>
  32. <td><a href='".base_url()."reseller/detail_konsumen/$row[id_konsumen]'>$row[nama_lengkap]</a></td>
  33. <td><span style='text-transform:uppercase'>$row[kurir]</span> - $row[service]</td>
  34. <td>$proses</td>
  35. <td style='color:red;'>Rp ".rupiah($total['total']+$row['ongkir'])."</td>
  36. <td><center>
  37. <a class='btn btn-success btn-xs' title='Detail Data' href='".base_url()."reseller/detail_penjualan/$row[id_penjualan]'><span class='glyphicon glyphicon-search'></span> Detail</a>
  38. <a class='btn btn-primary btn-xs' title='$status Data' href='".base_url()."reseller/proses_penjualan/$row[id_penjualan]/$ubah' onclick=\"return confirm('Apa anda yakin untuk ubah status jadi $status?')\"><span class='glyphicon glyphicon-$icon'></span></a>
  39. <a class='btn btn-warning btn-xs' title='Edit Data' href='".base_url()."reseller/edit_penjualan/$row[id_penjualan]'><span class='glyphicon glyphicon-edit'></span></a>
  40. <a class='btn btn-danger btn-xs' title='Delete Data' href='".base_url()."reseller/delete_penjualan/$row[id_penjualan]' onclick=\"return confirm('Apa anda yakin untuk hapus Data ini?')\"><span class='glyphicon glyphicon-remove'></span></a>
  41. </center></td>
  42. </tr>";
  43. $no++;
  44. }
  45. ?>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52.  
  53.  
  54. ini yang bagian application\views\phpmu-tigo\reseller\view_reseller_detail.php
  55. <p class='sidebar-title text-danger produk-title'>Detail Data Pedagang</p>
  56. <div class='panel-body'>
  57. <ul id='myTabs' class='nav nav-tabs' role='tablist'>
  58. <li role='presentation' class='active'><a href='#profile' id='profile-tab' role='tab' data-toggle='tab' aria-controls='profile' aria-expanded='true'>Data Pedagang </a></li>
  59. <li role='presentation' class=''><a href='#rekening' role='tab' id='rekening-tab' data-toggle='tab' aria-controls='rekening' aria-expanded='false'>No Rekening</a></li>
  60. <li role='presentation' class=''><a href='#pembelian' role='tab' id='pembelian-tab' data-toggle='tab' aria-controls='pembelian' aria-expanded='false'>History Penjualan</a></li>
  61. </ul><br>
  62.  
  63. <div id='myTabContent' class='tab-content'>
  64. <div role='tabpanel' class='tab-pane fade active in' id='profile' aria-labelledby='profile-tab'>
  65. <div class='col-md-12'>
  66. <table class='table table-condensed'>
  67. <tbody>
  68. <?php
  69. if (!file_exists("asset/foto_user/$rows[foto]") OR $rows['foto']==''){
  70. $foto_user = "blank.png";
  71. }else{
  72. $foto_user = $rows['foto'];
  73. }
  74. ?>
  75.  
  76. <tr class='hidden-xs' bgcolor='#e3e3e3'><td rowspan='12' width='110px'><?php echo "<img style='border:1px solid #cecece; height:85px; width:85px' src='".base_url()."asset/foto_user/$foto_user' class='img-circle img-thumbnail'>"; ?></td></tr>
  77. <tr><th scope='row' width='140px'>Nama Pedagang</th> <td><?php echo $rows['nama_reseller']?></td></tr>
  78. <tr><th scope='row'>Jenis Kelamin</th> <td><?php echo $rows['jenis_kelamin']?></td></tr>
  79. <?php if ($this->sesion->id_konsumen!=''){ ?>
  80. <tr><th scope='row'>Alamat</th> <td><?php echo $rows['alamat_lengkap']?></td></tr>
  81. <tr><th scope='row'>No Hp</th> <td><?php echo $rows['no_telpon']?></td></tr>
  82. <?php } ?>
  83. <tr><th scope='row'>Alamat Email</th> <td><?php echo $rows['email']?></td></tr>
  84. <tr><th scope='row'>Kode Pos</th> <td><?php echo $rows['kode_pos']?></td></tr>
  85. <tr><th scope='row'>Keterangan</th> <td><?php echo $rows['keterangan']?></td></tr>
  86. <tr><th scope='row'>Tanggal Daftar</th> <td><?php echo tgl_indo($rows['tanggal_daftar']); ?></td></tr>
  87. </tbody>
  88. </table>
  89. </div>
  90. <div style='clear:both'></div>
  91. </div>
  92.  
  93. <div role='tabpanel' class='tab-pane fade' id='rekening' aria-labelledby='rekening-tab'>
  94. <div class='col-md-12'>
  95. <div class='alert alert-warning'><b>PENTING!</b> - Silahkan transfer pembayaran anda hanya ke rekening dibawah ini saja.</div>
  96. <table class='table table-hover table-condensed'>
  97. <thead>
  98. <tr>
  99. <th width="20px">No</th>
  100. <th>Nama Bank</th>
  101. <th>No Rekening</th>
  102. <th>Atas Nama</th>
  103. </tr>
  104. </thead>
  105. <tbody>
  106. <?php
  107. $no = 1;
  108. foreach ($rekening->result_array() as $row){
  109. if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; $status = 'Proses'; $icon = 'star-empty'; $ubah = 1; }else{ $proses = '<i class="text-success">Proses</i>'; $status = 'Pending'; $icon = 'star text-yellow'; $ubah = 0; }
  110. $total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
  111. echo "<tr><td>$no</td>
  112. <td>$row[nama_bank]</td>
  113. <td>$row[no_rekening]</td>
  114. <td>$row[pemilik_rekening]</td>
  115. </tr>";
  116. $no++;
  117. }
  118. ?>
  119. </tbody>
  120. </table>
  121. </div>
  122. </div>
  123.  
  124. <div role='tabpanel' class='tab-pane fade' id='pembelian' aria-labelledby='pembelian-tab'>
  125. <div class='col-md-12'>
  126. <table class='table table-hover table-condensed'>
  127. <thead>
  128. <tr>
  129. <th width="20px">No</th>
  130. <th>Nama Pembeli</th>
  131. <th>Total Belanja</th>
  132. <th>Status</th>
  133. <th>Waktu Transaksi</th>
  134. </tr>
  135. </thead>
  136. <tbody>
  137. <?php
  138. $no = 1;
  139. foreach ($record->result_array() as $row){
  140. if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; $status = 'Proses'; $icon = 'star-empty'; $ubah = 1; }else{ $proses = '<i class="text-success">Proses</i>'; $status = 'Pending'; $icon = 'star text-yellow'; $ubah = 0; }
  141. $total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
  142. echo "<tr><td>$no</td>
  143. <td><b>$row[nama_lengkap]</b></td>
  144. <td style='color:red;'>Rp ".rupiah($total['total'])."</td>
  145. <td>$proses</td>
  146. <td>$row[waktu_transaksi]</td>
  147. </tr>";
  148. $no++;
  149. }
  150. ?>
  151. </tbody>
  152. </table>
  153. </div>
  154. </div>
  155.  
  156. </div>
  157. </div>
  158.  
PHPMU.COM Support
commented on 28 Jun 2020 11:26:12
  1. Assalamualaikum,.. responsivenya menjadi table bisa digeser ke kanan,
  2. coba pake akses pake smartphone.
azray kisaran
commented on 28 Jun 2020 15:30:27
  1. Assalamualaikum,.. Mas robi. Gak bisa juga loh mas... Udah bolak balik di coba pakai browser berbeda di smartphone tapi tetap gak responsive.
PHPBANUA 01
commented on 29 Jun 2020 09:17:05
  1. Assalamualaikum,..
  2. Saran saya lebih baik Mas Azray buat Projec saja agar para suhu dapat membantu menyelesaikan apa yang Mas mau, dari pada mas bingung sendiri, setelah itu baru pelajari script nya.
azray kisaran
commented on 29 Jun 2020 22:52:04
  1. Assalamualaikum,.. lebih enak belajar aja mas
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!