3 * Copyright 2011, Sabri LABBENE - Institut Télécom
6 * This file is part of FusionForge.
8 * FusionForge is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * Show user toolbar menu which contains "My Personal Page", "Account Maintenance"
26 * and so on ... + the link to this user plugin
28 * @param array $params
30 function globaldashboard_header($params) {
31 site_user_header($params);
35 * Show horizontal toolbar for Global Dashboard plugin section
38 function globaldashboard_toolbar() {
39 $user = session_get_user();
40 $pluginname = getStringFromRequest('pluginname');
41 echo '<p><ul class="widget_toolbar">';
42 echo '<li>' . util_make_link ('/plugins/globaldashboard/admin/manage_accounts.php?type=user&id='. $user->getID().'&pluginname='.$pluginname,_('Manage Remote Accounts')).'</li>';
43 echo '<li>' . util_make_link ('/plugins/globaldashboard/help.php?type=user&id='. $user->getID().'&pluginname='.$pluginname, _('Help')).'</li>';
49 * Display the welcome message on the plugin index page
50 * and a few instrunctions to get started with it.
52 function globaldashboard_body() {
53 echo '<p> Put here some welcome message that invites user to go to manage accounts'.
54 ' section and configure some remote accounts and then activate the plugins widgets'.
55 ' in his /my/ page </p>';