Esempio n. 1
0
        $count++;
    }
}
// create html page object
$page = new HtmlPage($getHeadline);
if ($getViewMode === 'html' || $getViewMode === 'compact') {
    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('
        $("#admCalendar").change(function () {
            var calendarId = "";
            if ($("#admCalendar").selectedIndex != 0) {
                var calendarId = $("#admCalendar").val();
            }
            self.location.href = "dates.php?mode=' . $getMode . '&headline=' . $getHeadline . '&date_from=' . $dates->getParameter('dateStartFormatAdmidio') . '&date_to=' . $dates->getParameter('dateEndFormatAdmidio') . '&cat_id=" + calendarId;
        });', true);
    $page->addJavascript('
        function Datefilter() {
            var field_error = "' . $gL10n->get('ECA_FIELD_ERROR') . '";

            if (document.Formular.date_from.value == ""
            ||  document.Formular.date_to.value   == "") {
                alert(field_error);
                document.Formular.date_from.focus();
                return false;
            }
        }');
    // If default view mode is set to compact we need a back navigation if one date is selected for detail view
    if ($gPreferences['dates_viewmode'] === 'compact' && $getViewMode === 'html' && $getId > 0) {
        // add back link to module menu
Esempio n. 2
0
    // Navigation of the module starts here
    $gNavigation->addStartUrl(CURRENT_URL, $dates->getHeadline($getHeadline));
}
// create html page object
$page = new HtmlPage($dates->getHeadline($getHeadline));
$page->enableModal();
if ($getViewMode === 'html') {
    $datatable = true;
    $hoverRows = true;
    $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) {
Esempio n. 3
0
    $gNavigation->addStartUrl(CURRENT_URL, $dates->getHeadline($getHeadline));
}
// create html page object
// @ptabaden: detailed event view with main title, added calendar name (roverstufe, leiter etc.)
$page = new HtmlPage($dates->getHeadline($getHeadline));
$page->enableModal();
if ($getViewMode === 'html') {
    $datatable = true;
    $hoverRows = true;
    $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
        // @ptabaden: changed icon
        $datesMenu = $page->getMenu();
        $datesMenu->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>', '');
    }
    // get module menu
    $DatesMenu = $page->getMenu();
    //Add new event