update improvment dec 2023

This commit is contained in:
2023-12-16 15:21:07 +07:00
parent debc10869e
commit b84200f7ef
3 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -4,7 +4,7 @@
Desc. : CSS Default Configuration
Created By : Siau Pheng ([email protected]).
Created Date : December 20th, 2007.
Last Modified : May 20th, 2023.
Last Modified : December 16th, 2023.
(c) 2009 - 2023, 3FONIA Software; WWW.3FONIA.COM.
@@ -368,7 +368,8 @@ table * .r { text-align: right !important; }
table * .c { text-align: center !important; }
table * .wr { white-space: normal !important; }
table * .nwr { white-space: nowrap !important; }
table * .awr { white-space: nowrap !important; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
table * .awr, table * .awr-400 { white-space: nowrap !important; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
table * .awr-400 { max-width: 400px; }
table * .hid { visibility: hidden !important; display: none !important; }
table * .nb { border: 0 !important; }
+6 -1
View File
@@ -133,6 +133,10 @@ var FoniaJS = {
FoniaJS.callMenu(linkid);
if (sbar.length > 0) { sbar.modal('toggle'); }
});
$(".slink").click(function(e){
var ddown = $(this).closest('.dropdown-menu');
if (ddown.length > 0) { ddown.dropdown('toggle'); }
});
if ($("#HomeLink").length){
$("#HomeLink").click(function(){
this.closeAllWindows();
@@ -385,6 +389,7 @@ var FoniaJS = {
}
});
$('.option-tags').each(function() {//oke
if (!jQuery.isFunction(jQuery.fn.select2)) return;
var _opts = {tags: false, dropdownAutoWidth: true, width: 'auto', theme: 'bootstrap-5'};
var _dmodal = $(this).closest('div.modal');
if ($(_dmodal).hasClass('modal')) _opts.dropdownParent = _dmodal;
@@ -946,7 +951,7 @@ Request.JSONF = function(options){//oke
$(this).parent().addClass(span);
});
// create hover title for awr class td
$('#'+ini.id+'Tabel tbody td.awr').each(function(){
$('#'+ini.id+'Tabel tbody td[class*="awr"]').each(function(){
$(this).attr('title', $(this).html().replace(/<br\s*[\/]?>/gi,'\n').replace(/(<([^>]+)>)/gi,''));
});
// generate pagelength option
+5 -5
View File
@@ -6,7 +6,7 @@
Desc. : v3 - Class menu
Created By : Siau Pheng (siaupheng@3fonia.com).
Created Date : January 16th, 2008.
Last Modified : November 1st, 2023.
Last Modified : December 14th, 2023.
(c) 2008 - 2023, 3FONIA Software; WWW.3FONIA.COM.
@@ -35,7 +35,7 @@ final class Menu {
public function Menu_Sidebar() {//oke
$a_modul = array();
$is_modul = (isset($_SESSION['__WEB_APP']['APP_MODULE']) && $_SESSION['__WEB_APP']['APP_MODULE'] <> "") ? true : false;
$is_modul = (($_SESSION['__WEB_APP']['APP_MODULE'] ?? "") <> "") ? true : false;
if ($is_modul == true) {
$a_modul[] = $_SESSION['__WEB_APP']['APP_MODULE'];
} else {
@@ -45,7 +45,7 @@ final class Menu {
}
}
$my_menu = explode(",", (($_SESSION['__WEB_USER']['Menu_Grup'])?$_SESSION['__WEB_USER']['Menu_Grup'].",":"").$_SESSION['__WEB_USER']['Menu']);
$my_menu = array_unique(array_filter(explode(",", $_SESSION['__WEB_USER']['Menu_Grup'].",".$_SESSION['__WEB_USER']['Menu'])));
$tsql = " AND Modul IN ('".implode("','",$a_modul)."')";
$tsql .= ($is_modul == true) ? " AND Level>0" : "";
$tsql .= " AND Kode IN ('".implode("','",$my_menu)."')";
@@ -74,7 +74,7 @@ final class Menu {
public function Menu_Header() {//oke
$a_modul = array();
$is_modul = (isset($_SESSION['__WEB_APP']['APP_MODULE']) && $_SESSION['__WEB_APP']['APP_MODULE'] <> "") ? true : false;
$is_modul = (($_SESSION['__WEB_APP']['APP_MODULE'] ?? "") <> "") ? true : false;
$mulai_level = 0;
if ($is_modul == true) {
$a_modul[] = $_SESSION['__WEB_APP']['APP_MODULE'];
@@ -86,7 +86,7 @@ final class Menu {
}
}
$my_menu = explode(",", (($_SESSION['__WEB_USER']['Menu_Grup'])?$_SESSION['__WEB_USER']['Menu_Grup'].",":"").$_SESSION['__WEB_USER']['Menu']);
$my_menu = array_unique(array_filter(explode(",", $_SESSION['__WEB_USER']['Menu_Grup'].",".$_SESSION['__WEB_USER']['Menu'])));
$tsql = " AND Modul IN ('".implode("','",$a_modul)."')";
$tsql .= ($is_modul == true) ? " AND Level>0" : "";
$tsql .= " AND Kode IN ('".implode("','",$my_menu)."')";