CMS  Version 3.9
custom_reports.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("report", "text_lookup");
3 
4 $page->page_title = "Custom Reports";
5 
6 $common = new CustomReportListView("Most Commonly Used Reports", "common_reports", "shared = 1", 2);
7 $myReports = new CustomReportListView("My Reports", "my_reports", "user_id={$user->user_id}", 4);
8 
9 $script .= $common->writeScript();
10 $script .= $myReports->writeScript();
11 
12 echo TextLookup::getText("custom_reports_intro");
13 
14 $common->drawView();
15 $myReports->drawView();
16 
17 ?>
18 <p><a class='button' href='#' onclick='ReportManager.createReportDialog();return false;'><i class='fas fa-plus'></i> Create a New Report</a></p>
$common
$myReports
$script
$page
Definition: help.inc:39
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static getText($code, $obj=null, $blank=false)
Retrieves text for display on a page, given the code.
Definition: text_lookup.inc:85