noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
last_event.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright Author Dany De Bontridder danydb@aevalys.eu 10/08/24
20/*!
21 * \file
22 * \brief display last follow-up
23 */
24namespace Noalyss\Widget;
25
26use HtmlInput;
27use Dossier;
28/**
29 * @class Last_Event
30 * @brief display last_followup
31 */
32class Last_Event extends Widget
33{
34 /**
35 * @brief display 10 last action
36 * @return void
37 * @throws \Exception
38 */
39 function display()
40 {
41 global $cn;
42 $this->open_div();
43 $this->title(_("Dernières actions du suivi"));
44
45 $gestion=new \Follow_Up($cn);
46 $array=$gestion->get_last(MAX_ACTION_SHOW);
47 $len_array=count($array);
48 include "last_event-display.php";
49 $this->close_div();
50 }
51
52}
_("actif, passif,charge,...")
display last_followup
display()
display 10 last action
Main class for widget.
Definition widget.php:32
open_div()
output the DIV HTML with class and id for the widget
Definition widget.php:157
$anc_filter title
const MAX_ACTION_SHOW
Definition constant.php:148