From 675c5e948882626a10a0f8074cebc5e75986d50d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 27 Aug 2024 18:13:24 +0200 Subject: [PATCH] C0SEC : add a search for the table of users --- include/param_sec.inc.php | 4 ++-- include/widget/invoice/invoice.php | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/include/param_sec.inc.php b/include/param_sec.inc.php index 83c60201f..9daaca5c8 100644 --- a/include/param_sec.inc.php +++ b/include/param_sec.inc.php @@ -71,8 +71,8 @@ if ( ! isset($_REQUEST['action'])) $MaxUser = Database::num_row($user_sql); - - echo ''; + echo \HtmlInput::filter_table("user_security_tb", '0,1,2,3', 1); + echo '
'; echo ""; echo ''; echo ''; diff --git a/include/widget/invoice/invoice.php b/include/widget/invoice/invoice.php index f710f9693..1f7467dc8 100644 --- a/include/widget/invoice/invoice.php +++ b/include/widget/invoice/invoice.php @@ -28,13 +28,26 @@ namespace Noalyss\Widget; */ class Invoice extends Widget { + /** + * @brief return the constant array Tiers + * @return array + */ static function getConstantTiers() : array { return ['S' => _("Fournisseurs"), "C" => _("Clients")];; } + /** + * @brief return the constant array Limit + * @return array + */ static function getConstantLimit() :array { return ['P' => _("Prochaines factures"), "R" => "facture en retard",'T'=>_("Aujourd'hui")]; } + + /** + * @brief let choice what to display + * @return void + */ function input_parameter() { $tiers = new \ISelect('tiers'); @@ -55,6 +68,10 @@ class Invoice extends Widget } + /** + * @brief display the parameter + * @return void + */ function display_parameter() { $aParam = $this->get_parameter(); @@ -63,6 +80,11 @@ class Invoice extends Widget echo ''.$aTiers[$aParam['tiers']] . " " . $aLimit[$aParam["time_limit"]].''; } + /** + * @brief display the widget + * @return void + * @throws \Exception + */ function display() { $this->open_div();
'.$header->get_header(0).''.$header->get_header(1).'