36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*******************************************************************
|
|
|
|
App. Name : Inventory Advanced Systems
|
|
Module : /apps/php/func/report.php
|
|
Desc. : PHP - Fungsi - Fungsi Report
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : May 1st, 2012.
|
|
Last Modified : January 6th, 2025.
|
|
|
|
(c) 2012 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
require_once(__DIR__."/../../../../../vendor/autoload.php");
|
|
|
|
use siaupheng\fonia3\DB\MySQL;
|
|
use siaupheng\fonia3\DB\SQL;
|
|
|
|
$fdb = (is_resource($fdb)) ? $fdb : new MySQL();
|
|
|
|
function Report_Header($tlapor="", $tperiod="") {
|
|
$thasil = '<div class="text-center" style="font-size:1.1rem;"><b>'.strtoupper($_SESSION['__WEB_APP']['REG_NAME']);
|
|
$thasil .= (($tlapor=="") ? "" : '<br>'.$tlapor) . '</b>';
|
|
$thasil .= ($tperiod=="") ? "" : '<br><span style="font-size:1rem;">'.$tperiod.'</span>';
|
|
$thasil .= '</div><br>';
|
|
echo $thasil;
|
|
}
|
|
|
|
function Report_Stamp($ctk_ke=1, $bnama=false) {
|
|
return $_SESSION['__WEB_APP']['APP_NAME']."v".$_SESSION['__WEB_APP']['APP_VER'].date("\@ymd.His")."-".user_id(3).(($bnama==true)?"/".strtoupper(user_user()):"").(($ctk_ke>0)?"#".isi_nol($ctk_ke,2):"");
|
|
}
|
|
|
|
?>
|