fixed header simplexls and move header printhtml to thead
This commit is contained in:
+12
-13
@@ -3,12 +3,12 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Printing/PrintHTML.php
|
||||
Desc. : v4 - Class cetak HTML
|
||||
Desc. : v3 - Class cetak HTML
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
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];
|
||||
}
|
||||
|
||||
public function show_fields() {
|
||||
$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 show_fields() {//todo: deleted
|
||||
}
|
||||
|
||||
public function clear() {
|
||||
@@ -95,10 +88,16 @@ final class PrintHTML {
|
||||
}
|
||||
|
||||
public function show($jumlah_ctk=1) {//up 2012-10-11
|
||||
$out = "<table class=\"".$this->__css."\"><tbody>";
|
||||
$out = "<table class=\"".$this->__css."\"><thead>";
|
||||
|
||||
// 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
|
||||
for ($i=0; $i<count($this->__avalue); $i++) {
|
||||
|
||||
Reference in New Issue
Block a user