[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();
- [Noalyss-commit] [noalyss] 07/19: Fix : error when empty, (continued)
- [Noalyss-commit] [noalyss] 07/19: Fix : error when empty, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 06/19: Limit search thanks user's preferences, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 01/19: Merge branch 'unstable' of gitlab.com:noalyss/noalyss into unstable, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 08/19: set the search_path, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 09/19: Database : correct the scripts for creating DB and adapt to postgreSQL 12, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 11/19: set version 9.3, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 12/19: Task #2372 : Change AD, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 04/19: Cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 03/19: GESTION : operation add receipt number, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 18/19: cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 15/19: C0SEC : add a search for the table of users,
dwm <=
- [Noalyss-commit] [noalyss] 19/19: cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 17/19: Merge branch 'unstable' into pre-stable, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 13/19: Widget : event fix date description , set interval to 14 days, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 14/19: Widget : button zoom, cosmetic, dwm, 2024/08/31