[2] | 1 | <?php |
---|
| 2 | /***********************************************************************************\ |
---|
| 3 | * Expresso Administração * |
---|
| 4 | * by Joao Alfredo Knopik Junior (joao.alfredo@gmail.com, jakjr@celepar.pr.gov.br) * |
---|
| 5 | * ----------------------------------------------------------------------------------* |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \***********************************************************************************/ |
---|
| 11 | |
---|
| 12 | class uigroups |
---|
| 13 | { |
---|
| 14 | var $public_functions = array |
---|
| 15 | ( |
---|
[64] | 16 | 'list_groups' => True, |
---|
| 17 | 'add_groups' => True, |
---|
| 18 | 'edit_groups' => True, |
---|
| 19 | 'css' => True |
---|
[2] | 20 | ); |
---|
| 21 | |
---|
| 22 | var $nextmatchs; |
---|
| 23 | var $group; |
---|
| 24 | var $functions; |
---|
[33] | 25 | var $ldap_functions; |
---|
| 26 | var $db_functions; |
---|
[2] | 27 | |
---|
| 28 | function uigroups() |
---|
| 29 | { |
---|
| 30 | $this->group = CreateObject('expressoAdmin1_2.group'); |
---|
| 31 | $this->nextmatchs = createobject('phpgwapi.nextmatchs'); |
---|
| 32 | $this->functions = CreateObject('expressoAdmin1_2.functions'); |
---|
[33] | 33 | $this->ldap_functions = CreateObject('expressoAdmin1_2.ldap_functions'); |
---|
| 34 | $this->db_functions = CreateObject('expressoAdmin1_2.db_functions'); |
---|
[2] | 35 | |
---|
| 36 | $c = CreateObject('phpgwapi.config','expressoAdmin1_2'); |
---|
| 37 | $c->read_repository(); |
---|
| 38 | $this->current_config = $c->config_data; |
---|
| 39 | |
---|
| 40 | if(!@is_object($GLOBALS['phpgw']->js)) |
---|
| 41 | { |
---|
| 42 | $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); |
---|
| 43 | } |
---|
| 44 | $GLOBALS['phpgw']->js->validate_file('jscode','connector','expressoAdmin1_2');#diretorio, arquivo.js, aplicacao |
---|
| 45 | $GLOBALS['phpgw']->js->validate_file('jscode','expressoadmin','expressoAdmin1_2'); |
---|
| 46 | $GLOBALS['phpgw']->js->validate_file('jscode','groups','expressoAdmin1_2'); |
---|
[2549] | 47 | $GLOBALS['phpgw_info']['flags']['java_script_thirst'] = "<script>var expressoAdmin_controller = '{$GLOBALS[ 'phpgw' ] -> link( '/expressoAdmin1_2/controller.php' )}?action=';</script>"; |
---|
[2] | 48 | } |
---|
| 49 | |
---|
| 50 | function list_groups() |
---|
| 51 | { |
---|
| 52 | $account_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; |
---|
[64] | 53 | $manager_acl = $this->functions->read_acl($account_lid); |
---|
| 54 | $raw_context = $acl['raw_context']; |
---|
| 55 | $contexts = $manager_acl['contexts']; |
---|
| 56 | foreach ($manager_acl['contexts_display'] as $index=>$tmp_context) |
---|
| 57 | { |
---|
| 58 | $context_display .= '<br>'.$tmp_context; |
---|
| 59 | } |
---|
[2] | 60 | |
---|
| 61 | // Verifica se tem acesso a este modulo |
---|
| 62 | if (!$this->functions->check_acl($account_lid,'list_groups')) |
---|
| 63 | { |
---|
| 64 | $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/expressoAdmin1_2/inc/access_denied.php')); |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | if(isset($_POST['query'])) |
---|
| 68 | { |
---|
| 69 | // limit query to limit characters |
---|
| 70 | if(eregi('^[a-z_0-9_-].+$',$_POST['query'])) |
---|
| 71 | $GLOBALS['query'] = $_POST['query']; |
---|
| 72 | } |
---|
| 73 | |
---|
[2419] | 74 | //unset($GLOBALS['phpgw_info']['flags']['noheader']); |
---|
| 75 | //unset($GLOBALS['phpgw_info']['flags']['nonavbar']); |
---|
[2] | 76 | |
---|
| 77 | $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '.lang('User groups'); |
---|
[2419] | 78 | //$GLOBALS['phpgw']->common->phpgw_header(); |
---|
[2] | 79 | |
---|
| 80 | $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 81 | $p->set_file(array('groups' => 'groups.tpl')); |
---|
| 82 | $p->set_block('groups','list','list'); |
---|
| 83 | $p->set_block('groups','row','row'); |
---|
| 84 | $p->set_block('groups','row_empty','row_empty'); |
---|
| 85 | |
---|
| 86 | // Seta as variaveis padroes. |
---|
| 87 | $var = Array( |
---|
| 88 | 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], |
---|
| 89 | 'back_url' => $GLOBALS['phpgw']->link('/expressoAdmin1_2/index.php'), |
---|
| 90 | 'add_action' => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uigroups.add_groups'), |
---|
| 91 | 'add_group_disabled' => $this->functions->check_acl($account_lid,'add_groups') ? '' : 'disabled', |
---|
[2459] | 92 | 'context_display' => $context_display, |
---|
| 93 | 'accounts_url' => $GLOBALS[ 'phpgw' ] -> link( '/', 'menuaction=expressoAdmin1_2.uigroups.list_groups' ) |
---|
[2] | 94 | ); |
---|
| 95 | $p->set_var($var); |
---|
[414] | 96 | $p->set_var($this->functions->make_dinamic_lang($p, 'list')); |
---|
[2] | 97 | |
---|
| 98 | // Save query |
---|
| 99 | $p->set_var('query', $GLOBALS['query']); |
---|
| 100 | |
---|
| 101 | //Admin make a search |
---|
| 102 | if ($GLOBALS['query'] != '') |
---|
| 103 | { |
---|
[64] | 104 | $groups_info = $this->functions->get_list('groups', $GLOBALS['query'], $contexts); |
---|
[2] | 105 | } |
---|
[309] | 106 | $total = count($groups_info); |
---|
[2] | 107 | |
---|
[309] | 108 | if (!count($total) && $GLOBALS['query'] != '') |
---|
[2] | 109 | { |
---|
| 110 | $p->set_var('message',lang('No matches found')); |
---|
| 111 | } |
---|
[309] | 112 | else if ($total) |
---|
[2] | 113 | { |
---|
| 114 | if ($this->functions->check_acl($account_lid,'edit_groups')) |
---|
| 115 | { |
---|
| 116 | $can_edit = True; |
---|
| 117 | } |
---|
| 118 | if ($this->functions->check_acl($account_lid,'delete_groups')) |
---|
| 119 | { |
---|
| 120 | $can_delete = True; |
---|
| 121 | } |
---|
| 122 | |
---|
| 123 | foreach($groups_info as $group) |
---|
| 124 | { |
---|
| 125 | $tr_color = $this->nextmatchs->alternate_row_color($tr_color); |
---|
| 126 | $var = Array( |
---|
| 127 | 'tr_color' => $tr_color, |
---|
| 128 | 'row_cn' => $group['cn'], |
---|
| 129 | 'row_description' => $group['description'] |
---|
| 130 | ); |
---|
| 131 | $p->set_var($var); |
---|
| 132 | |
---|
| 133 | if ($can_edit) |
---|
| 134 | { |
---|
| 135 | $p->set_var('edit_link',$this->row_action('edit','groups',$group['gidnumber'],$group['cn'])); |
---|
| 136 | } |
---|
| 137 | else |
---|
| 138 | { |
---|
| 139 | $p->set_var('edit_link',' '); |
---|
| 140 | } |
---|
| 141 | |
---|
| 142 | if ($can_delete) |
---|
| 143 | { |
---|
[493] | 144 | $p->set_var('delete_link',"<a href='#' onClick='javascript:delete_group(\"".$group['cn']."\",\"".$group['gidnumber']."\");'>".lang('to delete')."</a>"); |
---|
[2] | 145 | } |
---|
| 146 | else |
---|
| 147 | { |
---|
| 148 | $p->set_var('delete_link',' '); |
---|
| 149 | } |
---|
| 150 | |
---|
| 151 | $p->fp('rows','row',True); |
---|
| 152 | } |
---|
| 153 | } |
---|
| 154 | $p->parse('rows','row_empty',True); |
---|
[309] | 155 | $p->set_var($var); |
---|
[2] | 156 | |
---|
[1847] | 157 | if (! $GLOBALS['phpgw']->acl->check('run',4,'admin')) |
---|
[2] | 158 | { |
---|
| 159 | $p->set_var('input_add','<input type="submit" value="' . lang('Add') . '">'); |
---|
| 160 | } |
---|
[1847] | 161 | if (! $GLOBALS['phpgw']->acl->check('run',2,'admin')) |
---|
[2] | 162 | { |
---|
| 163 | $p->set_var('input_search',lang('Search') . ' <input name="query" value="'.htmlspecialchars(stripslashes($GLOBALS['query'])).'">'); |
---|
| 164 | } |
---|
| 165 | $p->pfp('out','list'); |
---|
| 166 | } |
---|
| 167 | |
---|
| 168 | function add_groups() |
---|
| 169 | { |
---|
| 170 | $GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); |
---|
[33] | 171 | if ($this->current_config['expressoAdmin_samba_support'] == 'true') |
---|
| 172 | $GLOBALS['phpgw']->js->set_onload('get_available_sambadomains(document.forms[0].context.value, \'create_group\');'); |
---|
| 173 | |
---|
[64] | 174 | $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; |
---|
| 175 | $manager_acl = $this->functions->read_acl($manager_lid); |
---|
| 176 | $manager_contexts = $manager_acl['contexts']; |
---|
[2] | 177 | |
---|
| 178 | // Verifica se tem acesso a este modulo |
---|
[64] | 179 | if (!$this->functions->check_acl($manager_lid,'add_groups')) |
---|
[2] | 180 | { |
---|
| 181 | $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/expressoAdmin1_2/inc/access_denied.php')); |
---|
| 182 | } |
---|
| 183 | |
---|
[2419] | 184 | //unset($GLOBALS['phpgw_info']['flags']['noheader']); |
---|
| 185 | //unset($GLOBALS['phpgw_info']['flags']['nonavbar']); |
---|
[309] | 186 | $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '.lang('Create Group'); |
---|
[2419] | 187 | //$GLOBALS['phpgw']->common->phpgw_header(); |
---|
[2] | 188 | |
---|
| 189 | // Set o template |
---|
| 190 | $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 191 | $p->set_file(Array('create_group' => 'groups_form.tpl')); |
---|
[414] | 192 | $p->set_block('create_group','list','list'); |
---|
[2] | 193 | |
---|
| 194 | // Pega combo das organizações e seleciona um dos setores em caso de um erro na validaçao dos dados. |
---|
[64] | 195 | //$combo_manager_org = $this->functions->get_organizations($manager_context, trim(strtolower($group_info['context']))); |
---|
| 196 | foreach ($manager_contexts as $index=>$context) |
---|
| 197 | $combo_manager_org .= $this->functions->get_organizations($context, trim(strtolower($group_info['context']))); |
---|
[23] | 198 | $combo_all_orgs = $this->functions->get_organizations($GLOBALS['phpgw_info']['server']['ldap_context'], trim(strtolower($group_info['context']))); |
---|
[2] | 199 | |
---|
| 200 | // Chama funcao para criar lista de aplicativos disponiveis. |
---|
[64] | 201 | $apps = $this->functions->make_list_app($manager_lid); |
---|
[2] | 202 | |
---|
[33] | 203 | // Cria combo de dominio samba |
---|
| 204 | if ($this->current_config['expressoAdmin_samba_support'] == 'true') |
---|
| 205 | { |
---|
| 206 | $a_sambadomains = $this->db_functions->get_sambadomains_list(); |
---|
| 207 | $sambadomainname_options = ''; |
---|
| 208 | if (count($a_sambadomains)) |
---|
| 209 | { |
---|
| 210 | foreach ($a_sambadomains as $a_sambadomain) |
---|
| 211 | { |
---|
| 212 | // So mostra os sambaDomainName do contexto do manager |
---|
[64] | 213 | if ($this->ldap_functions->exist_sambadomains($manager_contexts, $a_sambadomain['samba_domain_name'])) |
---|
[33] | 214 | $sambadomainname_options .= "<option value='" . $a_sambadomain['samba_domain_sid'] . "'>" . $a_sambadomain['samba_domain_name'] . "</option>"; |
---|
| 215 | } |
---|
| 216 | } |
---|
| 217 | } |
---|
| 218 | |
---|
[2] | 219 | // Seta variaveis utilizadas pelo tpl. |
---|
| 220 | $var = Array( |
---|
| 221 | 'color_bg1' => "#E8F0F0", |
---|
| 222 | 'color_bg2' => "#D3DCE3", |
---|
| 223 | 'type' => 'create_group', |
---|
| 224 | 'cn' => '', |
---|
| 225 | 'restrictionsOnGroup' => $this->current_config['expressoAdmin_restrictionsOnGroup'], |
---|
[33] | 226 | 'type' => 'create_group', |
---|
[2] | 227 | 'ldap_context' => $GLOBALS['phpgw_info']['server']['ldap_context'], |
---|
[46] | 228 | 'ufn_ldap_context' => ldap_dn2ufn($GLOBALS['phpgw_info']['server']['ldap_context']), |
---|
| 229 | 'concatenateDomain' => $this->current_config['expressoAdmin_concatenateDomain'], |
---|
| 230 | 'defaultDomain' => $this->current_config['expressoAdmin_defaultDomain'], |
---|
[309] | 231 | 'apps' => $apps, |
---|
[33] | 232 | 'use_attrs_samba_checked' => '', |
---|
| 233 | 'disabled_samba' => 'disabled', |
---|
| 234 | 'display_samba_options' => $this->current_config['expressoAdmin_samba_support'] == 'true' ? '' : '"display:none"', |
---|
[64] | 235 | 'disable_email_groups' => $this->functions->check_acl($manager_lid,'edit_email_groups') ? '' : 'disabled', |
---|
[33] | 236 | 'sambadomainname_options' => $sambadomainname_options, |
---|
[2] | 237 | 'back_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uigroups.list_groups'), |
---|
| 238 | 'combo_manager_org' => $combo_manager_org, |
---|
[309] | 239 | 'combo_all_orgs' => $combo_all_orgs |
---|
[2] | 240 | ); |
---|
| 241 | $p->set_var($var); |
---|
[414] | 242 | $p->set_var($this->functions->make_dinamic_lang($p, 'list')); |
---|
[2476] | 243 | |
---|
[2] | 244 | $p->pfp('out','create_group'); |
---|
[2476] | 245 | echo '<script>get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);</script>'; |
---|
| 246 | if ($this->current_config['expressoAdmin_samba_support'] == 'true') |
---|
| 247 | echo '<script>get_available_sambadomains(document.forms[0].context.value, \'create_group\');</script>'; |
---|
[2] | 248 | } |
---|
| 249 | |
---|
| 250 | function edit_groups() |
---|
| 251 | { |
---|
[2476] | 252 | //$GLOBALS['phpgw']->js->set_onload('get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);'); |
---|
[64] | 253 | |
---|
| 254 | $manager_lid = $GLOBALS['phpgw']->accounts->data['account_lid']; |
---|
| 255 | $manager_acl = $this->functions->read_acl($manager_lid); |
---|
| 256 | $manager_contexts = $manager_acl['contexts']; |
---|
| 257 | |
---|
[2] | 258 | // Verifica se tem acesso a este modulo |
---|
[64] | 259 | if (!$this->functions->check_acl($manager_lid,'edit_groups')) |
---|
[2] | 260 | { |
---|
| 261 | $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/expressoAdmin1_2/inc/access_denied.php')); |
---|
| 262 | } |
---|
| 263 | |
---|
| 264 | // GET all infomations about the group. |
---|
[64] | 265 | $group_info = $this->group->get_info($_GET['gidnumber']); |
---|
[2] | 266 | |
---|
[2419] | 267 | //unset($GLOBALS['phpgw_info']['flags']['noheader']); |
---|
| 268 | //unset($GLOBALS['phpgw_info']['flags']['nonavbar']); |
---|
[309] | 269 | $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '.lang('Edit Group'); |
---|
[2419] | 270 | //$GLOBALS['phpgw']->common->phpgw_header(); |
---|
[2] | 271 | |
---|
| 272 | // Set o template |
---|
| 273 | $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 274 | $p->set_file(Array('create_group' => 'groups_form.tpl')); |
---|
[414] | 275 | $p->set_block('create_group','list','list'); |
---|
[2] | 276 | |
---|
[180] | 277 | // Obtem combo das organizações e seleciona a org do grupo. |
---|
[64] | 278 | foreach ($manager_contexts as $index=>$context) |
---|
| 279 | $combo_manager_org .= $this->functions->get_organizations($context, trim(strtolower($group_info['context']))); |
---|
[23] | 280 | $combo_all_orgs = $this->functions->get_organizations($GLOBALS['phpgw_info']['server']['ldap_context'], trim(strtolower($group_info['context']))); |
---|
[2] | 281 | |
---|
| 282 | // Usuarios do grupo. |
---|
[24] | 283 | $user_count = 0; |
---|
[2] | 284 | if (count($group_info['memberuid_info']) > 0) |
---|
| 285 | { |
---|
[24] | 286 | foreach ($group_info['memberuid_info'] as $uid=>$user_data) |
---|
[2] | 287 | { |
---|
[283] | 288 | if ($user_data['uidnumber']) |
---|
| 289 | { |
---|
[309] | 290 | $array_users[$user_data['uidnumber']] = $user_data['cn']; |
---|
| 291 | $array_users_uid[$user_data['uidnumber']] = $uid; |
---|
| 292 | $array_users_type[$user_data['uidnumber']] = $user_data['type']; |
---|
| 293 | } |
---|
[283] | 294 | else |
---|
| 295 | { |
---|
| 296 | $array_users[$uid] = $user_data['cn']; |
---|
| 297 | } |
---|
| 298 | } |
---|
[2] | 299 | natcasesort($array_users); |
---|
[283] | 300 | |
---|
[2] | 301 | foreach ($array_users as $uidnumber=>$cn) |
---|
| 302 | { |
---|
[24] | 303 | $user_count++; |
---|
| 304 | if ($array_users_type[$uidnumber] == 'u') |
---|
| 305 | { |
---|
| 306 | $users .= "<option value=" . $uidnumber . ">" . $cn . " [" . $array_users_uid[$uidnumber] . "]</option>"; |
---|
| 307 | } |
---|
| 308 | else |
---|
| 309 | { |
---|
| 310 | $unknow .= "<option value=-1>" . $cn . " [Corrigir manualmente]</option>"; |
---|
| 311 | } |
---|
[2] | 312 | } |
---|
[24] | 313 | |
---|
[493] | 314 | $opt_tmp_users = '<option value="-1" disabled>----------------------------- '.lang('users').' ---------------------------- </option>'."\n"; |
---|
| 315 | $opt_tmp_unknow = '<option value="-1" disabled>------------ '.lang('users did not find on DB, only on ldap').' ------------</option>'."\n"; |
---|
[24] | 316 | $ea_select_usersInGroup = $unknow != '' ? $opt_tmp_unknow . $unknow . $opt_tmp_users . $users : $opt_tmp_users . $users; |
---|
[2] | 317 | } |
---|
| 318 | |
---|
| 319 | // Chama funcao para criar lista de aplicativos disponiveis. |
---|
[64] | 320 | $apps = $this->functions->make_list_app($manager_lid, $group_info['apps']); |
---|
[2] | 321 | |
---|
[33] | 322 | // Cria combo de dominios do samba |
---|
| 323 | if ($this->current_config['expressoAdmin_samba_support'] == 'true') |
---|
| 324 | { |
---|
| 325 | $a_sambadomains = $this->db_functions->get_sambadomains_list(); |
---|
| 326 | $sambadomainname_options = ''; |
---|
| 327 | if (count($a_sambadomains)) |
---|
| 328 | { |
---|
| 329 | foreach ($a_sambadomains as $a_sambadomain) |
---|
| 330 | { |
---|
| 331 | if ($a_sambadomain['samba_domain_sid'] == $group_info['sambasid']) |
---|
| 332 | $sambadomainname_options .= "<option value='" . $a_sambadomain['samba_domain_sid'] . "' SELECTED>" . $a_sambadomain['samba_domain_name'] . "</option>"; |
---|
| 333 | else |
---|
| 334 | $sambadomainname_options .= "<option value='" . $a_sambadomain['samba_domain_sid'] . "'>" . $a_sambadomain['samba_domain_name'] . "</option>"; |
---|
| 335 | } |
---|
| 336 | } |
---|
| 337 | } |
---|
| 338 | |
---|
[2] | 339 | // Seta variaveis utilizadas pelo tpl. |
---|
| 340 | $var = Array( |
---|
[309] | 341 | 'color_bg1' => "#E8F0F0", |
---|
| 342 | 'color_bg2' => "#D3DCE3", |
---|
| 343 | 'type' => 'edit_group', |
---|
| 344 | 'ldap_context' => $GLOBALS['phpgw_info']['server']['ldap_context'], |
---|
[2] | 345 | 'gidnumber' => $group_info['gidnumber'], |
---|
| 346 | 'cn' => $group_info['cn'], |
---|
[24] | 347 | 'user_count' => $user_count, |
---|
[46] | 348 | 'email' => $group_info['email'], |
---|
[2] | 349 | 'description' => $group_info['description'], |
---|
| 350 | 'apps' => $apps, |
---|
| 351 | 'use_attrs_samba_checked' => $group_info['sambaGroup'] ? 'CHECKED' : '', |
---|
[33] | 352 | 'disabled_samba' => $group_info['sambaGroup'] ? '' : 'disabled', |
---|
[64] | 353 | 'disable_email_groups' => $this->functions->check_acl($manager_lid,'edit_email_groups') ? '' : 'disabled', |
---|
[33] | 354 | 'sambadomainname_options' => $sambadomainname_options, |
---|
[23] | 355 | 'phpgwaccountvisible_checked' => $group_info['phpgwaccountvisible'] == '-1' ? 'CHECKED' : '', |
---|
[2] | 356 | 'back_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uigroups.list_groups'), |
---|
| 357 | 'combo_manager_org' => $combo_manager_org, |
---|
| 358 | 'combo_all_orgs' => $combo_all_orgs, |
---|
[309] | 359 | 'ea_select_usersInGroup' => $ea_select_usersInGroup |
---|
[2] | 360 | ); |
---|
| 361 | $p->set_var($var); |
---|
[414] | 362 | $p->set_var($this->functions->make_dinamic_lang($p, 'list')); |
---|
[2] | 363 | $p->pfp('out','create_group'); |
---|
[2549] | 364 | $GLOBALS['phpgw_info']['flags']['java_script'] = '<script>get_available_users(document.forms[0].org_context.value, document.forms[0].ea_check_allUsers.checked);</script>'; |
---|
[2] | 365 | } |
---|
| 366 | |
---|
| 367 | function row_action($action,$type,$gidnumber,$group_name) |
---|
| 368 | { |
---|
| 369 | return '<a href="'.$GLOBALS['phpgw']->link('/index.php',Array( |
---|
| 370 | 'menuaction' => 'expressoAdmin1_2.uigroups.'.$action.'_'.$type, |
---|
| 371 | 'gidnumber' => $gidnumber, |
---|
| 372 | 'group_name' => $group_name |
---|
| 373 | )).'"> '.lang($action).' </a>'; |
---|
| 374 | } |
---|
| 375 | |
---|
| 376 | function css() |
---|
| 377 | { |
---|
| 378 | $appCSS = ''; |
---|
| 379 | return $appCSS; |
---|
| 380 | } |
---|
| 381 | |
---|
| 382 | } |
---|
| 383 | ?> |
---|