update 2023-05-23

This commit is contained in:
2023-05-23 16:21:14 +07:00
parent b64325d3c6
commit 8e7d327a4f
4 changed files with 68 additions and 11 deletions
+1 -2
View File
@@ -45,9 +45,8 @@ final class CSV {
}
public function download($nama_file="export.csv") {
$out = "";
$out = ""; $tmp_out = "";
// add header
$tmp_out = "";
for ($i=0; $i<count($this->__atabel); $i++) {
$tmp_out .= DELI_CSV . $this->__atabel[$i][0];
}
+4 -4
View File
@@ -6,9 +6,9 @@
Desc. : v4 - HTML Table (jQuery & Bootstrap)
Created By : Siau Pheng ([email protected]).
Created Date : January 16th, 2008.
Last Modified : May 3rd, 2022.
Last Modified : May 18th, 2023.
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
(c) 2008 - 2023, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
@@ -153,7 +153,7 @@ final class Table {
$tval = $this->__cdb->Row($this->__afield[$i], 0);
if (is_array($this->__afooter[$i])) {
$tval2 = $this->__afooter[$i][$tval];
} else if (function_exists($this->__afooter[$i])) {
} else if (!is_null($this->__afooter[$i]) && function_exists($this->__afooter[$i])) {
$tval2 = call_user_func($this->__afooter[$i], $tval);
} else {
$tval2 = ($this->__afooter[$i]<>"") ? $this->__afooter[$i] : $tval;
@@ -194,7 +194,7 @@ final class Table {
$tval = stripslashes($this->__cdb->Row($this->__afield[$i]));//up: 2015-01-05
if (is_array($this->__aformat[$i])) {
$tval = $this->__aformat[$i][$tval];
} else if (function_exists($this->__aformat[$i])) {
} else if (!is_null($this->__aformat[$i]) && function_exists($this->__aformat[$i])) {
$tval = call_user_func($this->__aformat[$i], $tval);
}
$abaris[] = $tval;