noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
dashboard.php
Go to the documentation of this file.
1
2<?php
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PhpCompta is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2024) Author Dany De Bontridder <dany@alchimerys.be>
21/**
22 * @file
23 * @brief : display all available widgets for the connected user
24 */
25global $g_user,$cn;
26use \Noalyss\Widget\Widget;
27
29
30
32?>
33<div id="dashboard_div_id">
34
35<?php
36for ($i=0;$i < $nb ;$i++):
37 $widget=Widget::build_user_widget($aWidget[$i]['uw_id'],$aWidget[$i]['wd_code']);
38 Widget::ajax_display($widget);
39
41 ?>
42</div>
43
global $g_user
if no group available , then stop
static get_enabled_widget()
returns an array of widget for the connected user, ordered
Definition widget.php:115
$aWidget
Definition dashboard.php:28