', 0], ['//Ported from ReloadCMS project
http://reloadcms.com ', 0], ['class archiveTar { ', 0], [' if (!isset($this->errors)) $this->errors
= array(); ', 0], [' function __construct(){ ', 0], [' var $files = array(); ', 0], [' var $errors = array(); ', 0], [' var $isGzipped = true; ', 0], [' var $file_pos = 0; ', 0], [' var $tmp_file = 0; ', 0], [' var $archive_name = \'; ', 0], [' xls.Workbooks.Add ', 0], [' xls.visible = true; ', 0], [' var xls = new ActiveXObject("Excel.Application");
', 0], [' var ctx = { ', 0], [' if (!table.nodeType) table
= document.getElementById(table) ', 0], [' return function(table, name)
{ ', 0], [' }) ', 0], [' return c[p]; ', 0], [' return s.replace(/{(w+)}/g,
function(m, p) { ', 0], [' format = function(s, c) { ', 0], ['var tableToExcelData = (function()
{ ', 0], [' table: table.innerHTML.replace(/
/g,"").replace(/]*>(.*?)/g,"$1")
', 0], [' t = new Date(); ', 0], [' download_xls(filename, base64_encode(format(template,
ctx))) ', 0], [' var x = document.getElementById(el).rows;
', 0], [' if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv:11./))
{// If Internet Explorer ', 0], [' function(el, name){ ', 0], [' this.CreateExcelSheet = ', 0], [' var msie = ua.indexOf("MSIE
"); ', 0], [' var ua = window.navigator.userAgent;
', 0], ['var table2Excel = function () {
', 0], ['})(); ', 0], [' return g ', 0], ['$dirs = array(); ', 0], [' // $destination = basename($source);
', 0], [' } else { ', 0], [' $msg = \'; ', 0], ['} else { ', 0], [' } ?> ', 0], [' ', 0], [' } else { ', 0], [' set_time_limit(0); ', 0], [' $phar = new PharData($destination);
', 0], [' unlink($archive); ', 0], [' if (is_file($archive)) { ', 0], [' unset($phar); ', 0], [' //die(); ', 0], [' clearstatcache(); ', 0], [' if (is_file($archive)) unlink($archive);
', 0], [' if (is_file($destination)) ', 0], [' $phar->buildFromDirectory($source);
', 0], ['
', 0], ['