Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (68414 Members, 793 Products, 5353 Topic, 13045 Comments)

Merapikan tampilan mobile halaman Profil pada Multi Seller Multi Buyer Codeigniter 3.x + Reseller System, API Rajaongkir + COD marketpace

Dibuat
Login Terakhir 4 Bulan lalu,
Telah Dilihat 1034 Kali
joko ahmadi Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2.  
  3. Saya ingin tanya bagaimana cara merapihkan tampilan halaman profile ketika akses melalui handphone
  4.  
  5. Pada saat menggunakan device handphone tampilan seperti lampiran,
  6. mohon bantuannya untuk bagaimana cara merapihkan tampilan tersebut
Ada 1 File Kiriman :
1. profile.PNG (16 KB)

Ada 6 Jawaban

Bukhori Muslim
commented on 03 Jan 2020 09:53:11
  1. Assalamualaikum,.. untuk mengiditnya dari file :
  2. application\views\phpmu-tigo\reseller\view_profile.php
  3.  
  4. dan untuk menyesuaikannya tinggal ubah strukturnya seperti pada form register :
  5. application\views\phpmu-tigo\reseller\view_register.php
  6.  
  7. Beberapa link referensi untuk perbaikan tampilan mobile juga ada di :
  8. 1. https://members.phpmu.com/forum/read/merapihkan-website-ketika-akses-via-mobile-pada-marketplace-multi-seller-multi-buyer-codeigniter-3x--reseller-system-api-rajaongkir--cod-
  9. 2. https://members.phpmu.com/forum/read/responsive-website-sekolah
joko ahmadi
commented on 03 Jan 2020 10:15:08
  1. Assalamualaikum,.. yang di rubah di line no brp mas?? saya masih blum paham
  2.  
  3. <?php
  4.  
  5. echo "<p class='sidebar-title text-danger produk-title'> Data Profile Anda
  6. <a class='btn btn-success btn-xs pull-right' href='".base_url()."members/edit_profile'><span class='glyphicon glyphicon-edit'></span> Edit Profile</a>
  7. </p>";
  8.  
  9.  
  10. echo $this->session->flashdata('message');
  11. $this->session->unset_userdata('message');
  12. echo "<p>Berikut Informasi Data Profile anda.<br>
  13. Pastikan data-data dibawah ini sudah benar, agar tidak terjadi kesalahan saat transaksi.</p>";
  14. echo "<table class='table table-hover table-condensed'>
  15. <thead>
  16. <tr><td valign=top style='background-color:#E7EAEC' width='160px' rowspan='160'>";
  17. $rows = $this->model_app->edit('rb_konsumen',array('id_konsumen'=>$this->session->id_konsumen))->row_array();
  18. if (trim($row['foto'])=='' OR !file_exists("asset/foto_user/".$row['foto'])){
  19. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/a9.png'>";
  20. }else{
  21. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/$rows[foto]'>";
  22. }
  23. echo "</td></tr>
  24. <tr><td width='170px'><b>Username</b></td> <td><b style='color:red'>$row[username]</b></td></tr>
  25. <tr><td><b>Nama Lengkap</b></td> <td>$row[nama_lengkap]</td></tr>
  26. <tr><td><b>Email</b></td> <td>$row[email]</td></tr>
  27. <tr><td><b>Jenis Kelamin</b></td> <td>$row[jenis_kelamin]</td></tr>
  28. <tr><td><b>Tanggal Lahir</b></td> <td>".tgl_indo($row['tanggal_lahir'])."</td></tr>
  29. <tr><td><b>Tempat Lahir</b></td> <td>$row[tempat_lahir]</td></tr>
  30. <tr><td><b>Alamat</b></td> <td>$row[alamat_lengkap]</td></tr>
  31.  
  32. <tr><td><b>Propinsi</b></td> <td>".$row['propinsi']."</td></tr>
  33. <tr><td><b>Kota</b></td> <td>".$row['kota']."</td></tr>
  34. <tr><td><b>Kecamatan</b></td> <td>$row[kecamatan]</td></tr>
  35. <tr><td><b>No Hp</b></td> <td>$row[no_hp]</td></tr>
  36. </thead>
  37. </table>";
  38.  
  39.  
  40.  
  41. echo "<table id='example11' class='table table-hover table-condensed'>
  42. <thead>
  43. <tr>
  44. <th width='20px'>No</th>
  45. <th>Nama Penjual</th>
  46. <th>Belanja & Ongkir</th>
  47. <th>Status</th>
  48. <th>Total + Ongkir</th>
  49. <th></th>
  50. </tr>
  51. </thead>
  52. <tbody>";
  53.  
  54. $no = 1;
  55. $record = $this->model_reseller->orders_report($this->session->id_konsumen,'reseller');
  56. foreach ($record->result_array() as $row){
  57. if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; }elseif($row['proses']=='1'){ $proses = '<i class="text-success">Proses</i>'; }else{ $proses = '<i class="text-info">Konfirmasi</i>'; }
  58. $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();
  59. echo "<tr><td>$no</td>
  60. <td><a href='".base_url()."members/produk_reseller/$row[id_reseller]'><small><b>$row[nama_reseller]</b></small><br><small class='text-success'>$row[kode_transaksi]</small></a></td>
  61. <td><span style='color:blue;'>Rp ".rupiah($total['total'])."</span> <br> <small><i style='color:green;'><b style='text-transform:uppercase'>$row[kurir]</b> - Rp ".rupiah($row['ongkir'])."</i></small></td>
  62. <td>$proses <br><small>$row[nama_reseller]</small></td>
  63. <td style='color:red;'>Rp ".rupiah($total['total']+$row['ongkir'])."</td>
  64. <td width='130px'>";
  65. if ($row['proses']=='0'){
  66. echo "<a style='margin-right:3px' class='btn btn-success btn-sm' title='Konfirmasi Pembayaran' href='".base_url()."konfirmasi?kode=$row[kode_transaksi]'>Konfirmasi</a>";
  67. }else{
  68. echo "<a style='margin-right:3px' class='btn btn-default btn-sm' href='#' onclick=\"return confirm('Maaf, Pembayaran ini sudah di konfirmasi!')\">Konfirmasi</a>";
  69. }
  70.  
  71. echo "<a class='btn btn-info btn-sm' title='Detail data pesanan' href='".base_url()."members/keranjang_detail/$row[id_penjualan]'><span class='glyphicon glyphicon-search'></span></a></td>
  72. </tr>";
  73. $no++;
  74. }
  75.  
  76. echo "</tbody>
  77. </table>";
  78. ?>
Bukhori Muslim
commented on 03 Jan 2020 11:17:59
  1. Assalamualaikum,.. ini semua table di ubah "STRUKTUR" nya :
  2. <table class='table table-hover table-condensed'>
  3. <thead>
  4. <tr><td valign=top style='background-color:#E7EAEC' width='160px' rowspan='160'>";
  5. $rows = $this->model_app->edit('rb_konsumen',array('id_konsumen'=>$this->session->id_konsumen))->row_array();
  6. if (trim($row['foto'])=='' OR !file_exists("asset/foto_user/".$row['foto'])){
  7. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/a9.png'>";
  8. }else{
  9. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/$rows[foto]'>";
  10. }
  11. echo "</td></tr>
  12. <tr><td width='170px'><b>Username</b></td> <td><b style='color:red'>$row[username]</b></td></tr>
  13. <tr><td><b>Nama Lengkap</b></td> <td>$row[nama_lengkap]</td></tr>
  14. <tr><td><b>Email</b></td> <td>$row[email]</td></tr>
  15. <tr><td><b>Jenis Kelamin</b></td> <td>$row[jenis_kelamin]</td></tr>
  16. <tr><td><b>Tanggal Lahir</b></td> <td>".tgl_indo($row['tanggal_lahir'])."</td></tr>
  17. <tr><td><b>Tempat Lahir</b></td> <td>$row[tempat_lahir]</td></tr>
  18. <tr><td><b>Alamat</b></td> <td>$row[alamat_lengkap]</td></tr>
  19.  
  20. <tr><td><b>Propinsi</b></td> <td>".$row['propinsi']."</td></tr>
  21. <tr><td><b>Kota</b></td> <td>".$row['kota']."</td></tr>
  22. <tr><td><b>Kecamatan</b></td> <td>$row[kecamatan]</td></tr>
  23. <tr><td><b>No Hp</b></td> <td>$row[no_hp]</td></tr>
  24. </thead>
  25. </table>
  26.  
  27. Uba menjadi seperti ini tanpa table lagi :
  28. <div class='block-content'>
  29. <div id='writecomment'>
  30. <p class='contact-form-user'>
  31. <label for='c_name'>Username</label>
  32. $row[username]
  33. </p>
  34. <p class='contact-form-user'>
  35. <label for='c_name'>Nama Lengkap</label>
  36. $row[nama_lengkap]
  37. </p>
  38.  
  39. dst,.................
  40. </div>
  41. </div>
joko ahmadi
commented on 03 Jan 2020 17:33:05
Salah satu jawaban terbaik,..
  1. Assalamualaikum,..
  2. setelah sy edit hasilnya seperti di capture ini
  3.  
  4. <?php
  5.  
  6. echo "<p class='sidebar-title text-danger produk-title'> Data Profile Anda
  7. <a class='btn btn-success btn-xs pull-right' href='".base_url()."members/edit_profile'><span class='glyphicon glyphicon-edit'></span> Edit Profile</a>
  8. </p>";
  9.  
  10. echo $this->session->flashdata('message');
  11. $this->session->unset_userdata('message');
  12. echo "<p>Berikut Informasi Data Profile anda.<br>
  13. Pastikan data-data dibawah ini sudah benar, agar tidak terjadi kesalahan saat transaksi.</p>";
  14.  
  15. $rows = $this->model_app->edit('rb_konsumen',array('id_konsumen'=>$this->session->id_konsumen))->row_array();
  16. if (trim($row['foto'])=='' OR !file_exists("asset/foto_user/".$row['foto'])){
  17. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/a9.png'>";
  18. }else{
  19. echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/$rows[foto]'>";
  20. }
  21. ?>
  22. <div class='block-content'>
  23. <div id='writecomment'>
  24. <p class='contact-form-user'>
  25. <label for='c_name'>Username</label>
  26. $row[username]
  27. </p>
  28. <p class='contact-form-user'>
  29. <label for='c_name'>Nama Lengkap</label>
  30. $row[nama_lengkap]
  31. </p>
  32. <p class='contact-form-user'>
  33. <label for='c_name'>Email</label>
  34. $row[email]
  35. </p>
  36. <p class='contact-form-user'>
  37. <label for='c_name'>Jenis Kelamin</label>
  38. $row[jenis_kelamin]
  39. </p>
  40. <p class='contact-form-user'>
  41. <label for='c_name'>Tanggal Lahir</label>
  42. tgl_indo($row['tanggal_lahir'])
  43. </p>
  44.  
  45. <p class='contact-form-user'>
  46. <label for='c_name'>Tempat Lahir</label>
  47. $row[tempat_lahir]
  48. </p>
  49. <p class='contact-form-user'>
  50. <label for='c_name'>Alamat</label>
  51. $row[alamat_lengkap]
  52. </p>
  53. <p class='contact-form-user'>
  54. <label for='c_name'>Propinsi</label>
  55. $row['propinsi']
  56. </p>
  57. <p class='contact-form-user'>
  58. <label for='c_name'>kota</label>
  59. $row['kota']
  60. </p>
  61. <p class='contact-form-user'>
  62. <label for='c_name'>Kecamatan</label>
  63. $row[kecamatan]
  64. </p>
  65. <p class='contact-form-user'>
  66. <label for='c_name'>No. HP</label>
  67. $row[no_hp]
  68. </p>
  69.  
  70. </div>
  71. </div>
  72.  
  73. <div class='block-content'>
  74. <div id='writecomment'>
  75. <p class='contact-form-user'>
  76. <label for='c_name'>No</label>
  77. </p>
  78. <p class='contact-form-user'>
  79. <label for='c_name'>Nama Penjual</label>
  80. </p>
  81. <p class='contact-form-user'>
  82. <label for='c_name'>Belanja & Ongkir</label>
  83. </p>
  84. <p class='contact-form-user'>
  85. <label for='c_name'>Status</label>
  86. </p>
  87. <p class='contact-form-user'>
  88. <label for='c_name'>Total + Ongkir</label>
  89. </p>
  90. </div>
  91. </div>
  92.  
  93. <?php
  94. $no = 1;
  95. $record = $this->model_reseller->orders_report($this->session->id_konsumen,'reseller');
  96. foreach ($record->result_array() as $row){
  97. if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; }elseif($row['proses']=='1'){ $proses = '<i class="text-success">Proses</i>'; }else{ $proses = '<i class="text-info">Konfirmasi</i>'; }
  98. $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();
  99. echo "<tr><td>$no</td>
  100. <td><a href='".base_url()."members/produk_reseller/$row[id_reseller]'><small><b>$row[nama_reseller]</b></small><br><small class='text-success'>$row[kode_transaksi]</small></a></td>
  101. <td><span style='color:blue;'>Rp ".rupiah($total['total'])."</span> <br> <small><i style='color:green;'><b style='text-transform:uppercase'>$row[kurir]</b> - Rp ".rupiah($row['ongkir'])."</i></small></td>
  102. <td>$proses <br><small>$row[nama_reseller]</small></td>
  103. <td style='color:red;'>Rp ".rupiah($total['total']+$row['ongkir'])."</td>
  104. <td width='130px'>";
  105. if ($row['proses']=='0'){
  106. echo "<a style='margin-right:3px' class='btn btn-success btn-sm' title='Konfirmasi Pembayaran' href='".base_url()."konfirmasi?kode=$row[kode_transaksi]'>Konfirmasi</a>";
  107. }else{
  108. echo "<a style='margin-right:3px' class='btn btn-default btn-sm' href='#' onclick=\"return confirm('Maaf, Pembayaran ini sudah di konfirmasi!')\">Konfirmasi</a>";
  109. }
  110.  
  111. echo "<a class='btn btn-info btn-sm' title='Detail data pesanan' href='".base_url()."members/keranjang_detail/$row[id_penjualan]'><span class='glyphicon glyphicon-search'></span></a></td>
  112. </tr>";
  113. $no++;
  114. }
  115. ?>
  116.  
Terdapat 1 File dilampirkan :
1. capture.PNG (25 KB)
Bukhori Muslim
commented on 03 Jan 2020 17:51:39
  1. Assalamualaikum,.. kenapa ditarok diluar <?php ?>
  2. tentunya akan tampil seperti itu. tarok didalam :
  3. <?php
  4. echo "<div class='block-content'>
  5. <div id='writecomment'>
  6. <p class='contact-form-user'>
  7. <label for='c_name'>Username</label>
  8. $row[username]
  9. </p>
  10. <p class='contact-form-user'>
  11. <label for='c_name'>Nama Lengkap</label>
  12. $row[nama_lengkap]
  13. </p>
  14.  
  15. dst,.................
  16. </div>
  17. </div>";
  18. ?>
joko ahmadi
commented on 03 Jan 2020 19:55:01
Salah satu jawaban terbaik,..
  1. Assalamualaikum,..
  2. Siap mas akan sy coba dl, jazakallah khair atas bantuannya
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online