} } } $versification = $database_config_bible->getVersificationSystem($bible); $view->view->versification = $versification; // Verse mapping. @($mapping = $_GET['mapping']); if (isset($mapping)) { if ($mapping == "") { $dialog = new Dialog_List(array("bible"), Locale_Translate::_("Would you like to change the verse mapping?"), Locale_Translate::_("A verse mapping can be used to match verses for parallel Bible display. Please make your choice below."), ""); $database_mappings = Database_Mappings::getInstance(); $mapping_names = $database_mappings->names(); foreach ($mapping_names as $mapping_name) { $dialog->add_row($mapping_name, "&mapping={$mapping_name}"); } $dialog->run(); die; } else { if ($write_access) { $database_config_bible->setVerseMapping($bible, $mapping); } } } $mapping = $database_config_bible->getVerseMapping($bible); $view->view->mapping = $mapping; // Book creation. @($createbook = $_GET['createbook']); if (isset($createbook)) { if ($createbook == "") { $dialog_books = new Dialog_Books(array("bible"), Locale_Translate::_("Create book"), "", "", "createbook", NULL, $database_bibles->getBooks($bible)); die;
$userint2 = $_GET['userint2']; if ($write) { $database_styles->updateUserint2($sheet, $style, $userint2); } } $view->view->userint2 = $styles_logic->noteRestartNumberingText($userint2); break; case UserInt2EndnotePosition: $view->view->userint2_endnoteposition = true; if (isset($_GET['endnoteposition'])) { $dialog_list = new Dialog_List(array("sheet", "style"), Locale_Translate::_("Would you like to change the position where to dump the endnotes?"), "", ""); $styles_logic = Styles_Logic::getInstance(); for ($i = EndNotePositionAfterBook; $i <= EndNotePositionAtMarker; $i++) { $dialog_list->add_row($styles_logic->endNotePositionText($i), "&userint2={$i}"); } $dialog_list->run(); die; } if (isset($_GET['userint2'])) { $userint2 = $_GET['userint2']; if ($write) { $database_styles->updateUserint2($sheet, $style, $userint2); } } $view->view->userint2 = $styles_logic->endNotePositionText($userint2); break; } // Userint3 not yet used. // Userstring1. $userstring1 = $marker_data['userstring1']; switch ($styles_logic->getUserString1Function($type, $subtype)) {