Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.9 kB
3
Indexable
Never
html += '<tr>'+
              '<td style="text-left: right; width:70px;">'+no+'</td>'+
              
              '<td>'+data[i].tanggal+ '</td>'+
              '<td>'+data[i].jenis_produk+ '</td>'+
              '<td>'+data[i].nama_bb+ '</td>'+
              '<td>'+data[i].no_konsep+ '</td>'+
              '';
   if ($data->stok == ""){
echo '
   <button class="btn btn-info" title="MASTER BUKU"><i class="icon-list icon-white"> </i> Master</button>
    ';
   }else if ($d->stok == "0"){
echo '
   <button class="btn btn-danger" title="BUKU TIDAK ADA"><i class="icon-remove icon-white"> </i> Pinjam</button>';
   }else{
echo '
   <button class="btn btn-success"  title="BUKU ADA" onclick="return isikan_kode(\''.$id_baris.'\', \''.$d->id.'\', \''.$d->judul.'\');"><i class="icon-check icon-white"> </i> Pinjam</button>';
   }
echo''+
              '<td>'+data[i].jmlh_kg+ '</td>'+
              '<td>'+data[i].hasil_cutting+ '</td>'+
              '<td>'+data[i].hasil_sewing+ '</td>'+
              '<td>'+data[i].hasil_packing+ '</td>'+
              '<td>'+data[i].periode+ '</td>'+
              '<td>'+data[i].dibuat+ '</td>';
              <?php if($this->session->userdata('level')=='admin'): ?>
                html+='<td style="width:150px;">'+

                '<a title="Tambah Pemakaian" href="javascript:void(0);" class="tambah_datakonsep btn btn-link btn-info btn-sm text-white" data-id_konsep="'+data[i].id_konsep+'" data-jmlh_roll="'+data[i].jmlh_roll+'"data-jmlh_kg="'+data[i].jmlh_kg+'"data-hasil_cutting="'+data[i].hasil_cutting+'"data-hasil_sewing="'+data[i].hasil_sewing+'"data-hasil_packing="'+data[i].hasil_packing+'"><i class="fa fa-plus"></i></a>'+' '+
                 //'<a title="Tambah Pemakaian" href="javascript:void(0);" class="add_datapemakaian btn btn-link btn-info btn-sm text-white" data-id_konsep="'+data[i].id_konsep+'"><i class="fa fa-plus"></i></a>'+' '+