if ($field->getValue('usf_name_intern') === 'LAST_NAME' || $field->getValue('usf_name_intern') === 'FIRST_NAME') { $htmlFieldTable .= ' <span class="text-danger">(' . $gL10n->get('SYS_MANDATORY_FIELD') . ')</span>'; } $htmlFieldTable .= '</label></td> <td> <select class="form-control" size="1" id="usf-' . $field->getValue('usf_id') . '" name="usf-' . $field->getValue('usf_id') . '" style="width: 90%;">'; if (isset($form_values['usf-' . $field->getValue('usf_id')]) && $form_values['usf-' . $field->getValue('usf_id')] > 0) { $htmlFieldTable .= '<option value=""></option>'; } else { $htmlFieldTable .= '<option value="" selected="selected"></option>'; } // Alle Spalten aus der Datei in Combobox auflisten foreach ($arrayCsvColumns as $col_key => $col_value) { $col_value = trim(strip_tags(str_replace('"', '', $col_value))); if (isset($form_values['usf-' . $field->getValue('usf_id')]) && strlen($form_values['usf-' . $field->getValue('usf_id')]) > 0 && $form_values['usf-' . $field->getValue('usf_id')] == $col_key) { $htmlFieldTable .= '<option value="' . $col_key . '" selected="selected">' . $col_value . '</option>'; } else { $htmlFieldTable .= '<option value="' . $col_key . '">' . $col_value . '</option>'; } } $htmlFieldTable .= '</select> </td> </tr>'; } $htmlFieldTable .= '</tbody> </table>'; $form->addDescription($htmlFieldTable); $form->addSubmitButton('btn_forward', $gL10n->get('MEM_IMPORT'), array('icon' => THEME_PATH . '/icons/database_in.png')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show();
$del_list->delete(); } else { // now add configuration to array $configurationsArray[] = array($configuration['lst_id'], $objListTimestamp->format($gPreferences['system_date'] . ' ' . $gPreferences['system_time']), $actualGroup); } } else { // now add configuration to array $configurationsArray[] = array($configuration['lst_id'], $configuration['lst_name'], $actualGroup); } } $form->addSelectBox('sel_select_configuation', $gL10n->get('LST_SELECT_CONFIGURATION'), $configurationsArray, array('defaultValue' => $formValues['sel_select_configuation'], 'showContextDependentFirstEntry' => false)); // Webmasters could upgrade a configuration to a global configuration that is visible to all users if ($gCurrentUser->isWebmaster()) { $form->addCheckbox('cbx_global_configuration', $gL10n->get('LST_CONFIGURATION_ALL_USERS'), $list->getValue('lst_global'), array('defaultValue' => $formValues['cbx_global_configuration'], 'helpTextIdLabel' => 'LST_PRESET_CONFIGURATION_DESC')); } $form->addDescription($gL10n->get('LST_ADD_COLUMNS_DESC')); $form->addHtml(' <div class="table-responsive"> <table class="table table-condensed" id="mylist_fields_table"> <thead> <tr> <th style="width: 20%;">' . $gL10n->get('SYS_ABR_NO') . '</th> <th style="width: 37%;">' . $gL10n->get('SYS_CONTENT') . '</th> <th style="width: 18%;">' . $gL10n->get('SYS_ORDER') . '</th> <th style="width: 25%;">' . $gL10n->get('SYS_CONDITION') . ' <a class="admidio-icon-link" data-toggle="modal" data-target="#admidio_modal" href="' . $g_root_path . '/adm_program/system/msg_window.php?message_id=mylist_condition&inline=true"> <img src="' . THEME_PATH . '/icons/help.png" alt="Help" /> </a> </th> </tr>
} } $htmlRoleSelection .= ' </select> </div> <div class="col-sm-2" style="text-align: center;"> <br /><br /><br /> <a class="admidio-icon-link" href="javascript:removeRoles()"><img src="' . THEME_PATH . '/icons/back.png" alt="' . $gL10n->get('SYS_REMOVE_ROLE') . '" title="' . $gL10n->get('SYS_REMOVE_ROLE') . '" /></a> <a class="admidio-icon-link" href="javascript:addRoles()"><img src="' . THEME_PATH . '/icons/forward.png" alt="' . $gL10n->get('SYS_ADD_ROLE') . '" title="' . $gL10n->get('SYS_ADD_ROLE') . '" /></a> </div> <div class="col-sm-5 form-group"> <label for="adm_allowed_roles"><img class="admidio-icon-info" src="' . THEME_PATH . '/icons/ok.png" alt="' . $gL10n->get('DOW_ACCESS_ALLOWED') . '" title="' . $gL10n->get('DOW_ACCESS_ALLOWED') . '" />' . $gL10n->get('DOW_ACCESS_ALLOWED') . '</label> <select id="adm_allowed_roles" name="AllowedRoles[]" class="form-control" multiple="multiple" size="8" style="max-width: 300px;">'; for ($i = 0; $i < count($roleSet); $i++) { $nextRole = $roleSet[$i]; $htmlRoleSelection .= '<option value="' . $nextRole['rol_id'] . '">' . $nextRole['rol_name'] . '</option>'; } $htmlRoleSelection .= ' </select> </div>'; $form->addCheckbox('fol_public', $gL10n->get('DOW_NO_PUBLIC_ACCESS'), $checkboxValue, array('property' => $fieldMode, 'helpTextIdLabel' => 'DOW_PUBLIC_DOWNLOAD_FLAG', 'icon' => THEME_PATH . '/icons/lock.png')); $form->openGroupBox('adm_roles_box', $gL10n->get('DOW_ROLE_ACCESS_PERMISSIONS')); $form->addDescription($gL10n->get('DOW_ROLE_ACCESS_PERMISSIONS_DESC')); $form->addCustomContent(null, $htmlRoleSelection); $form->closeGroupBox(); $form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show();