table css-row, on-close showWindow event, redirect parent on exit, open cash-drawer always on start printing, pole-display fixed bug.
This commit is contained in:
+8
-6
@@ -6,7 +6,7 @@
|
||||
Desc. : v3 - HTML5 Page Generator (jQuery & Bootstrap)
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 10th, 2008.
|
||||
Last Modified : September 21st, 2025.
|
||||
Last Modified : October 3rd, 2025.
|
||||
|
||||
(c) 2008 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -116,13 +116,15 @@ final class App {
|
||||
$href1 = $this->apps['WEB_PATH'].'../';
|
||||
$href2 = "";
|
||||
} else {
|
||||
$_host = str_replace(['http://','https://'], "", $this->apps['PARENT_SITE']);
|
||||
$_prot = "//";
|
||||
$_host = (isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : $this->apps['PARENT_SITE']);
|
||||
$_host = str_replace(['http://','https://'], "", $_host);
|
||||
if ($this->apps['PARENT_SUB']==true) {
|
||||
$href1 = $_prot;
|
||||
$href2 = ".". $_host;
|
||||
$_subs = explode('.', $_host);
|
||||
if (count($_subs) > 2) array_shift($_subs);
|
||||
$href1 = "//";
|
||||
$href2 = "." . implode('.', $_subs);
|
||||
} else {
|
||||
$href1 = $_prot . $_host .'/';
|
||||
$href1 = "//" . $_host . '/';
|
||||
$href2 = "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
Desc. : v4 - Class cetak POS
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : June 15th, 2008.
|
||||
Last Modified : November 1st, 2023.
|
||||
Last Modified : December 3rd, 2025.
|
||||
|
||||
(c) 2008 - 2023, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
@@ -17,7 +17,7 @@ declare(strict_types=1);
|
||||
namespace siaupheng\fonia3\Printer;
|
||||
|
||||
/* VERSI BARU DENGAN MULTI SHEET */
|
||||
class PrintPOS {//up: 20180108
|
||||
class PrintPOS {//up: 20251203
|
||||
private $_header = [];
|
||||
private $_avalue = [];
|
||||
private $_astyle = [];
|
||||
@@ -25,18 +25,15 @@ class PrintPOS {//up: 20180108
|
||||
private $_maxchr = 40;
|
||||
private $_config = [
|
||||
'fontsize' => 1,
|
||||
'nvlogo' => false,
|
||||
'opendraw' => false,
|
||||
'opendrawbegin' => true,
|
||||
'cutpaper' => false,
|
||||
'logo' => null ];
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function set_opendrawer($bbegin = true) {
|
||||
public function set_opendrawer() {
|
||||
$this->_config['opendraw'] = true;
|
||||
$this->_config['opendrawbegin'] = $bbegin;
|
||||
}
|
||||
|
||||
public function set_cutpaper() {
|
||||
@@ -51,9 +48,7 @@ class PrintPOS {//up: 20180108
|
||||
if ($nsize > 0) $this->_config['fontsize'] = $nsize;
|
||||
}
|
||||
|
||||
public function set_printnv_logo() {//up: 2015-03-23
|
||||
$this->_config['nvlogo'] = true;
|
||||
}
|
||||
public function set_printnv_logo() {}//delete
|
||||
|
||||
public function set_header_logo($logo_file = "") {//up: 2019-01-08
|
||||
if ($logo_file=="") return;
|
||||
@@ -62,15 +57,13 @@ class PrintPOS {//up: 20180108
|
||||
}
|
||||
}
|
||||
|
||||
public function add_header($nvlogo = false, $extra = array()) {//up: 2018-12-25
|
||||
$this->_config['nvlogo'] = $nvlogo;
|
||||
if ($nvlogo==false && $this->_config['logo']==null) $this->_header[] = $_SESSION['__WEB_APP']['REG_NAME'];
|
||||
public function add_header() {//up: 2025-12-03
|
||||
$extra = func_get_args();
|
||||
if (count($extra) > 0) {
|
||||
foreach ($extra as $_val) {
|
||||
$this->_header[] = $_val;
|
||||
}
|
||||
}
|
||||
$this->_header[] = $_SESSION['__WEB_APP']['REG_CITY'];
|
||||
}
|
||||
|
||||
public function add_sheet() {//up: 20170321
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ final class Table {
|
||||
$this->__bnobutton = true;
|
||||
}
|
||||
|
||||
public function add_field($tfield = "", $theader = "", $tstyle = "left", $tformat = "", $tfooter = "", $totype = "") {
|
||||
public function add_field($tfield = "", $theader = "", $tstyle = "l", $tformat = "", $tfooter = "", $totype = "") {
|
||||
$this->__aheader[] = $theader;
|
||||
$this->__afield[] = $tfield;
|
||||
$this->__astyle[] = $tstyle;
|
||||
|
||||
Reference in New Issue
Block a user