# show available widgets require dirname(__FILE__) . '../../../functions/functions.php'; # Classes $Database = new Database_PDO(); $User = new User($Database); $Tools = new Tools($Database); $Result = new Result(); # user must be authenticated $User->check_user_session(false); # user widgets form database $uwidgets = explode(";", $User->user->widgets); //selected $uwidgets = array_filter((array) $uwidgets); # fetch all widgets $widgets = $Tools->fetch_widgets($User->is_admin(false), false); $widgets = (array) $widgets; ?> <!-- header --> <div class="pHeader"><?php print _('Add new widget to dashboard'); ?> </div> <!-- content --> <div class="pContent"> <?php print "<ul id='sortablePopup' class='sortable'>"; # print widghets that are not yet selected $m = 0;
# show available widgets require dirname(__FILE__) . '../../../functions/functions.php'; # Classes $Database = new Database_PDO(); $User = new User($Database); $Tools = new Tools($Database); $Result = new Result(); # user must be authenticated $User->check_user_session(false); # user widgets form database $uwidgets = explode(";", $User->user->widgets); //selected $uwidgets = array_filter((array) $uwidgets); # fetch all widgets $widgets = $Tools->fetch_widgets($User->isadmin, false); $widgets = (array) $widgets; ?> <!-- header --> <div class="pHeader"><?php print _('Add new widget to dashboard'); ?> </div> <!-- content --> <div class="pContent"> <?php print "<ul id='sortablePopup' class='sortable'>"; # print widghets that are not yet selected $m = 0;