예제 #1
0
if (isset($_GET['eswordtoggle'])) {
    $database_config_bible->setExportESwordDuringNight($bible, !$database_config_bible->getExportESwordDuringNight($bible));
    $view->view->success = Locale_Translate::_("The setting for nightly export to e-Sword format was updated.");
}
$view->view->esword = $database_config_bible->getExportESwordDuringNight($bible);
if (isset($_GET['eswordnow'])) {
    Export_Logic::scheduleESword($bible);
    $view->view->success = Locale_Translate::_("The Bible is being exported to e-Sword format.");
}
if (isset($_GET['onlinebibletoggle'])) {
    $database_config_bible->setExportOnlineBibleDuringNight($bible, !$database_config_bible->getExportOnlineBibleDuringNight($bible));
    $view->view->success = Locale_Translate::_("The setting for nightly export to Online Bible format was updated.");
}
$view->view->onlinebible = $database_config_bible->getExportOnlineBibleDuringNight($bible);
if (isset($_GET['onlinebiblenow'])) {
    Export_Logic::scheduleOnlineBible($bible);
    $view->view->success = Locale_Translate::_("The Bible is being exported to Online Bible format.");
}
if (isset($_GET['sheet'])) {
    $sheet = $_GET['sheet'];
    if ($sheet == "") {
        $dialog_list = new Dialog_List2(Locale_Translate::_("Would you like to use another stylesheet for the exports?"));
        $database_styles = Database_Styles::getInstance();
        $sheets = $database_styles->getSheets();
        foreach ($sheets as $sheet) {
            $parameter = "&sheet={$sheet}";
            $dialog_list->add_row($sheet, $parameter);
        }
        $dialog_list->run();
    } else {
        $database_config_bible->setExportStylesheet($bible, $sheet);