function format_date($date, $noTime = FALSE) { $arrDate = explode(' ', $date); if ($noTime) { $result = !empty($date) ? ina_date($arrDate[0]) : "-"; } else { $result = !empty($date) ? ina_date($arrDate[0]) . '<br>' . substr($arrDate[1], 0, -3) . ' WIB' : "-"; } return $result; }
<?php header('Content-type: application/ms-excel'); header('Content-Disposition: attachment; filename=report_order_paket.xls'); ?> <strong> Report Order Space<br> AE / Sales : <?php echo $ae; ?> <br> Periode : <?php echo ina_date($start_date) . " - " . ina_date($end_date); ?> <br><br> </strong> <table width="100%" border="1"> <thead> <tr bgcolor="#cccccc"> <th width="40px">No</th> <th>Tanggal Request</th> <th>No Space</th> <th>Agency</th> <th>Client</th> <?php /* <th><a href="#">Jadi Paket</a></th> <th width="130px"><a href="#">Tanggal Buat</a></th> <th width="130px"><a href="#">Tanggal Update</a></th> */