Beispiel #1
0
            $nc_field_path = null;
        } else {
            eval("echo \"" . $cc_env['RecordTemplateFull'] . "\";");
        }
    }
    if ($admin_mode && !$GLOBALS['isNaked']) {
        echo "</div>";
    }
} while (false);
$nc_result_msg = ob_get_clean();
$lsDisplayType = $nc_core->get_display_type();
if (!$nc_core->inside_admin && !$isNaked && $lsDisplayType == 'shortpage') {
    $nc_result_msg = "<div " . nc_ls_display_container() . ">" . $nc_result_msg . "</div>";
}
if (!$nc_core->inside_admin && $nc_core->input->fetch_get('lsDisplayType') && $lsDisplayType == 'shortpage') {
    $nc_result_msg = $nc_result_msg . nc_include_quickbar_updates();
}
if ($File_Mode) {
    require_once $INCLUDE_FOLDER . 'index_fs.inc.php';
    if (!$templatePreview) {
        if ($nc_core->inside_admin && $UI_CONFIG) {
            // для админки
            $UI_CONFIG->locationHash = "object.view(" . $cc . "," . $message . ")";
            // edit button
            $UI_CONFIG->actionButtons = array();
            $UI_CONFIG->actionButtons[] = array("id" => "editObject", "caption" => NETCAT_MODERATION_CHANGE, "action" => "parent.nc_form('{$SUB_FOLDER}{$nc_core->HTTP_ROOT_PATH}message.php?inside_admin=1&cc={$cc}&message={$message}')", "align" => "left");
            /*$UI_CONFIG->actionButtons[] = array(
                  "id" => "deleteObject",
                  "caption" => NETCAT_MODERATION_DELETE,
                  "style" => "delete",
                  "action" => "urlDispatcher.load('object.delete(" . $cc . ", " . $message . ")')"
Beispiel #2
0
            $shortpageTemplateView = new nc_template_view($nc_core->TEMPLATE_FOLDER, $nc_core->db);
            $shortpageTemplateView->load_template($subdivision['Template_ID'], $subdivisionTemplate['File_Path']);
            foreach ($shortpageTemplateView->get_all_settings_path_in_array() as $path) {
                include $path;
            }
            $shortpageTemplateView->fill_fields();
        }
        if ($File_Mode) {
            echo $shortpageTemplateView->get_header();
        } else {
            eval("echo \"" . $subdivisionTemplate['Header'] . "\";");
        }
    }
    echo $nc_main_content;
    if ($inputDisplayType == 'shortpage') {
        echo nc_include_quickbar_updates();
    }
    if ($subdivisionTemplate) {
        if ($File_Mode) {
            echo $shortpageTemplateView->get_footer();
        } else {
            eval("echo \"" . $subdivisionTemplate['Footer'] . "\";");
        }
    }
}
$old_current_sub = $current_sub;
$old_current_cc = $current_cc;
//longpage display view
if (!$nc_core->inside_admin && $sub != $current_catalogue['E404_Sub_ID'] && $lsDisplayType == 'longpage_vertical') {
    $catalogue = $nc_core->catalogue->get_current();
    $subdivision = $nc_core->subdivision->get_current();