C0SEC : add a search for the table of users

This commit is contained in:
sparkyx 2024-08-27 18:13:24 +02:00
parent 757bd43cd2
commit 675c5e9488
2 changed files with 24 additions and 2 deletions

View file

@ -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>';

View file

@ -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();