<?php include 'header.php'; //$_SESSION['harga1'] = 0; @($transaksis = getTransaksi()); ?> <div class="container"> <div class="text-center"> <h3>Lihat Transaksi</h3> <table border="1" cellpadding="10" cellspacing="0"> <tr> <th>IP</th> <th>Tanggal Pembuatan</th> <th>Nama Pelanggan</th> <th>Sisa Waktu Sewa</th> <th>Status</th> </tr> <?php $day = 29; //echo $day; $yellow = $day - $day / 3; //echo $yellow; foreach ($transaksis as $row) { $now = time(); $selling_date = strtotime($row['tgl_pembuatan']); $datediff = $now - $selling_date; $days = floor($datediff / (60 * 60 * 24));
<?php include 'header.php'; //$_SESSION['harga1'] = 0; $transaksis = getTransaksi(); ?> <div class="container"> <div class="text-center"> <table border="1" cellpadding="10" cellspacing="0"> <tr> <th>Nomor PO</th> <th>Nomor Seri</th> <th>Tanggal Keluar</th> <th>Nama Customer</th> <th>Alamat</th> <th>Status</th> </tr> <?php $values = getMasaAktifTabung(); $day = $values[0]['value']; echo $day; $yellow = $day - $day / 3; echo $yellow; foreach ($transaksis as $row) { $now = time(); $selling_date = strtotime($row['tgl_keluar']); $datediff = $now - $selling_date;