Changeset 3949
- Timestamp:
- 04/01/11 15:43:54 (12 years ago)
- Location:
- branches/2.2/reports/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/reports/inc/class.functions.inc.php
r3666 r3949 934 934 return $result; 935 935 } 936 937 function get_next_id() 938 { 939 // Busco o ID dos accounts 940 $query_accounts = "SELECT id FROM phpgw_nextid WHERE appname = 'accounts'"; 941 $GLOBALS['phpgw']->db->query($query_accounts); 942 while($GLOBALS['phpgw']->db->next_record()) 943 { 944 $result_accounts[] = $GLOBALS['phpgw']->db->row(); 945 } 946 $accounts_id = $result_accounts[0]['id']; 947 948 // Busco o ID dos groups 949 $query_groups = "SELECT id FROM phpgw_nextid WHERE appname = 'groups'"; 950 $GLOBALS['phpgw']->db->query($query_groups); 951 while($GLOBALS['phpgw']->db->next_record()) 952 { 953 $result_groups[] = $GLOBALS['phpgw']->db->row(); 954 } 955 $groups_id = $result_groups[0]['id']; 956 957 //Retorna o maior dos ID's 958 if ($accounts_id >= $groups_id) 959 return $accounts_id; 960 else 961 return $groups_id; 962 } 963 936 964 937 function make_list_app($account_lid, $user_applications='', $disabled='') 965 938 { … … 1054 1027 } 1055 1028 1056 function getReturnExecuteForm(){1057 $response = $_SESSION['response'];1058 $_SESSION['response'] = null;1059 return $response;1060 }1061 1062 1029 function lang($key) 1063 1030 { -
branches/2.2/reports/inc/class.uireports_cota.inc.php
r3666 r3949 73 73 } 74 74 75 // Verifica se tem acesso a este modulo76 if (!$this->functions->check_acl($account_lid,'list_sectors'))77 {78 $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/reports/inc/access_denied.php'));79 }80 81 75 unset($GLOBALS['phpgw_info']['flags']['noheader']); 82 76 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); … … 110 104 $varorganizacao_nome = trim(strtoupper(ereg_replace("DC=","",$varorganizacao_nome))); 111 105 $user_logon = $GLOBALS['phpgw_info']['user'][account_lid]; 112 113 // carrega os grupos no listbox114 /************* DESCOMENTE ESTE PARTE DO CODIGO PARA LISTAR TODOS OS GRUPOS, SEM LISTAR POR USUSARIO LOGADO ***********115 $sectors_info = $this->functions->get_groups_list($contexts,"*");116 $sectors_info_dn = $this->functions->get_groups_list_dn($contexts,"*");117 /* ************************************* FIM *********************************************************************** */118 106 119 107 $sectors_info = $this->functions->get_list_context_logon($user_logon,$contexts,0);
Note: See TracChangeset
for help on using the changeset viewer.