Пример #1
0
 // show icon with assign role right if leader has this right
 if ($role->getValue('rol_leader_rights') == ROLE_LEADER_MEMBERS_ASSIGN || $role->getValue('rol_leader_rights') == ROLE_LEADER_MEMBERS_ASSIGN_EDIT) {
     $htmlLeaderColumn .= '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/roles.png"
         alt="' . $gL10n->get('ROL_LEADER_ASSIGN_MEMBERS') . '" title="' . $gL10n->get('ROL_LEADER_ASSIGN_MEMBERS') . '" />';
 }
 // create array with all column heading values
 $columnHeading = array('<img class="admidio-icon-info"
         src="' . THEME_PATH . '/icons/profile.png" alt="' . $gL10n->get('SYS_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname')) . '"
         title="' . $gL10n->get('SYS_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname')) . '" />', $gL10n->get('SYS_STATUS'), $gL10n->get('SYS_MEMBER'), $gL10n->get('SYS_LASTNAME'), $gL10n->get('SYS_FIRSTNAME'), '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/map.png"
         alt="' . $gL10n->get('SYS_ADDRESS') . '" title="' . $gL10n->get('SYS_ADDRESS') . '" />', $gL10n->get('SYS_ADDRESS'), $gL10n->get('SYS_BIRTHDAY'), $htmlLeaderColumn);
 $table->setColumnAlignByArray(array('left', 'left', 'center', 'left', 'left', 'left', 'left', 'left', 'center'));
 $table->setDatatablesOrderColumns(array(4, 5));
 $table->addRowHeadingByArray($columnHeading);
 $table->disableDatatablesColumnsSort(array(3, 9));
 // set alternative order column for member status icons
 $table->setDatatablesAlternativOrderColumns(1, 2);
 $table->setDatatablesColumnsHide(2);
 // set alternative order column for address icons
 $table->setDatatablesAlternativOrderColumns(6, 7);
 $table->setDatatablesColumnsHide(7);
 // show rows with all organization users
 while ($user = $gDb->fetch_array($resultUser)) {
     $addressText = ' ';
     $htmlAddress = '&nbsp;';
     $htmlBirthday = '&nbsp;';
     if ($user['member_this_orga'] > 0) {
         $memberOfThisOrganization = '1';
     } else {
         $memberOfThisOrganization = '0';
     }
     // create string with user address
Пример #2
0
    // show link to system preferences of weblinks
    $membersAdministrationMenu->addItem('menu_item_preferences_links', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=user_management', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right', 'menu_item_extras');
}
//Create table object
$membersTable = new HtmlTable('tbl_members', $page, true, true, 'table table-condensed');
// create array with all column heading values
$columnHeading = array($gL10n->get('SYS_ABR_NO'), '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/profile.png"
        alt="' . $gL10n->get('SYS_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname')) . '"
        title="' . $gL10n->get('SYS_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname')) . '" />', $gL10n->get('SYS_STATUS'), $gL10n->get('SYS_NAME'), $gL10n->get('SYS_USER'), '<img class="admidio-icon-info" alt="' . $gL10n->get('SYS_GENDER') . '" title="" src="' . THEME_PATH . '/icons/gender.png" data-original-title="' . $gL10n->get('SYS_GENDER') . '">', $gL10n->get('SYS_GENDER'), $gL10n->get('SYS_BIRTHDAY'), $gL10n->get('MEM_UPDATED_ON'), $gL10n->get('SYS_FEATURES'));
$membersTable->setColumnAlignByArray(array('left', 'left', 'left', 'left', 'left', 'left', 'left', 'left', 'left', 'right'));
$membersTable->disableDatatablesColumnsSort(10);
$membersTable->addRowHeadingByArray($columnHeading);
$membersTable->setDatatablesRowsPerPage($gPreferences['members_users_per_page']);
$membersTable->setMessageIfNoRowsFound('SYS_NO_ENTRIES');
// set alternative order column for member status icons
$membersTable->setDatatablesAlternativOrderColumns(2, 3);
$membersTable->setDatatablesColumnsHide(3);
// set alternative order column for gender icons
$membersTable->setDatatablesAlternativOrderColumns(6, 7);
$membersTable->setDatatablesColumnsHide(7);
$irow = 1;
// Zahler fuer die jeweilige Zeile
while ($row = $gDb->fetch_array($result_mgl)) {
    $timestampChange = new DateTimeExtended($row['timestamp'], 'Y-m-d H:i:s');
    // Icon fuer Orgamitglied und Nichtmitglied auswaehlen
    if ($row['member_this_orga'] > 0) {
        $icon = 'profile.png';
        $iconText = $gL10n->get('SYS_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname'));
    } else {
        $icon = 'no_profile.png';
        $iconText = $gL10n->get('SYS_NOT_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname'));