noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
agenda.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * PhpCompta 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 * PhpCompta 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 PhpCompta; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright (2024) Author Dany De Bontridder <dany@alchimerys.be>
20/**
21 * @file
22 * @brief : widget agenda,
23 * @note this widget is included in Noalyss Core and a part of the code (javascript + css + ajax)
24 * are still included in NOALYSS Code
25 */
27
28/*!
29 * \class Agenda
30 * \brief : widget agenda,
31 * \note this widget is included in Noalyss Core and a part of the code (javascript + css + ajax)
32 * are still included in NOALYSS Code, this code should move here and will be part of a "cleansing code" process
33*/
34class Agenda extends Widget
35{
36
37 function display()
38 {
39 global $g_user;
40 /* others report */
41 $cal=new \Calendar();
42 $cal->default_periode=$g_user->get_periode();
43
44 $obj=sprintf("{gDossier:%d,invalue:'%s',outdiv:'%s','distype':'%s'}",
45 \Dossier::id(),'per','calendar_zoom_div','cal');
46
47 $this->open_div();
48 echo \HtmlInput::title_box(_('Calendrier'),'cal_div','zoom',"calendar_zoom($obj)",'n',raw:'&#x1F4C5;');
49 echo $cal->display('short',0);
50 $this->close_div();
51 }
52
53
54
55}
global $g_user
if no group available , then stop
if($notitle==0) $cal
_("actif, passif,charge,...")
: widget agenda,
Definition agenda.php:35
display()
display the content for the current connected user of the widget with the parameter
Definition agenda.php:37
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