// Total Wire
 $pdf->SetFont($font, 'B', $size - 1);
 $pdf->Cell(32, $height, 'ISI 1 BOX (Pcs)', 1, 0, 'L');
 $pdf->SetFont($font, '', $size);
 $pdf->Cell(32, $height, number_format($data->t_prod_qty, 0, '', '.'), 1, 0, 'C');
 // Qty Per Box
 $pdf->Ln($height);
 $pdf->SetFont($font, 'B', $size - 1);
 $pdf->Cell(32, $height, 'SCHEDULE PROD.', 1, 0, 'L');
 $pdf->SetFont($font, '', $size);
 $pdf->Cell(32, $height, tgl($data->t_po_detail_prod_date), 1, 0, 'C');
 // Schedule Prod
 $pdf->SetFont($font, 'B', $size - 1);
 $pdf->Cell(32, $height, 'TGL DELIVERY', 1, 0, 'L');
 $pdf->SetFont($font, '', $size);
 $pdf->Cell(32, $height, tgl($data->t_po_detail_delv_date), 1, 0, 'C');
 // Tgl Delivery
 $pdf->Ln($height);
 $pdf->SetFont($font, 'B', $size - 1);
 $pdf->Cell(25, $height, 'PROSES', 1, 0, 'C');
 $pdf->Cell(14, $height, 'Std. Kg.', 1, 0, 'C');
 $pdf->Cell(25, $height, 'No.MESIN', 1, 0, 'C');
 $pdf->Cell(16, $height, 'Tgl. Prod.', 1, 0, 'C');
 $pdf->Cell(16, $height, 'Act. Kg.', 1, 0, 'C');
 $pdf->Cell(16, $height, 'OPR', 1, 0, 'C');
 $pdf->Cell(16, $height, 'PARAF', 1, 0, 'C');
 $pdf->Ln($height);
 foreach ($detail->result() as $proses) {
     $pdf->SetFont($font, '', $size);
     $pdf->Cell(25, $height - 0.5, $proses->m_process_cat_name, 1, 0, 'C');
     // Nama Proses
Beispiel #2
0
function comentar($id_iklan, $id_user, $message)
{
    $query = "INSERT INTO `komentar` \n                       (`id_komentar`, `id_iklan`, `id_user`, `isi_komentar`,`waktu_komentar`, `jam`)\n                VALUES (NULL, '{$id_iklan}', '{$id_user}', '{$message}','" . tgl() . "', '" . jam() . "');";
    mysql_query($query);
}
Beispiel #3
0
    ?>
</td>
									<td><?php 
    echo $result->namak;
    ?>
</td>
									<td>Rp. <?php 
    echo number_format($result->harga);
    ?>
</td>
									<td><?php 
    echo number_format($result->stock);
    ?>
</td>
									<td><span class="glyphicon glyphicon-time"></span> <?php 
    echo tgl(date("Y-m-d", strtotime($result->last_update))) . ", " . date("H:i:s", strtotime($result->last_update));
    ?>
</td>
									<td><?php 
    echo $result->namap;
    ?>
</td>
									<td align="right">
										<a href="#"><button type="button" data-toggle="modal" data-target="#infoModal" id="<?php 
    echo $result->idbarang;
    ?>
" class="info btn btn-sm btn-info"><span class="glyphicon glyphicon-eye-open"></span></button></a>
										<a href="#"><button type="button" data-toggle="modal" data-target="#editModal" id="<?php 
    echo $result->idbarang;
    ?>
" class="edit btn btn-sm btn-default"><span class="glyphicon glyphicon-cog"></span></button></a>
Beispiel #4
0
function date_time($string, $date_time = 'date_time', $indo = TRUE)
{
    if ($string == '' || $string == '0000-00-00') {
        return '0000-00-00';
    }
    $string = explode(' ', $string);
    $time = explode(':', $string[1]);
    $time = $time[0] . ':' . $time[1];
    if ($date_time == 'date_time') {
        if ($indo == TRUE) {
            return tgl_indo($string[0]) . ' / ' . $time;
        } else {
            return tgl($string[0]) . ' / ' . $time;
        }
    } elseif ($date_time == 'date') {
        if ($indo == TRUE) {
            return tgl_indo($string[0]);
        } else {
            return tgl($string[0]);
        }
    } elseif ($date_time == 'time') {
        return $time;
    }
}