".__('Visual console')." > ".__('Summary').""; $layouts = get_db_all_rows_in_table ('tlayout','name'); if ($layouts === false) $layouts = array (); $table->width = '500px'; $table->data = array (); $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Group'); $table->head[2] = __('Elements'); $table->align = array (); $table->align[2] = 'center'; foreach ($layouts as $layout) { if (!give_acl ($config["id_user"], $layout["id_group"], "AR")) { continue; } $data = array (); $data[0] = ''.$layout['name'].''; $data[1] = ' '; $data[1] .= dame_nombre_grupo ($layout["id_group"]); $data[2] = get_db_value ('COUNT(*)', 'tlayout_data', 'id_layout', $layout['id']); array_push ($table->data, $data); } if (!empty ($table->data)) { print_table ($table); } else { echo '
'.__('No layouts found').'
'; } unset ($table); ?>