<< Back to embedding reports

Embed Report Menu

This is a project menu embedded into a page. User can select reports and run them but not get access to the admin page.

        require_once('reportico.php');
        $q = new reportico();        // Fetches reportico engine
        $q->access_mode = "ONEPROJECT"                // Allows access to a project and all reports in that project
        $q->initial_execute_mode = "MENU";            // Starts user in Project Menu mode
        $q->initial_project = "northwind";            // Name of report project folder
        $q->bootstrap_styles = "3";                   // Set to "3" for bootstrap v3, "2" for V2 or false for no bootstrap
        $q->force_reportico_mini_maintains = true;    // Often required
        $q->bootstrap_preloaded = true;               // true if you dont need Reportico to load its own bootstrap
        $q->clear_reportico_session = true;           // Normally required
        $q->execute();                                // Run Reportico