secondSequence = actSequence - 1; } } else { if (nextNode !== null) { actRow.parentNode.insertBefore(nextNode, actRow); secondSequence = actSequence + 1; } } if (secondSequence > 0) { // Nun erst mal die neue Position von dem gewaehlten Feld aktualisieren $.get(gRootPath + "/adm_program/modules/preferences/fields_function.php?usf_id=" + usfID + "&mode=4&sequence=" + direction); } }'); // get module menu $fieldsMenu = $page->getMenu(); // show back link $fieldsMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // define link to create new profile field $fieldsMenu->addItem('menu_item_new_field', $g_root_path . '/adm_program/modules/preferences/fields_new.php', $gL10n->get('ORG_CREATE_PROFILE_FIELD'), 'add.png'); // define link to maintain categories $fieldsMenu->addItem('menu_item_maintain_category', $g_root_path . '/adm_program/modules/categories/categories.php?type=USF', $gL10n->get('SYS_MAINTAIN_CATEGORIES'), 'application_double.png'); $sql = 'SELECT * FROM ' . TBL_CATEGORIES . ', ' . TBL_USER_FIELDS . ' WHERE cat_type = \'USF\' AND usf_cat_id = cat_id AND ( cat_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' OR cat_org_id IS NULL ) ORDER BY cat_sequence ASC, usf_sequence ASC '; $statement = $gDb->query($sql); // Create table $table = new HtmlTable('tbl_profile_fields', $page, true);
echo 'done'; exit; } /*****************************Foto hochladen*************************************/ if ($getMode == 'choose') { // set headline if ($getItemId == $gCurrentUser->getValue('inv_id')) { $headline = $gL10n->get('PRO_EDIT_MY_PROFILE_PICTURE'); } else { $headline = $gL10n->get('PRO_EDIT_PROFILE_PIC_FROM', $inventory->getValue('FIRST_NAME'), $inventory->getValue('LAST_NAME')); } $gNavigation->addUrl(CURRENT_URL, $headline); // create html page object $page = new HtmlPage($headline); // add back link to module menu $profilePhotoMenu = $page->getMenu(); $profilePhotoMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // show form $form = new HtmlForm('upload_files_form', $g_root_path . '/adm_program/modules/inventory/item_photo_edit.php?mode=upload&inv_id=' . $getItemId, $page, array('enableFileUpload' => true)); $form->addCustomContent($gL10n->get('PRO_CURRENT_PICTURE'), '<img class="imageFrame" src="item_photo_show.php?inv_id=' . $getItemId . '" alt="' . $gL10n->get('PRO_CURRENT_PICTURE') . '" />'); $form->addFileUpload('userfile', $gL10n->get('PRO_CHOOSE_PHOTO'), array('helpTextIdLabel' => 'profile_photo_up_help')); $form->addSubmitButton('btn_upload', $gL10n->get('PRO_UPLOAD_PHOTO'), array('icon' => THEME_PATH . '/icons/photo_upload.png', 'class' => ' col-sm-offset-3')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show(); } elseif ($getMode == 'upload') { /*****************************Foto zwischenspeichern bestaetigen***********************************/ //Dateigroesse if ($_FILES['userfile']['error'][0] == 1) { $gMessage->show($gL10n->get('PRO_PHOTO_FILE_TO_LARGE', round(admFuncMaxUploadSize() / pow(1024, 2)))); }
// nun die vorher eingegebenen Inhalte ins Objekt schreiben $link->setArray($_SESSION['links_request']); unset($_SESSION['links_request']); } // Html-Kopf ausgeben if ($getLinkId > 0) { $headline = $gL10n->get('SYS_EDIT_VAR', $getHeadline); } else { $headline = $gL10n->get('SYS_CREATE_VAR', $getHeadline); } // add current url to navigation stack $gNavigation->addUrl(CURRENT_URL, $headline); // create html page object $page = new HtmlPage($headline); // add back link to module menu $linksCreateMenu = $page->getMenu(); $linksCreateMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // Html des Modules ausgeben if ($getLinkId > 0) { $modeEditOrCreate = '3'; } else { $modeEditOrCreate = '1'; } // show form $form = new HtmlForm('weblinks_edit_form', $g_root_path . '/adm_program/modules/links/links_function.php?lnk_id=' . $getLinkId . '&headline=' . $getHeadline . '&mode=' . $modeEditOrCreate, $page); $form->addInput('lnk_name', $gL10n->get('LNK_LINK_NAME'), $link->getValue('lnk_name'), array('maxLength' => 250, 'property' => FIELD_REQUIRED)); $form->addInput('lnk_url', $gL10n->get('LNK_LINK_ADDRESS'), $link->getValue('lnk_url'), array('maxLength' => 2000, 'property' => FIELD_REQUIRED)); $form->addSelectBoxForCategories('lnk_cat_id', $gL10n->get('SYS_CATEGORY'), $gDb, 'LNK', 'EDIT_CATEGORIES', array('property' => FIELD_REQUIRED, 'defaultValue' => $link->getValue('lnk_cat_id'))); $form->addEditor('lnk_description', $gL10n->get('SYS_DESCRIPTION'), $link->getValue('lnk_description'), array('height' => '150px')); $form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png')); $form->addHtml(admFuncShowCreateChangeInfoById($link->getValue('lnk_usr_id_create'), $link->getValue('lnk_timestamp_create'), $link->getValue('lnk_usr_id_change'), $link->getValue('lnk_timestamp_change')));
$("#"+id+" .form-alert").html("<span class=\\"glyphicon glyphicon-ok\\"></span><strong>' . $gL10n->get('SYS_SAVE_DATA') . '</strong>"); $("#"+id+" .form-alert").fadeIn("slow"); $("#"+id+" .form-alert").animate({opacity: 1.0}, 2500); $("#"+id+" .form-alert").fadeOut("slow"); $("#"+parentId).animate({opacity: 1.0}, 2500); $("#"+parentId).fadeOut("slow"); } else { $("#"+id+" .form-alert").attr("class", "alert alert-danger form-alert"); $("#"+id+" .form-alert").fadeIn(); $("#"+id+" .form-alert").html("<span class=\\"glyphicon glyphicon-exclamation-sign\\"></span>"+data); } } }); });', true); // get module menu $profileMenu = $page->getMenu(); // show back link if ($gNavigation->count() > 1) { $profileMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); } // show link to edit profile $profileMenu->addItem('menu_item_new_entry', $g_root_path . '/adm_program/modules/inventory/item_new.php?item_id=' . $inventory->getValue('inv_id'), $gL10n->get('MEM_EDIT_USER'), 'edit.png'); $profileMenu->addItem('menu_item_extras', null, $gL10n->get('SYS_MORE_FEATURES'), null, 'right'); if ($gCurrentUser->isWebmaster()) { // show link to maintain profile fields $profileMenu->addItem('menu_item_maintain_profile_fields', $g_root_path . '/adm_program/modules/preferences/fields.php', $gL10n->get('PRO_MAINTAIN_PROFILE_FIELDS'), 'application_form_edit.png', 'right', 'menu_item_extras'); // show link to system preferences of weblinks $profileMenu->addItem('menu_item_preferences_links', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=profile', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right', 'menu_item_extras'); } // ******************************************************************************* // User data block
$("input[type=checkbox]#member_"+userid).prop("checked", false); } } else { checkbox.prop("checked", true); } alert(data); return false; } return true; } ); });'; $page->addJavascript($javascriptCode, true); // get module menu $membersAssignmentMenu = $page->getMenu(); $membersAssignmentMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); if ($gCurrentUser->editUsers()) { $membersAssignmentMenu->addItem('menu_item_create_user', $g_root_path . '/adm_program/modules/members/members_new.php', $gL10n->get('MEM_CREATE_USER'), 'add.png'); } $navbarForm = new HtmlForm('navbar_show_all_users_form', '', $page, array('type' => 'navbar', 'setFocus' => false)); $sql = 'SELECT rol_id, rol_name, cat_name FROM ' . TBL_ROLES . ', ' . TBL_CATEGORIES . ' WHERE rol_valid = 1 AND rol_visible = 1 AND rol_cat_id = cat_id AND ( cat_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' OR cat_org_id IS NULL ) ORDER BY cat_sequence, rol_name'; $navbarForm->addSelectBoxFromSql('filter_rol_id', $gL10n->get('SYS_ROLE'), $gDb, $sql, array('defaultValue' => $getFilterRoleId, 'firstEntry' => $gL10n->get('SYS_ALL'))); $navbarForm->addCheckbox('mem_show_all', $gL10n->get('MEM_SHOW_ALL_USERS'), 0, array('helpTextIdLabel' => 'MEM_SHOW_USERS_DESC')); $membersAssignmentMenu->addForm($navbarForm->show(false));
$gNavigation->addUrl(CURRENT_URL, $headline); // Create room object $room = new TableRooms($gDb); if ($getRoomId > 0) { $room->readDataById($getRoomId); } if (isset($_SESSION['rooms_request'])) { // durch fehlerhafte Eingabe ist der User zu diesem Formular zurueckgekehrt // nun die vorher eingegebenen Inhalte ins Objekt schreiben $room->setArray($_SESSION['rooms_request']); unset($_SESSION['rooms_request']); } // create html page object $page = new HtmlPage($headline); // add back link to module menu $roomsMenu = $page->getMenu(); $roomsMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // show form $form = new HtmlForm('rooms_edit_form', $g_root_path . '/adm_program/modules/rooms/rooms_function.php?room_id=' . $getRoomId . '&mode=1', $page); $form->openGroupBox('gb_name_properties', $gL10n->get('SYS_NAME') . ' & ' . $gL10n->get('SYS_PROPERTIES')); $form->addInput('room_name', $gL10n->get('SYS_ROOM'), $room->getValue('room_name'), array('maxLength' => 100, 'property' => FIELD_REQUIRED)); $form->addInput('room_capacity', $gL10n->get('ROO_CAPACITY') . ' (' . $gL10n->get('ROO_SEATING') . ')', $room->getValue('room_capacity'), array('type' => 'number', 'minNumber' => 0, 'maxNumber' => 99999, 'property' => FIELD_REQUIRED)); $form->addInput('room_overhang', $gL10n->get('ROO_OVERHANG'), $room->getValue('room_overhang'), array('type' => 'number', 'minNumber' => 0, 'maxNumber' => 99999, 'helpTextIdLabel' => 'DAT_ROOM_OVERHANG')); $form->closeGroupBox(); $form->openGroupBox('gb_description', $gL10n->get('SYS_DESCRIPTION'), 'admidio-panel-editor'); $form->addEditor('room_description', null, $room->getValue('room_description'), array('height' => '150px')); $form->closeGroupBox(); $form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png')); $form->addHtml(admFuncShowCreateChangeInfoById($room->getValue('room_usr_id_create'), $room->getValue('room_timestamp_create'), $room->getValue('dat_usr_id_change'), $room->getValue('room_timestamp_change'))); // add form to html page and show page $page->addHtml($form->show(false));
if ($form_values['new_description'] == null) { $form_values['new_description'] = $file->getValue('fil_description'); } } else { // get recordset of current folder from databses $folder = new TableFolder($gDb); $folder->getFolderForDownload($getFolderId); $originalName = $folder->getValue('fol_name'); if ($form_values['new_name'] == null) { $form_values['new_name'] = $originalName; } if ($form_values['new_description'] == null) { $form_values['new_description'] = $folder->getValue('fol_description'); } } } catch (AdmException $e) { $e->showHtml(); } // create html page object $page = new HtmlPage($headline); // add back link to module menu $downloadRenameMenu = $page->getMenu(); $downloadRenameMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // create html form $form = new HtmlForm('edit_download_form', $g_root_path . '/adm_program/modules/downloads/download_function.php?mode=4&folder_id=' . $getFolderId . '&file_id=' . $getFileId, $page); $form->addInput('previous_name', $gL10n->get('DOW_PREVIOUS_NAME'), $originalName, array('property' => FIELD_DISABLED)); $form->addInput('new_name', $gL10n->get('DOW_NEW_NAME'), $form_values['new_name'], array('maxLength' => 255, 'property' => FIELD_REQUIRED, 'helpTextIdLabel' => 'DOW_FILE_NAME_RULES')); $form->addMultilineTextInput('new_description', $gL10n->get('SYS_DESCRIPTION'), $form_values['new_description'], 4, array('maxLength' => 255)); $form->addSubmitButton('btn_rename', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png', 'class' => ' col-sm-offset-3')); $page->addHtml($form->show(false)); $page->show();
} // Rollenobjekt anlegen $role = new TableRoles($gDb); if ($getRoleId > 0) { $role->readDataById($getRoleId); // Pruefung, ob die Rolle zur aktuellen Organisation gehoert if ($role->getValue('cat_org_id') != $gCurrentOrganization->getValue('org_id') && $role->getValue('cat_org_id') > 0) { $gMessage->show($gL10n->get('SYS_NO_RIGHTS')); } } $_SESSION['roles_request'] = $_POST; if ($getMode === 1) { // create html page object $page = new HtmlPage($gL10n->get('ROL_ROLE_DELETE')); // add back link to module menu $messageMenu = $page->getMenu(); $messageMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); $page->addHtml(' <div class="message"> <p class="lead"> <img src="' . THEME_PATH . '/icons/roles_gray.png" alt="' . $gL10n->get('ROL_INACTIV_ROLE') . '" /> ' . $gL10n->get('ROL_INACTIV_ROLE_DESC') . '<br /><br /> <img src="' . THEME_PATH . '/icons/delete.png" alt="' . $gL10n->get('ROL_ROLE_DELETE') . '" /> ' . $gL10n->get('ROL_HINT_DELETE_ROLE', $gL10n->get('SYS_DELETE')) . ' </p> <button id="btn_inactive" type="button" class="btn btn-primary" onclick="self.location.href=\'' . $g_root_path . '/adm_program/modules/roles/roles_function.php?rol_id=' . $getRoleId . '&mode=3\'"><img src="' . THEME_PATH . '/icons/roles_gray.png" alt="' . $gL10n->get('ROL_INACTIV_ROLE') . '" /> ' . $gL10n->get('ROL_INACTIV_ROLE') . '</button> <button id="btn_delete" type="button" class="btn btn-primary"
$page = new HtmlPage($headline); $page->addJavascript(' function setValueList() { if ($("#usf_type").val() === "DROPDOWN" || $("#usf_type").val() === "RADIO_BUTTON") { $("#usf_value_list_group").show("slow"); $("#usf_value_list").attr("required", "required"); } else { $("#usf_value_list").removeAttr("required"); $("#usf_value_list_group").hide(); } } setValueList(); $("#usf_type").click(function() { setValueList(); });', true); // add back link to module menu $profileFieldsEditMenu = $page->getMenu(); $profileFieldsEditMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // show form $form = new HtmlForm('profile_fields_edit_form', $g_root_path . '/adm_program/modules/preferences/fields_function.php?usf_id=' . $getUsfId . '&mode=1', $page); $form->openGroupBox('gb_designation', $gL10n->get('SYS_DESIGNATION')); if ($userField->getValue('usf_system') == 1) { $form->addInput('usf_name', $gL10n->get('SYS_NAME'), $userField->getValue('usf_name', 'database'), array('maxLength' => 100, 'property' => FIELD_DISABLED)); } else { $form->addInput('usf_name', $gL10n->get('SYS_NAME'), $userField->getValue('usf_name', 'database'), array('maxLength' => 100, 'property' => FIELD_REQUIRED)); } // show internal field name for information if ($getUsfId > 0) { $form->addInput('usf_name_intern', $gL10n->get('SYS_INTERNAL_NAME'), $userField->getValue('usf_name_intern'), array('maxLength' => 100, 'property' => FIELD_DISABLED, 'helpTextIdLabel' => 'SYS_INTERNAL_NAME_DESC')); } if ($userField->getValue('usf_system') == 1) { $form->addInput('usf_cat_id', $gL10n->get('SYS_CATEGORY'), $userField->getValue('cat_name'), array('maxLength' => 100, 'property' => FIELD_DISABLED));
ORDER BY usl_timestamp_create DESC'; $fieldHistoryStatement = $gDb->query($sql); if ($fieldHistoryStatement->rowCount() === 0) { // message is shown, so delete this page from navigation stack $gNavigation->deleteLastUrl(); // show message if there were no changes for users if ($getUserId > 0) { $gMessage->show($gL10n->get('MEM_NO_CHANGES_PROFIL', $user->getValue('FIRST_NAME') . ' ' . $user->getValue('LAST_NAME'))); } else { $gMessage->show($gL10n->get('MEM_NO_CHANGES')); } } // create html page object $page = new HtmlPage($headline); // add back link to module menu $profileFieldHistoryMenu = $page->getMenu(); $profileFieldHistoryMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // create filter menu with input elements for Startdate and Enddate $FilterNavbar = new HtmlNavbar('menu_profile_field_history_filter', null, null, 'filter'); $form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/members/profile_field_history.php?usr_id=' . $getUserId, $page, array('type' => 'navbar', 'setFocus' => false)); $form->addInput('filter_date_from', $gL10n->get('SYS_START'), $dateFromHtml, array('type' => 'date', 'maxLength' => 10)); $form->addInput('filter_date_to', $gL10n->get('SYS_END'), $dateToHtml, array('type' => 'date', 'maxLength' => 10)); $form->addSubmitButton('btn_send', $gL10n->get('SYS_OK')); $FilterNavbar->addForm($form->show(false)); $page->addHtml($FilterNavbar->show(false)); $table = new HtmlTable('profile_field_history_table', $page, true, true); $columnHeading = array(); if ($getUserId === 0) { $table->setDatatablesOrderColumns(array(array(6, 'desc'))); $columnHeading[] = $gL10n->get('SYS_NAME'); } else {
$sql = 'SELECT rol_id FROM ' . TBL_ROLES . ' INNER JOIN ' . TBL_CATEGORIES . ' ON cat_id = rol_cat_id WHERE rol_name LIKE \'' . $gL10n->get('SYS_WEBMASTER') . '\' AND rol_webmaster = 1 AND ( cat_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' OR cat_org_id IS NULL )'; $pdoStatement = $gDb->query($sql); $row = $pdoStatement->fetch(); // create role object for webmaster $roleWebmaster = new TableRoles($gDb, $row['rol_id']); // create html page object $page = new HtmlPage($headline); // add back link to module menu $loginMenu = $page->getMenu(); $loginMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // show form $form = new HtmlForm('login_form', $g_root_path . '/adm_program/system/login_check.php', $page, array('showRequiredFields' => false)); $form->addInput('usr_login_name', $gL10n->get('SYS_USERNAME'), null, array('maxLength' => 35, 'property' => FIELD_REQUIRED, 'class' => 'form-control-small')); // TODO Future: 'minLength' => 8 $form->addInput('usr_password', $gL10n->get('SYS_PASSWORD'), null, array('type' => 'password', 'property' => FIELD_REQUIRED, 'class' => 'form-control-small')); // show selectbox with all organizations of database if ($gPreferences['system_organization_select'] == 1) { $sql = 'SELECT org_id, org_longname FROM ' . TBL_ORGANIZATIONS . ' ORDER BY org_longname ASC, org_shortname ASC'; $form->addSelectBoxFromSql('org_id', $gL10n->get('SYS_ORGANIZATION'), $gDb, $sql, array('property' => FIELD_REQUIRED, 'defaultValue' => $gCurrentOrganization->getValue('org_id'))); } if ($gPreferences['enable_auto_login'] == 1) { $form->addCheckbox('auto_login', $gL10n->get('SYS_REMEMBER_ME'), '0');
$sql = 'SELECT COUNT(*) FROM ' . TBL_GUESTBOOK . ' WHERE unix_timestamp(gbo_timestamp_create) > unix_timestamp()-' . $gPreferences['flooding_protection_time'] . ' AND gbo_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' AND gbo_ip_address = \'' . $guestbook->getValue('gbo_ip_address') . '\''; $statement = $gDb->query($sql); $row = $statement->fetch(); if ($row[0] > 0) { // Wenn dies der Fall ist, gibt es natuerlich keinen Gaestebucheintrag... $gMessage->show($gL10n->get('GBO_FLOODING_PROTECTION', $gPreferences['flooding_protection_time'])); } } // create html page object $page = new HtmlPage($headline); // add back link to module menu $guestbookCreateMenu = $page->getMenu(); $guestbookCreateMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // Html des Modules ausgeben if ($getGboId > 0) { $mode = '3'; } else { $mode = '1'; } // show form $form = new HtmlForm('guestbook_edit_form', $g_root_path . '/adm_program/modules/guestbook/guestbook_function.php?id=' . $getGboId . '&headline=' . $getHeadline . '&mode=' . $mode, $page); if ($gCurrentUser->getValue('usr_id') > 0) { // registered users should not change their name $form->addInput('gbo_name', $gL10n->get('SYS_NAME'), $guestbook->getValue('gbo_name'), array('maxLength' => 60, 'property' => FIELD_DISABLED)); } else { $form->addInput('gbo_name', $gL10n->get('SYS_NAME'), $guestbook->getValue('gbo_name'), array('maxLength' => 60, 'property' => FIELD_REQUIRED)); }
$urlCurrentImage = $g_root_path . '/adm_program/modules/photos/photo_show.php?pho_id=' . $getPhotoId . '&photo_nr=' . $getPhotoNr . '&max_width=' . $gPreferences['photo_show_width'] . '&max_height=' . $gPreferences['photo_show_height']; if ($previousImage > 0) { $urlPreviousImage = $g_root_path . '/adm_program/modules/photos/photo_presenter.php?photo_nr=' . $previousImage . '&pho_id=' . $getPhotoId; } if ($nextImage <= $photoAlbum->getValue('pho_quantity')) { $urlNextImage = $g_root_path . '/adm_program/modules/photos/photo_presenter.php?photo_nr=' . $nextImage . '&pho_id=' . $getPhotoId; } // create html page object $page = new HtmlPage($photoAlbum->getValue('pho_name')); // wenn Popupmode oder Colorbox, dann normalen Kopf unterdruecken if ($gPreferences['photo_show_mode'] == 0) { $page->hideThemeHtml(); } if ($gPreferences['photo_show_mode'] == 2) { // get module menu $photoPresenterMenu = $page->getMenu(); // if you have no popup or colorbox then show a button back to the album if ($gPreferences['photo_show_mode'] == 2) { $photoPresenterMenu->addItem('menu_item_back_to_album', $g_root_path . '/adm_program/modules/photos/photos.php?pho_id=' . $getPhotoId, $gL10n->get('PHO_BACK_TO_ALBUM'), 'application_view_tile.png'); } // show link to navigate to next and previous photos if ($previousImage > 0) { $photoPresenterMenu->addItem('menu_item_previous_photo', $urlPreviousImage, $gL10n->get('PHO_PREVIOUS_PHOTO'), 'back.png'); } if ($nextImage <= $photoAlbum->getValue('pho_quantity')) { $photoPresenterMenu->addItem('menu_item_next_photo', $urlNextImage, $gL10n->get('PHO_NEXT_PHOTO'), 'forward.png'); } } // Show photo with link to next photo if ($nextImage <= $photoAlbum->getValue('pho_quantity')) { $page->addHtml('<div class="admidio-img-presenter"><a href="' . $urlNextImage . '"><img src="' . $urlCurrentImage . '" alt="Foto"></a></div>');
actRow.parentNode.insertBefore(nextNode, actRow); secondSequence = actSequence + 1; } } if (secondSequence > 0) { // Nun erst mal die neue Position von der gewaehlten Kategorie aktualisieren $.get(gRootPath + "/adm_program/modules/categories/categories_function.php?cat_id=" + catID + "&type=' . $getType . '&mode=4&sequence=" + direction); } }'); $htmlIconLoginUser = '******'; if ($getType !== 'USF') { $htmlIconLoginUser = '******' . THEME_PATH . '/icons/user_key.png" alt="' . $gL10n->get('SYS_VISIBLE_TO_USERS', $getTitle) . '" title="' . $gL10n->get('SYS_VISIBLE_TO_USERS', $getTitle) . '" />'; } // get module menu $categoriesMenu = $page->getMenu(); // show back link $categoriesMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // define link to create new category $categoriesMenu->addItem('admMenuItemNewCategory', $g_root_path . '/adm_program/modules/categories/categories_new.php?type=' . $getType . '&title=' . $getTitle, $gL10n->get('SYS_CREATE_VAR', $addButtonText), 'add.png'); // Create table object $categoriesOverview = new HtmlTable('tbl_categories', $page, true); // create array with all column heading values $columnHeading = array($gL10n->get('SYS_TITLE'), ' ', $htmlIconLoginUser, '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/star.png" alt="' . $gL10n->get('CAT_DEFAULT_VAR', $getTitle) . '" title="' . $gL10n->get('CAT_DEFAULT_VAR', $getTitle) . '" />', ' '); $categoriesOverview->setColumnAlignByArray(array('left', 'left', 'left', 'left', 'right')); $categoriesOverview->addRowHeadingByArray($columnHeading); $sql = 'SELECT * FROM ' . TBL_CATEGORIES . ' WHERE ( cat_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' OR cat_org_id IS NULL ) AND cat_type = \'' . $getType . '\'
$("#ecard_form textarea[name=\'ecard_message\']").text( CKEDITOR.instances.ecard_message.getData() ); $.ajax({ // create an AJAX call... data: $("#ecard_form").serialize(), // get the form data type: "POST", // GET or POST url: "ecard_preview.php", // the file to call success: function(response) { // on success.. $(".modal-content").html(response); $("#admidio_modal").modal(); } }); return false; }); ', true); // add back link to module menu $ecardMenu = $page->getMenu(); $ecardMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); if ($gCurrentUser->isWebmaster()) { // show link to system preferences of announcements $ecardMenu->addItem('menu_item_preferences', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=ecards', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right'); } // show form $form = new HtmlForm('ecard_form', 'ecard_send.php', $page); $form->addInput('submit_action', null, '', array('type' => 'hidden')); $form->addInput('photo_id', null, $getPhotoId, array('type' => 'hidden')); $form->addInput('photo_nr', null, $getPhotoNr, array('type' => 'hidden')); $form->openGroupBox('gb_layout', $gL10n->get('ECA_LAYOUT')); $form->addCustomContent($gL10n->get('SYS_PHOTO'), ' <a data-toggle="lightbox" data-type="image" data-title="' . $gL10n->get('SYS_PREVIEW') . '" href="' . $g_root_path . '/adm_program/modules/photos/photo_show.php?pho_id=' . $getPhotoId . '&photo_nr=' . $getPhotoNr . '&max_width=' . $gPreferences['photo_show_width'] . '&max_height=' . $gPreferences['photo_show_height'] . '"><img src="' . $g_root_path . '/adm_program/modules/photos/photo_show.php?pho_id=' . $getPhotoId . '&photo_nr=' . $getPhotoNr . '&max_width=' . $gPreferences['ecard_thumbs_scale'] . '&max_height=' . $gPreferences['ecard_thumbs_scale'] . '"
}); $("#link_check_for_update").click(function() { $("#admidio_version_content").empty(); $("#admidio_version_content").prepend("<img src=\'' . THEME_PATH . '/icons/loader_inline.gif\' id=\'loadindicator\'/>").show(); $.get("' . $g_root_path . '/adm_program/modules/preferences/update_check.php", {mode:"2"}, function(htmlVersion){ $("#admidio_version_content").empty(); $("#admidio_version_content").append(htmlVersion); }); return false; }); ', true); if ($showOption !== '') { // add current url to navigation stack $gNavigation->addUrl(CURRENT_URL, $headline); // add back link to module menu $preferencesMenu = $page->getMenu(); $preferencesMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); } else { // Navigation of the module starts here $gNavigation->addStartUrl(CURRENT_URL, $headline); } $page->addHtml(' <ul class="nav nav-tabs" id="preferences_tabs"> <li id="tabs_nav_common"><a href="#tabs-common" data-toggle="tab">' . $gL10n->get('SYS_COMMON') . '</a></li> <li id="tabs_nav_modules"><a href="#tabs-modules" data-toggle="tab">' . $gL10n->get('SYS_MODULES') . '</a></li> </ul> <div class="tab-content"> <div class="tab-pane" id="tabs-common"> <div class="panel-group" id="accordion_common"> <div class="panel panel-default" id="panel_common">
$page->addJavascript($javascriptCode); $page->addJavascript('$(document).ready(function() { $("#sel_select_configuation").change(function() { loadList(); }); $("#btn_show_list").click(function() { send("show"); }); $("#btn_add_column").click(function() { addColumn(); }); $("#btn_save").click(function() { send("save_as"); }); $("#btn_save_changes").click(function() { send("save"); }); $("#btn_delete").click(function() { send("delete"); }); $("#btn_copy").click(function() { send("save_as"); }); for(var counter = 0; counter < ' . $defaultColumnRows . '; counter++) { addColumn(); } });', true); // get module menu $myListMenu = $page->getMenu(); // show link to system preferences of roles if ($gCurrentUser->isWebmaster()) { $myListMenu->addItem('admMenuItemPreferencesLists', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=lists', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right'); } // if mylist was not called directly then show link to navigate to previous page if ($gNavigation->count() > 1) { $myListMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); } // show form $form = new HtmlForm('mylist_configuration_form', $g_root_path . '/adm_program/modules/lists/mylist_prepare.php', $page); $form->openGroupBox('gb_configuration_list', $gL10n->get('LST_CONFIGURATION_LIST')); // read all relevant configurations from database and create an array $yourLastConfigurationsGroup = false; $yourConfigurationsGroup = false; $presetConfigurationsGroup = false;
$gNavigation->addUrl(CURRENT_URL, $headline); if (isset($_SESSION['download_request'])) { $form_values = strStripSlashesDeep($_SESSION['download_request']); unset($_SESSION['download_request']); } else { $form_values['new_folder'] = null; $form_values['new_description'] = null; } try { // get recordset of current folder from database $folder = new TableFolder($gDb); $folder->getFolderForDownload($getFolderId); } catch (AdmException $e) { $e->showHtml(); } $parentFolderName = $folder->getValue('fol_name'); // create html page object $page = new HtmlPage($headline); // add back link to module menu // @ptabaden: Changed icon of back button $folderNewMenu = $page->getMenu(); $folderNewMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), '<i class="fa fa-arrow-left" alt="' . $gL10n->get('SYS_BACK') . '" title="' . $gL10n->get('SYS_BACK') . '"></i><div class="iconDescription">' . $gL10n->get('SYS_BACK') . '</div>', ''); $page->addHtml('<p class="lead">' . $gL10n->get('DOW_CREATE_FOLDER_DESC', $parentFolderName) . '</p>'); // show form $form = new HtmlForm('new_folder_form', $g_root_path . '/adm_program/modules/downloads/download_function.php?mode=3&folder_id=' . $getFolderId, $page); $form->addInput('new_folder', $gL10n->get('SYS_NAME'), $form_values['new_folder'], array('maxLength' => 255, 'property' => FIELD_REQUIRED)); $form->addMultilineTextInput('new_description', $gL10n->get('SYS_DESCRIPTION'), $form_values['new_description'], 4, array('maxLength' => 4000)); $form->addSubmitButton('btn_create', $gL10n->get('DOW_CREATE_FOLDER'), array('icon' => THEME_PATH . '/icons/folder_create.png', 'class' => ' col-sm-offset-3')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show();
// Set dependent role right if another role right changed // srcRight - ID des Rechts, welches das Ereignis ausloest // destRight - ID des Rechts, welches angepasst werden soll // checked - true destRight wird auf checked gesetzt // false destRight wird auf unchecked gesetzt function markRoleRight(srcRight, destRight, checked) { if (document.getElementById(srcRight).checked && checked) { document.getElementById(destRight).checked = true; } if (!document.getElementById(srcRight).checked && !checked) { document.getElementById(destRight).checked = false; } }'); // add back link to module menu $rolesEditMenu = $page->getMenu(); $rolesEditMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // show form $form = new HtmlForm('roles_edit_form', $g_root_path . '/adm_program/modules/roles/roles_function.php?rol_id=' . $getRoleId . '&mode=2', $page); $form->openGroupBox('gb_name_category', $gL10n->get('SYS_NAME') . ' & ' . $gL10n->get('SYS_CATEGORY')); if ($role->getValue('rol_webmaster') == 1) { $form->addInput('rol_name', $gL10n->get('SYS_NAME'), $role->getValue('rol_name'), array('maxLength' => 100, 'property' => FIELD_READONLY)); } else { $form->addInput('rol_name', $gL10n->get('SYS_NAME'), $role->getValue('rol_name'), array('maxLength' => 100, 'property' => FIELD_REQUIRED)); } $form->addMultilineTextInput('rol_description', $gL10n->get('SYS_DESCRIPTION'), $role->getValue('rol_description'), 3, array('maxLength' => 4000)); $form->addSelectBoxForCategories('rol_cat_id', $gL10n->get('SYS_CATEGORY'), $gDb, 'ROL', 'EDIT_CATEGORIES', array('property' => FIELD_REQUIRED, 'defaultValue' => $role->getValue('rol_cat_id'))); $form->closeGroupBox(); $form->openGroupBox('gb_properties', $gL10n->get('SYS_PROPERTIES')); if ($gPreferences['enable_mail_module']) { $selectBoxEntries = array(0 => $gL10n->get('SYS_NOBODY'), 1 => $gL10n->get('ROL_ONLY_ROLE_MEMBERS'), 2 => $gL10n->get('ROL_ALL_MEMBERS'), 3 => $gL10n->get('ROL_ALL_GUESTS'));
} // Maximale Anzahl an Gaestebucheintraegen ermitteln, die angezeigt werden sollen $sql = 'SELECT COUNT(*) AS count FROM ' . TBL_GUESTBOOK . ' WHERE gbo_org_id = ' . $gCurrentOrganization->getValue('org_id') . $conditions; $pdoStatement = $gDb->query($sql); $row = $pdoStatement->fetch(); $num_guestbook = $row['count']; // Anzahl Gaestebucheintraege pro Seite if ($gPreferences['guestbook_entries_per_page'] > 0) { $guestbook_entries_per_page = $gPreferences['guestbook_entries_per_page']; } else { $guestbook_entries_per_page = $num_guestbook; } // get module menu $guestbookMenu = $page->getMenu(); if ($getGboId == 0 && $getModeration == 0) { // show link to create new guestbook entry $guestbookMenu->addItem('admMenuItemNewEntry', $g_root_path . '/adm_program/modules/guestbook/guestbook_new.php?headline=' . $getHeadline, $gL10n->get('GBO_CREATE_ENTRY'), 'add.png'); } if ($getGboId > 0 || $getModeration == 1) { // show link to navigate back to guestbook $guestbookMenu->addItem('admMenuItemNavigateBack', $g_root_path . '/adm_program/modules/guestbook/guestbook.php?headline=' . $getHeadline, $gL10n->get('GBO_BACK_TO_GUESTBOOK'), 'back.png'); } if ($getModeration == 0 && $gCurrentUser->editGuestbookRight() && $gPreferences['enable_guestbook_moderation'] > 0) { // show link to moderation with number of entries that must be moderated $sql = 'SELECT (SELECT count(1) FROM ' . TBL_GUESTBOOK . ' WHERE gbo_org_id = ' . $gCurrentOrganization->getValue('org_id') . ' AND gbo_locked = 1) AS count_locked_guestbook, (SELECT count(1) FROM ' . TBL_GUESTBOOK . ', ' . TBL_GUESTBOOK_COMMENTS . ' WHERE gbo_org_id = ' . $gCurrentOrganization->getValue('org_id') . '
$classTable = 'table'; if ($gPreferences['enable_rss'] == 1 && $gPreferences['enable_dates_module'] == 1) { $page->addRssFile($g_root_path . '/adm_program/modules/dates/rss_dates.php?headline=' . $getHeadline, $gL10n->get('SYS_RSS_FEED_FOR_VAR', $gCurrentOrganization->getValue('org_longname') . ' - ' . $getHeadline)); } $page->addJavascript(' $("#sel_change_view").change(function () { self.location.href = "dates.php?view=" + $("#sel_change_view").val() + "&mode=' . $getMode . '&headline=' . $getHeadline . '&date_from=' . $dates->getParameter('dateStartFormatAdmidio') . '&date_to=' . $dates->getParameter('dateEndFormatAdmidio') . '&cat_id=' . $getCatId . '"; }); $("#menu_item_print_view").click(function () { window.open("' . $g_root_path . '/adm_program/modules/dates/dates.php?view_mode=print&view=' . $getView . '&mode=' . $getMode . '&headline=' . $getHeadline . '&cat_id=' . $getCatId . '&date_from=' . $dates->getParameter('dateStartFormatEnglish') . '&date_to=' . $dates->getParameter('dateEndFormatEnglish') . '", "_blank"); });', true); // If default view mode is set to compact we need a back navigation if one date is selected for detail view if ($getId > 0) { // add back link to module menu $datesMenu = $page->getMenu(); $datesMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); } // get module menu $DatesMenu = $page->getMenu(); // Add new event if ($gCurrentUser->editDates() && $getId === 0) { $DatesMenu->addItem('admMenuItemAdd', $g_root_path . '/adm_program/modules/dates/dates_new.php?headline=' . $getHeadline, $gL10n->get('SYS_CREATE_VAR', $getHeadline), 'add.png'); } if ($getId === 0) { $form = new HtmlForm('navbar_change_view_form', '', $page, array('type' => 'navbar', 'setFocus' => false)); if ($gPreferences['dates_show_rooms']) { $selectBoxEntries = array('detail' => $gL10n->get('DAT_VIEW_MODE_DETAIL'), 'compact' => $gL10n->get('DAT_VIEW_MODE_COMPACT'), 'room' => $gL10n->get('DAT_VIEW_MODE_COMPACT') . ' - ' . $gL10n->get('SYS_ROOM'), 'participants' => $gL10n->get('DAT_VIEW_MODE_COMPACT') . ' - ' . $gL10n->get('SYS_PARTICIPANTS'), 'description' => $gL10n->get('DAT_VIEW_MODE_COMPACT') . ' - ' . $gL10n->get('SYS_DESCRIPTION')); } else { $selectBoxEntries = array('detail' => $gL10n->get('DAT_VIEW_MODE_DETAIL'), 'compact' => $gL10n->get('DAT_VIEW_MODE_COMPACT'), 'participants' => $gL10n->get('DAT_VIEW_MODE_COMPACT') . ' - ' . $gL10n->get('SYS_PARTICIPANTS'), 'description' => $gL10n->get('DAT_VIEW_MODE_COMPACT') . ' - ' . $gL10n->get('SYS_DESCRIPTION')); }
// Jede Rolle wird nun dem Array hinzugefuegt $parentRoleSet[] = array($row_roles->rol_id, $row_roles->rol_name, $row_roles->cat_name); } } else { // create new array with numeric keys for logic of method addSelectBox $newParentRoleSet = array(); foreach ($parentRoleSet as $role) { $newParentRoleSet[] = array($role['rol_id'], $role['rol_name'], null); } $parentRoleSet = $newParentRoleSet; } // get assigned roles of this folder $roleSet = $folder->getRoleArrayOfFolder(); // if no roles are assigned then set "all users" as default if (count($roleSet) === 0) { $roleSet[] = 0; } // create html page object $page = new HtmlPage($headline); // add back link to module menu // @ptabaden: Changed Icon $folderConfigMenu = $page->getMenu(); $folderConfigMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), '<i class="fa fa-arrow-left" alt="' . $gL10n->get('SYS_BACK') . '" title="' . $gL10n->get('SYS_BACK') . '"></i><div class="iconDescription">' . $gL10n->get('SYS_BACK') . '</div>', ''); $page->addHtml('<p class="lead">' . $gL10n->get('DOW_ROLE_ACCESS_PERMISSIONS_DESC', $folder->getValue('fol_name')) . '</p>'); // show form $form = new HtmlForm('folder_rights_form', $g_root_path . '/adm_program/modules/downloads/download_function.php?mode=7&folder_id=' . $getFolderId, $page); $form->addSelectBox('adm_allowed_roles', $gL10n->get('DAT_VISIBLE_TO'), $parentRoleSet, array('property' => FIELD_REQUIRED, 'defaultValue' => $roleSet, 'multiselect' => true)); $form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png', 'class' => ' col-sm-offset-3')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show();
// if current user can edit profiles than create link to profile otherwise create link to auto assign new registration if ($gCurrentUser->editUsers()) { $urlCreateNewUser = $g_root_path . '/adm_program/modules/profile/profile_new.php?new_user=3&user_id=' . $getNewUserId; } else { $urlCreateNewUser = $g_root_path . '/adm_program/modules/registration/registration_function.php?mode=5&new_user_id=' . $getNewUserId; } if ($members_found === 0) { // if user doesn't exists than show profile or auto assign roles header('Location: ' . $urlCreateNewUser); exit; } $gNavigation->addUrl(CURRENT_URL, $headline); // create html page object $page = new HtmlPage($headline); // add back link to module menu $registrationAssignMenu = $page->getMenu(); $registrationAssignMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); $page->addHtml(' <p class="lead">' . $gL10n->get('SYS_SIMILAR_USERS_FOUND', $new_user->getValue('FIRST_NAME') . ' ' . $new_user->getValue('LAST_NAME')) . '</p> <div class="panel panel-default"> <div class="panel-heading">' . $gL10n->get('SYS_USERS_FOUND') . '</div> <div class="panel-body">'); // show all found users with their address who have a similar name and show link for further handling $i = 0; while ($row = $usrStatement->fetchObject()) { if ($i > 0) { $page->addHtml('<hr />'); } $page->addHtml('<p> <a class="btn" href="' . $g_root_path . '/adm_program/modules/profile/profile.php?user_id=' . $row->usr_id . '"><img src="' . THEME_PATH . '/icons/profile.png" alt="' . $gL10n->get('SYS_SHOW_PROFILE') . '" />' . $row->first_name . ' ' . $row->last_name . '</a><br />');
if ($currentFolder->getValue('fol_fol_id_parent') == null) { $headline = $gL10n->get('DOW_DOWNLOADS'); } else { $headline = $gL10n->get('DOW_DOWNLOADS') . ' - ' . $currentFolder->getValue('fol_name'); } // Navigation of the module starts here $gNavigation->addStartUrl(CURRENT_URL, $headline); $getFolderId = $currentFolder->getValue('fol_id'); // Get folder content for style $folderContent = $currentFolder->getFolderContentsForDownload(); // Keep navigation link $navigationBar = $currentFolder->getNavigationForDownload(); // create html page object $page = new HtmlPage($headline); // get module menu $DownloadsMenu = $page->getMenu(); if ($gCurrentUser->editDownloadRight()) { // upload only possible if upload filesize > 0 if ($gPreferences['max_file_upload_size'] > 0) { // show links for upload, create folder and folder configuration $DownloadsMenu->addItem('admMenuItemCreateFolder', $g_root_path . '/adm_program/modules/downloads/folder_new.php?folder_id=' . $getFolderId, $gL10n->get('DOW_CREATE_FOLDER'), 'folder_create.png'); $DownloadsMenu->addItem('admMenuItemAddFile', $g_root_path . '/adm_program/modules/downloads/upload.php?folder_id=' . $getFolderId, $gL10n->get('DOW_UPLOAD_FILE'), 'page_white_upload.png'); } $DownloadsMenu->addItem('admMenuItemConfigFolder', $g_root_path . '/adm_program/modules/downloads/folder_config.php?folder_id=' . $getFolderId, $gL10n->get('SYS_AUTHORIZATION'), 'lock.png'); } if ($gCurrentUser->isWebmaster()) { // show link to system preferences of weblinks $DownloadsMenu->addItem('admMenuItemPreferencesLinks', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=downloads', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right'); } //Create table object $downloadOverview = new HtmlTable('tbl_downloads', $page, true, true);
$page->addHtml('<h5>' . $htmlSubHeadline . '</h5>'); $page->addJavascript(' $("#export_list_to").change(function () { if($(this).val().length > 1) { var result = $(this).val(); $(this).prop("selectedIndex",0); self.location.href = "' . $g_root_path . '/adm_program/modules/lists/lists_show.php?" + "lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=" + result + "&show_members=' . $getShowMembers . '&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '"; } }); $("#menu_item_print_view").click(function () { window.open("' . $g_root_path . '/adm_program/modules/lists/lists_show.php?lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=print&show_members=' . $getShowMembers . '&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '", "_blank"); });', true); // get module menu $listsMenu = $page->getMenu(); $listsMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); if ($getFullScreen) { $listsMenu->addItem('menu_item_normal_picture', $g_root_path . '/adm_program/modules/lists/lists_show.php?lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=html&show_members=' . $getShowMembers . '&full_screen=false&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '', $gL10n->get('SYS_NORMAL_PICTURE'), 'arrow_in.png'); } else { $listsMenu->addItem('menu_item_full_screen', $g_root_path . '/adm_program/modules/lists/lists_show.php?lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=html&show_members=' . $getShowMembers . '&full_screen=true&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '', $gL10n->get('SYS_FULL_SCREEN'), 'arrow_out.png'); } if ($numberRoles === 1) { // link to assign or remove members if you are allowed to do it if ($role->allowedToAssignMembers($gCurrentUser)) { $listsMenu->addItem('menu_item_assign_members', $g_root_path . '/adm_program/modules/lists/members_assignment.php?rol_id=' . $role->getValue('rol_id'), $gL10n->get('SYS_ASSIGN_MEMBERS'), 'add.png'); } } // link to print overlay and exports $listsMenu->addItem('menu_item_print_view', '#', $gL10n->get('LST_PRINT_PREVIEW'), 'print.png'); $form = new HtmlForm('navbar_export_to_form', '', $page, array('type' => 'navbar', 'setFocus' => false));
if ($delete) { echo 'done'; } else { echo 'delete not OK'; } exit; } $headline = $gL10n->get('SYS_MESSAGES'); // add current url to navigation stack $gNavigation->clear(); $gNavigation->addUrl(CURRENT_URL, $headline); // create html page object $page = new HtmlPage($headline); $page->enableModal(); // get module menu for emails $EmailMenu = $page->getMenu(); // link to write new email if ($gPreferences['enable_mail_module'] == 1) { // @ptabaden: changed icon $EmailMenu->addItem('admMenuItemNewEmail', $g_root_path . '/adm_program/modules/messages/messages_write.php', '<i class="fa fa-pencil-square-o" alt="' . $gL10n->get('MAI_SEND_EMAIL') . '" title="' . $gL10n->get('MAI_SEND_EMAIL') . '"></i><div class="iconDescription">' . $gL10n->get('MAI_SEND_EMAIL') . '</div>', ''); } // link to write new PM if ($gPreferences['enable_pm_module'] == 1) { $EmailMenu->addItem('admMenuItemNewPm', $g_root_path . '/adm_program/modules/messages/messages_write.php?msg_type=PM', $gL10n->get('PMS_SEND_PM'), '/pm.png'); } // link to Chat // @ptabaden: hide chat! // if ($gPreferences['enable_chat_module'] == 1) // { // $EmailMenu->addItem('admMenuItemNewChat', $g_root_path.'/adm_program/modules/messages/messages_chat.php', $gL10n->get('MSG_CHAT'), '/chat.png'); // }
INNER JOIN ' . TBL_INVENT_DATA . ' as item_name ON item_name.ind_itm_id = inv_id AND item_name.ind_inf_id = ' . $gInventoryFields->getProperty('ITEM_NAME', 'inf_id') . ' INNER JOIN ' . TBL_INVENT_DATA . ' as room_id ON room_id.ind_itm_id = inv_id AND room_id.ind_inf_id = ' . $gInventoryFields->getProperty('ROOM_ID', 'inf_id') . ' WHERE inv_valid = 1 ORDER BY item_name.ind_value, room_id.ind_value '; $mglStatement = $gDb->query($sql); // create html page object $page = new HtmlPage($headline); $page->addJavascript(' $(".admidio-icon-link-popup").colorbox({rel:\'nofollow\', scrolling:false, onComplete:function() { $("#admButtonNo").focus(); }}); ', true); // get module menu $itemsAdministrationMenu = $page->getMenu(); $itemsAdministrationMenu->addItem('menu_item_create_user', $g_root_path . '/adm_program/modules/inventory/item_new.php', $gL10n->get('INV_CREATE_ITEM'), 'add.png'); // show link to room management $itemsAdministrationMenu->addItem('menu_item_manage_rooms', $g_root_path . '/adm_program/modules/rooms/rooms.php', $gL10n->get('DAT_SWITCH_TO_ROOM_ADMINISTRATION'), 'home.png'); if ($gCurrentUser->isWebmaster()) { // show link to maintain profile fields $itemsAdministrationMenu->addItem('menu_item_maintain_inventory_fields', $g_root_path . '/adm_program/modules/inventory/fields.php', $gL10n->get('PRO_MAINTAIN_ITEM_FIELDS'), 'application_form_edit.png'); } // Create table object $itemsTable = new HtmlTable('tbl_invent', $page, true, true, 'table table-condensed'); // create array with all column heading values $columnHeading = array($gL10n->get('SYS_ABR_NO'), $gL10n->get('SYS_NAME'), $gL10n->get('SYS_ROOM'), $gL10n->get('MEM_UPDATED_ON'), ' '); $itemsTable->setColumnAlignByArray(array('left', 'left', 'left', 'left', 'right')); $itemsTable->disableDatatablesColumnsSort(5); $itemsTable->addRowHeadingByArray($columnHeading); $itemsTable->setDatatablesRowsPerPage($gPreferences['members_users_per_page']);
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only *********************************************************************************************** */ // if config file doesn't exists, than show installation dialog if (!file_exists('../adm_my_files/config.php')) { header('Location: installation/index.php'); exit; } require_once 'system/common.php'; $headline = 'Admidio ' . $gL10n->get('SYS_OVERVIEW'); // Navigation of the module starts here $gNavigation->addStartUrl(CURRENT_URL, $headline); // create html page object $page = new HtmlPage($headline); // main menu of the page $mainMenu = $page->getMenu(); if ($gValidLogin) { // show link to own profile $mainMenu->addItem('adm_menu_item_my_profile', $g_root_path . '/adm_program/modules/profile/profile.php', $gL10n->get('PRO_MY_PROFILE'), 'profile.png'); // show logout link $mainMenu->addItem('adm_menu_item_logout', $g_root_path . '/adm_program/system/logout.php', $gL10n->get('SYS_LOGOUT'), 'door_in.png'); } else { // show login link $mainMenu->addItem('adm_menu_item_login', $g_root_path . '/adm_program/system/login.php', $gL10n->get('SYS_LOGIN'), 'key.png'); if ($gPreferences['registration_mode'] > 0) { // show registration link $mainMenu->addItem('adm_menu_item_registration', $g_root_path . '/adm_program/modules/registration/registration.php', $gL10n->get('SYS_REGISTRATION'), 'new_registrations.png'); } } // menu with links to all modules of Admidio $moduleMenu = new Menu('index_modules', $gL10n->get('SYS_MODULES'));
case 2: if (isset($_SESSION['add_organization_request'])) { $formValues = strStripSlashesDeep($_SESSION['add_organization_request']); unset($_SESSION['add_organization_request']); } else { $formValues['orgaShortName'] = ''; $formValues['orgaLongName'] = ''; $formValues['orgaEmail'] = ''; } $headline = $gL10n->get('INS_ADD_ORGANIZATION'); // create html page object $page = new HtmlPage($headline); // add current url to navigation stack $gNavigation->addUrl(CURRENT_URL, $headline); // add back link to module menu $organizationNewMenu = $page->getMenu(); $organizationNewMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); $page->addHtml('<p class="lead">' . $gL10n->get('ORG_NEW_ORGANIZATION_DESC') . '</p>'); // show form $form = new HtmlForm('add_new_organization_form', $g_root_path . '/adm_program/modules/preferences/preferences_function.php?mode=3', $page); $form->addInput('orgaShortName', $gL10n->get('SYS_NAME_ABBREVIATION'), $formValues['orgaShortName'], array('maxLength' => 10, 'property' => FIELD_REQUIRED, 'class' => 'form-control-small')); $form->addInput('orgaLongName', $gL10n->get('SYS_NAME'), $formValues['orgaLongName'], array('maxLength' => 50, 'property' => FIELD_REQUIRED)); $form->addInput('orgaEmail', $gL10n->get('ORG_SYSTEM_MAIL_ADDRESS'), $formValues['orgaEmail'], array('type' => 'email', 'maxLength' => 50, 'property' => FIELD_REQUIRED)); $form->addSubmitButton('btn_foward', $gL10n->get('INS_SET_UP_ORGANIZATION'), array('icon' => THEME_PATH . '/icons/database_in.png', 'class' => ' col-sm-offset-3')); // add form to html page and show page $page->addHtml($form->show(false)); $page->show(); break; case 3: /******************************************************/ /* Create basic data for new organization in database */
} if (isset($_SESSION['profile_request']['usr_login_name'])) { $inventory->setArray(array('usr_login_name' => $_SESSION['profile_request']['usr_login_name'])); } if (isset($_SESSION['profile_request']['reg_org_id'])) { $registrationOrgId = $_SESSION['profile_request']['reg_org_id']; } unset($_SESSION['profile_request']); } // create html page object $page = new HtmlPage($headline); $page->addJavascript(' var profileJS = new profileJSClass(); profileJS.init();', true); // add back link to module menu $profileEditMenu = $page->getMenu(); $profileEditMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png'); // create html form $form = new HtmlForm('edit_item_form', $g_root_path . '/adm_program/modules/inventory/item_save.php?item_id=' . $getItemId . '&new_item=' . $getNewItem, $page); // ******************************************************************************* // Schleife ueber alle Kategorien und Felder ausser den Stammdaten // ******************************************************************************* $category = ''; foreach ($gInventoryFields->mInventoryFields as $field) { // Kategorienwechsel den Kategorienheader anzeigen // bei schneller Registrierung duerfen nur die Pflichtfelder ausgegeben werden if ($category != $field->getValue('cat_name')) { if ($category !== '') { // div-Container admGroupBoxBody und admGroupBox schliessen $form->closeGroupBox(); }