// Create table $table = new HtmlTable('tbl_profile_fields', $page, true); $table->setMessageIfNoRowsFound('ORG_NO_FIELD_CREATED'); // create array with all column heading values $columnHeading = array($gL10n->get('SYS_FIELD') . HtmlForm::getHelpTextIcon('ORG_FIELD_DESCRIPTION'), ' ', $gL10n->get('SYS_DESCRIPTION'), '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/eye.png" alt="' . $gL10n->get('ORG_FIELD_NOT_HIDDEN') . '" title="' . $gL10n->get('ORG_FIELD_NOT_HIDDEN') . '" />', '<img class="admidio-icon-info" data-html="true" src="' . THEME_PATH . '/icons/textfield_key.png" alt="' . $gL10n->get('ORG_FIELD_DISABLED', $gL10n->get('ROL_RIGHT_EDIT_USER')) . '" title="' . $gL10n->get('ORG_FIELD_DISABLED', $gL10n->get('ROL_RIGHT_EDIT_USER')) . '" />', '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/asterisk_yellow.png" alt="' . $gL10n->get('ORG_FIELD_REQUIRED') . '" title="' . $gL10n->get('ORG_FIELD_REQUIRED') . '" />', $gL10n->get('ORG_DATATYPE'), ' '); $table->addRowHeadingByArray($columnHeading); $categoryId = 0; $userField = new TableUserField($gDb); // Intialize variables $description = ''; $hidden = ''; $disable = ''; $mandatory = ''; $usfSystem = ''; while ($row = $statement->fetch()) { $userField->clear(); $userField->setArray($row); if ($categoryId != $userField->getValue('cat_id')) { $block_id = 'admCategory' . $userField->getValue('usf_cat_id'); $table->addTableBody(); $table->addRow('', array('class' => 'admidio-group-heading')); $table->addColumn('<span id="caret_' . $block_id . '" class="caret"></span>' . $userField->getValue('cat_name'), array('id' => 'group_' . $block_id, 'colspan' => '8'), 'td'); $table->addTableBody('id', $block_id); $categoryId = $userField->getValue('usf_cat_id'); } // cut long text strings and provide tooltip if (strlen($userField->getValue('usf_description')) > 22) { $description = substr($userField->getValue('usf_description', 'database'), 0, 22) . ' <a data-toggle="modal" data-target="#admidio_modal" href="' . $g_root_path . '/adm_program/system/msg_window.php?message_id=user_field_description&message_var1=' . $userField->getValue('usf_name_intern') . '&inline=true"><span data-html="true" data-toggle="tooltip" data-original-title="' . str_replace('"', '\'', $userField->getValue('usf_description')) . '">[..]</span></a>'; } elseif ($userField->getValue('usf_description') === '') {