fixed header simplexls and move header printhtml to thead
This commit is contained in:
@@ -6,9 +6,9 @@
|
|||||||
Desc. : v3 - Class pembuatan file Simple XLS
|
Desc. : v3 - Class pembuatan file Simple XLS
|
||||||
Created By : Siau Pheng ([email protected]).
|
Created By : Siau Pheng ([email protected]).
|
||||||
Created Date : November 18th, 2012.
|
Created Date : November 18th, 2012.
|
||||||
Last Modified : November 18th, 2023.
|
Last Modified : September 30th, 2025.
|
||||||
|
|
||||||
(c) 2012 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
(c) 2012 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||||
|
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ final class SimpleXLS {
|
|||||||
->setAuthor($_SESSION['__WEB_APP']['APP_NAME']." v".$_SESSION['__WEB_APP']['APP_VER'])
|
->setAuthor($_SESSION['__WEB_APP']['APP_NAME']." v".$_SESSION['__WEB_APP']['APP_VER'])
|
||||||
->setLastModifiedBy($_SESSION['__WEB_APP']['APP_NAME']." v".$_SESSION['__WEB_APP']['APP_VER'])
|
->setLastModifiedBy($_SESSION['__WEB_APP']['APP_NAME']." v".$_SESSION['__WEB_APP']['APP_VER'])
|
||||||
->setTitle($oprop['title'] ?? "")
|
->setTitle($oprop['title'] ?? "")
|
||||||
->setSubject($oprop['subject'] ?? "")
|
->setSubject($oprop['subject'] ?? $_SESSION['__WEB_APP']['REG_NAME'])
|
||||||
->setDescription($oprop['desc'] ?? "")
|
->setDescription($oprop['desc'] ?? "")
|
||||||
->setCompany($_SESSION['__WEB_APP']['REG_NAME'])
|
->setCompany($_SESSION['__WEB_APP']['REG_NAME'])
|
||||||
->setDefaultFont("Calibri")
|
->setDefaultFont("Calibri")
|
||||||
|
|||||||
+12
-13
@@ -3,12 +3,12 @@
|
|||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
|
|
||||||
Module : /Printing/PrintHTML.php
|
Module : /Printing/PrintHTML.php
|
||||||
Desc. : v4 - Class cetak HTML
|
Desc. : v3 - Class cetak HTML
|
||||||
Created By : Siau Pheng ([email protected]).
|
Created By : Siau Pheng ([email protected]).
|
||||||
Created Date : June 15th, 2008.
|
Created Date : June 15th, 2008.
|
||||||
Last Modified : November 1st, 2023.
|
Last Modified : September 30th, 2025.
|
||||||
|
|
||||||
(c) 2008 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
(c) 2008 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||||
|
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
|
|
||||||
@@ -34,14 +34,7 @@ final class PrintHTML {
|
|||||||
$this->__atabel[] = [$tnama, $nlebar, $ffunc, $talign, $nkol];
|
$this->__atabel[] = [$tnama, $nlebar, $ffunc, $talign, $nkol];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function show_fields() {
|
public function show_fields() {//todo: deleted
|
||||||
$tmp_out = "<tr>";
|
|
||||||
for ($i=0; $i<count($this->__atabel); $i++) {
|
|
||||||
if ($this->__atabel[$i][4]==0) continue;
|
|
||||||
$tmp_out .= $this->set_align($this->__atabel[$i][0], $this->__atabel[$i][1], "C", false, true, $this->__atabel[$i][4]);
|
|
||||||
}
|
|
||||||
$tmp_out .= "</tr>";
|
|
||||||
$this->__avalue[] = $tmp_out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clear() {
|
public function clear() {
|
||||||
@@ -95,10 +88,16 @@ final class PrintHTML {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function show($jumlah_ctk=1) {//up 2012-10-11
|
public function show($jumlah_ctk=1) {//up 2012-10-11
|
||||||
$out = "<table class=\"".$this->__css."\"><tbody>";
|
$out = "<table class=\"".$this->__css."\"><thead>";
|
||||||
|
|
||||||
// header out
|
// header out
|
||||||
// not yet !!
|
$tmp_out = "<tr>";
|
||||||
|
for ($i=0; $i<count($this->__atabel); $i++) {
|
||||||
|
if ($this->__atabel[$i][4]==0) continue;
|
||||||
|
$tmp_out .= $this->set_align($this->__atabel[$i][0], $this->__atabel[$i][1], "C", false, true, $this->__atabel[$i][4]);
|
||||||
|
}
|
||||||
|
$tmp_out .= "</tr>";
|
||||||
|
$out = "</thead>".$tmp_out."<tbody>";
|
||||||
|
|
||||||
// content out
|
// content out
|
||||||
for ($i=0; $i<count($this->__avalue); $i++) {
|
for ($i=0; $i<count($this->__avalue); $i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user