示例#1
0
    } else {
        $table = new HtmlTable('adm_lists_table', $page, $hoverRows, $datatable, $classTable);
    }
}
// initialize array parameters for table and set the first column for the counter
if ($getMode === 'html') {
    // in html mode we group leaders. Therefore we need a special hidden column.
    $columnAlign = array('left', 'left');
    $columnValues = array($gL10n->get('SYS_ABR_NO'), $gL10n->get('INS_GROUPS'));
} else {
    $columnAlign = array('left');
    $columnValues = array($gL10n->get('SYS_ABR_NO'));
}
// headlines for columns
for ($columnNumber = 1; $columnNumber <= $list->countColumns(); ++$columnNumber) {
    $column = $list->getColumnObject($columnNumber);
    // Find name of the field
    if ($column->getValue('lsc_usf_id') > 0) {
        // customs field
        $usf_id = $column->getValue('lsc_usf_id');
        $columnHeader = $gProfileFields->getPropertyById($usf_id, 'usf_name');
        if ($gProfileFields->getPropertyById($usf_id, 'usf_type') === 'CHECKBOX' || $gProfileFields->getPropertyById($usf_id, 'usf_name_intern') === 'GENDER') {
            $columnAlign[] = 'center';
        } elseif ($gProfileFields->getPropertyById($usf_id, 'usf_type') === 'NUMBER' || $gProfileFields->getPropertyById($usf_id, 'usf_type') === 'DECIMAL') {
            $columnAlign[] = 'right';
        } else {
            $columnAlign[] = 'left';
        }
    } else {
        $usf_id = 0;
        $columnHeader = $arr_col_name[$column->getValue('lsc_special_field')];
示例#2
0
        if (isset($formValues['column' . $i])) {
            ++$defaultColumnRows;
        } else {
            $i = -1;
        }
    }
} else {
    $formValues['sel_select_configuation'] = $getListId;
    $formValues['cbx_global_configuration'] = $list->getValue('lst_global');
    $formValues['sel_roles_ids'] = $getRoleId;
    $formValues['sel_show_members'] = $getShowMembers;
    // if a saved configuration was loaded then add columns to formValues array
    if ($getListId > 0) {
        $defaultColumnRows = $list->countColumns();
        for ($number = 1; $number <= $list->countColumns(); ++$number) {
            $column = $list->getColumnObject($number);
            if ($column->getValue('lsc_usf_id') > 0) {
                $column_content = $column->getValue('lsc_usf_id');
            } else {
                $column_content = $column->getValue('lsc_special_field');
            }
            $formValues['column' . $number] = $column_content;
            $formValues['sort' . $number] = $column->getValue('lsc_sort');
            $formValues['condition' . $number] = $column->getValue('lsc_filter');
        }
    }
}
// create html page object
$page = new HtmlPage($headline);
$page->enableModal();
$javascriptCode = '