oyazhuryachna

modal_print_DataInvice_view

Dec 29th, 2017
3,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.19 KB | None | 0 0
  1. <div class="noprint">
  2.  
  3.     <div class="row">
  4.         <div class="col-md-12">
  5.             <h1>Daftar Invoice</h1>
  6.             <table class="table table-bordered table-hovered">
  7.             <thead>
  8.                 <tr>
  9.                     <th>No</th>
  10.                     <th>No. Invoce</th>
  11.                     <th>Tanggal</th>
  12.                     <th>Nama Pelanggan</th>
  13.                     <th>Alamat Plenggan</th>
  14.                     <th>Total Pembelian</th>
  15.                     <th>Aksi</th>
  16.                 </tr>
  17.             </thead>
  18.             <tbody>
  19.                 <?php
  20.                 if(isset($ListInvoice)){
  21.  
  22.                     $NoUrut=null;
  23.  
  24.                     foreach($ListInvoice as $row){
  25.                     $NoUrut++; 
  26.                     echo '<tr>
  27.                         <td>'.$NoUrut.'</td>
  28.                         <td>'.$row['no_kwitansi'].'</td>
  29.                         <td>'.$row['tgl_kwitansi'].'</td>
  30.                         <td>'.$row['nama_pelanggan'].'</td>
  31.                         <td>'.$row['alamat_pelanggan'].'</td>
  32.                         <td align="right">'.number_format($row['total_bayar'],0,',','.').'</td>
  33.                         <td>
  34.                         <a href="#ModalDetail"
  35.                         id="'.$row['no_kwitansi'].'|'.$row['tgl_kwitansi'].'|'.$row['nama_pelanggan'].'|'.$row['alamat_pelanggan'].'|'.number_format($row['total_bayar'],0,',','.').'|'.preg_replace( "/\n/", "", str_replace(",","",$row['data_invoice'])).'"  data-toggle="modal"  class="detail-invoice"><i class="fa fa-print"></i></a>
  36.                         </td>
  37.                    
  38.                     </tr>';
  39.                     }
  40.                 }
  41.                 ?>
  42.             </tbody>
  43.             </table>
  44.            
  45.         </div>
  46.     </div>
  47. </div><!-- end noprint-->
  48.  
  49.    
  50.         <!-- Modal -->
  51.         <div class="modal fade modal-wide" id="ModalDetail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  52.           <div class="modal-dialog">
  53.             <div class="modal-content">
  54.               <div class="modal-header">
  55.                 <h4 class="modal-title" id="myModalLabel"><span class="fa fa-money"></span>&nbsp;Invoice</h4>
  56.                 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  57.               </div>
  58.               <div class="modal-body" id="IsiModal">
  59.                 ...
  60.               </div>
  61.               <div class="modal-footer">
  62.                 <button type="button" class="btn btn-success" OnClick="javascript:window.print()"><span class="fa fa-print"></span>  Cetak</button>
  63.                 <button type="button" class="btn btn-primary" data-dismiss="modal"><span class="fa fa-close"></span>  Tutup</button>
  64.                 </div>
  65.             </div>
  66.           </div>
  67.         </div>
  68.         <!-- akhir kode modal dialog -->
Advertisement
Add Comment
Please, Sign In to add comment