Dokumentasi Class Excel
Export File
<?php
$FILE=tatiyeNet::Export('File',[
'Name' => 'info',
'Location' => 'Export',
]);
?>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>TATIYE.NET</td>
<td>info@tatiye.net</td>
</tr>
</tbody>
</table>
<?php
$FILE->Stop();
?>
Ulr Export
<?php echo tatiyeNet::Export('Excel','Export/info');?>
Class |
Deskripsi |
'Name' => 'info', |
Nama File Export |
'Location' => 'Export', |
Nama Direktori Export |
AddSheet
session_start();
$SG=explode('/',$_GET['tn']);
$export=$SG[0].'.php';
$Name=$export.'-'.time();
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$Name.xls");
header("Pragma: no-cache");
header("Expires: 0");
require(__DIR__ .'/'.$export);