noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
Noalyss\Widget\Event Class Reference

show 10 next events , or 10 late More...

+ Inheritance diagram for Noalyss\Widget\Event:
+ Collaboration diagram for Noalyss\Widget\Event:

Public Member Functions

 display ()
 display the content for the current connected user of the widget with the parameter
 
 get_next10 ()
 get the action where the remind day is within 14 days
 
- Public Member Functions inherited from Noalyss\Widget\Widget
 __construct (protected int $user_widget_id=0, protected string $widget_code="", protected $db=null)
 
 button_zoom ()
 compute the button ZOOM to put in the title
 
 close_div ()
 
 display_parameter ()
 MUST BE overrided if the widget needs extra parameters, display the content of extra-parameter.
 
 get_div_domid ()
 compute the DIV ID
 
 get_parameter ()
 get the parameter of the widget and returns an array
 
 get_user_widget_id ()
 
 get_var_name ()
 
 get_widget_code ()
 
 input ($flnumber=true)
 display a description of the widget and allow to save it for the current user, call input_param function of the widget if it exists
 
 input_parameter ()
 MUST BE overrided if the widget needs extra parameters, create a FORM to add extra-parameter.
 
 make_form ($html_input)
 open a form with the DOMID "widget_code"_param, it appears once only for each widget in the dialog box for adding widget to the dashboard
 
 open_div ()
 output the DIV HTML with class and id for the widget
 
 set_user_widget_id (int $user_widget_id)
 
 set_var_name ($var_name)
 
 set_widget_code (string $widget_code)
 
 title ( $title)
 display the title and the icon for zooming + refresh if possible
 

Additional Inherited Members

- Static Public Member Functions inherited from Noalyss\Widget\Widget
static ajax_display (Widget $widget)
 display a box and fills it with the content of an ajax calls , the ajax calls Widget::display
 
static build_refresh_js ($widget_code, $widget_id, $var_name)
 build refresh javascript
 
static build_user_widget ($user_widget_id, $widget_code)
 Build a widget thank the user_widget_id (SQL :PK : USER_WIDGET.UW_ID) and $widget_code.
 
static display_available ()
 @brier display activated widgets
 
static get_enabled_widget ()
 returns an array of widget for the connected user, ordered
 
static save ($array)
 save widget order from an array
 
static scanfolder ()
 scan folder to find install.php file , include them if the code is not in DB
 
static select_available ()
 show all the widget that can be added
 
- Protected Attributes inherited from Noalyss\Widget\Widget
 $var_name
 < $var_name string name of the variable in javascript
 

Detailed Description

show 10 next events , or 10 late

Definition at line 32 of file event.php.

Member Function Documentation

◆ display()

Noalyss\Widget\Event::display ( )

display the content for the current connected user of the widget with the parameter

Returns
mixed

Reimplemented from Noalyss\Widget\Widget.

Definition at line 63 of file event.php.

64 {
65
66 $this->open_div();
67 $array=$this->get_next10();
68 require "event-display.php";
69
70 $this->close_div();
71 }

References $array, Noalyss\Widget\Widget\close_div(), get_next10(), and Noalyss\Widget\Widget\open_div().

+ Here is the call graph for this function:

◆ get_next10()

Noalyss\Widget\Event::get_next10 ( )

get the action where the remind day is within 14 days

Returns
array

Definition at line 38 of file event.php.

39 {
40 $sql="select ag_ref
41 ,ag_hour
42 ,coalesce(vw_name,'Interne') as vw_name
43 ,coalesce(quick_code,'interne') as quick_code
44 ,ag_id
45 ,ag_title
46 ,ag_ref
47 , dt_value
48 ,to_char(ag_remind_date,'DD.MM.YY') as ag_timestamp_fmt
49 ,ag_timestamp
50 ,to_char(ag_remind_date,'YYMMDD') as remind_date
51 from action_gestion join document_type
52 on (ag_type=dt_id)
53 left join vw_fiche_attr on (f_id=f_id_dest)
54 where
55 ag_state not in (1,4)
56 and to_char(ag_remind_date,'YYYYMMDD')<=to_char(now()+interval '14 days','YYYYMMDD')
57 and ". \Follow_Up::sql_security_filter($this->db,'R')
58 ." order by ag_remind_date asc";
59 $array=$this->db->get_array($sql);
60 return $array;
61 }
$SecUser db

References $array, $sql, db, and Follow_Up\sql_security_filter().

Referenced by display().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: