noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 15/19: C0SEC : add a search for the table of


From: dwm
Subject: [Noalyss-commit] [noalyss] 15/19: C0SEC : add a search for the table of users
Date: Sat, 31 Aug 2024 17:46:29 -0400 (EDT)

sparkyx pushed a commit to branch pre-stable
in repository noalyss.

commit 675c5e948882626a10a0f8074cebc5e75986d50d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Aug 27 18:13:24 2024 +0200

    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 '<TABLE class="result" >';
+    echo \HtmlInput::filter_table("user_security_tb", '0,1,2,3', 1);
+    echo '<TABLE id="user_security_tb" class="result" >';
        echo "<tr>";
        echo '<th>'.$header->get_header(0).'</th>';
        echo '<th>'.$header->get_header(1).'</th>';
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 '<span class="widget_param">'.$aTiers[$aParam['tiers']] . " " . 
$aLimit[$aParam["time_limit"]].'</span>';
     }
 
+    /**
+     * @brief display the widget
+     * @return void
+     * @throws \Exception
+     */
     function display()
     {
         $this->open_div();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]