width = "98%"; $table->data = array (); $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Group'); $table->head[2] = __('Elements'); $table->align = array (); $table->align[1] = 'center'; $table->align[2] = 'center'; $rowPair = true; $iterator = 0; foreach ($layouts as $layout) { if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else $table->rowclass[$iterator] = 'rowOdd'; $rowPair = !$rowPair; $iterator++; if (!check_acl ($config["id_user"], $layout["id_group"], "AR")) { continue; } $data = array (); $data[0] = ''.$layout['name'].' '; $data[1] = ui_print_group_icon ($layout["id_group"], true); $data[2] = db_get_value ('COUNT(*)', 'tlayout_data', 'id_layout', $layout['id']); array_push ($table->data, $data); } if (!empty ($table->data)) { html_print_table ($table); } else { echo '
'.__('No layouts found').'
'; } unset ($table); ?>