}
                 $html['icons'] .= '<div id="groups_shared_list_' . $row['id_user'] . WIN_ID . '" class="phpos_server_icon" title="<b>' . $group->get_title() . '</b> / ' . $user_info['user_login'] . '"><a href="javascript:void(0);" ondblclick="' . $action_open . '"><img src="' . ICONS . 'accounts/user-icon.png" /></a><p><b>' . $user_info['user_login'] . '</b><br />' . $user_info['user_email'] . '<br /><span class="desc">' . $owner . '</span></p></div>';
             }
         }
     } else {
         $html['icons'] .= txt('group_no_users');
     }
     $html['icons'] .= $layout->area_end();
     // right items
     $html['right_items_title'] = txt('explorer_right_groups');
     $html['right_items_desc'] = txt('explorer_right_groups_desc');
     $html['right_items_img'] = 'workgroup.png';
     //$group->get_group();
     $users_in_group = $group->get_users_in_group();
     $groups = new phpos_groups();
     $groups_records = $groups->get_my_groups();
     $k = count($users_in_group);
     if ($k != 0) {
         foreach ($groups_records as $group_row) {
             $right_item['name'] = $group_row['title'];
             $right_item['onclick'] = link_action('workgroup', 'shared_id:0,workgroup_id:' . $group_row['id'] . ',fs:ftp');
             $right_item['icon'] = 'workgroup.png';
             $right_item['marked'] = false;
             if ($shared_id_user == $grp_user['id_user']) {
                 $right_item['marked'] = true;
             }
             $explorer_right_items[] = $right_item;
         }
     }
     /* ================================================== */
 } else {
Beispiel #2
0
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
if (!defined('PHPOS_SECTION_ACCESS')) {
    die;
}
echo helper_result('delete_group');
echo $layout->txtdesc(txt('dsc_cp_groups'));
echo $layout->column('33%');
echo $layout->subtitle(txt('groups_my'), ICONS . 'workgroups.png');
echo $layout->txtdesc(txt('groups_my_desc'));
$groups = new phpos_groups();
$group_ids = $groups->get_my_groups();
$c = count($group_ids);
echo $layout->tbl_start();
$layout->td_classes(array('', '', 'tbl_grey'));
if ($c != 0) {
    echo $layout->head(array('<img src="' . ICONS . 'workgroups.png" />' => '20%', txt('name') => '40%', txt('owner') => '40%'));
    for ($i = 0; $i < $c; $i++) {
        $g = new phpos_groups();
        $g->set_id($group_ids[$i]['id']);
        $g->get_group();
        $usr_count = $g->count_users();
        $u = new phpos_users();
        $u->set_id_user($group_ids[$i]['id_owner']);
        $u->get_user_by_id();
        echo $layout->row(array($usr_count, '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'group_users', 'group_id' => $g->get_id())) . '">' . $g->get_title() . '</a>', $u->get_user_login()), $g->get_desc());
    }