szczyglis83@gmail.com GitHUB: https://github.com/phpos/ File version: 1.0.0, 2013.10.08 ********************************** */ if (!defined('PHPOS')) { die; } if (APP_ACTION == 'workgroup') { $address_icon = ICONS . 'server/workgroup.png'; if ($my_app->get_param('workgroup_id') != 0) { $group = new phpos_groups(); $group_id = $my_app->get_param('workgroup_id'); $group->set_id($group_id); if ($group->group_exists() && $group->im_in_group()) { $group->get_group(); $count_users = $group->count_users(); $records = $group->get_users_in_group(); $title = '<img src="' . ICONS . 'server/workgroup.png' . '" style="width:30px; display:inline-block; vertical-align:middle" /> <span style="color:black">' . txt('workgroup') . ':</span> ' . $group->get_title(); $html['icons'] .= $layout->area_start($title); $html['icons'] .= $layout->txtdesc(txt('shared_folders_serv_desc')); if ($count_users != 0) { foreach ($records as $row) { $action_open = link_action('shared', 'workgroup_id:' . $group_id . ',workgroup_user_id:' . $row['id_user'] . ',fs:local_files'); $contextMenu_shared = array('open::' . txt('open') . '::' . $action_open . '::folder_open'); $apiWindow->setContextMenu($contextMenu_shared); $js .= $apiWindow->contextMenuRender('groups_shared_list_' . $row['id_user'] . WIN_ID, 'img'); $apiWindow->resetContextMenu(); $tmp_usr = new phpos_users(); $tmp_usr->set_id_user($row['id_user']);