width = '98%'; $table->data = array (); $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Group'); $table->head[2] = __('Copy'); $table->head[3] = __('Delete'); $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->size = array (); $table->size[1] = '30px'; $table->size[2] = '40px'; $table->size[3] = '40px'; $table->align = array (); $table->align[1] = 'center'; $table->align[2] = 'center'; $table->align[3] = 'center'; $filter = array(); if (!is_user_admin($config['id_user'])) $filter['id_group'] = array_keys(users_get_groups(false, "LM")); $actions = db_get_all_rows_filter ('talert_actions', $filter); if ($actions === false) $actions = array (); $rowPair = true; $iterator = 0; foreach ($actions as $action) { if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else $table->rowclass[$iterator] = 'rowOdd'; $rowPair = !$rowPair; $iterator++; $data = array (); $data[0] = ''. $action['name'].''; $data[1] = ui_print_group_icon ($action["id_group"], true) .' '; $data[2] = '' . html_print_image("images/copy.png", true) . ''; $data[3] = ''. html_print_image("images/cross.png", true) . ''; array_push ($table->data, $data); } if (isset($data)){ html_print_table ($table); } else { echo "