CMS  Version 3.9
feedback.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("activity_tracker");
3 Fakoli::usingFeature("data_view");
4 
5 $menu_item = "Feedback";
6 
7 $feedback = Query::create(UserFeedback, "ORDER BY created_date DESC")->execute();
8 
9 $table = new DataListView($feedback, "feedback_table");
10 $table->column("Date", "{created_date}", true, "width: 15%")
11  ->column("User & Session", "<a href='/admin/session_details?session={session}'>{User.first_name} {User.last_name}<br/>{session}</a>", true, "width:25%")
12  ->column("Feedback", "{feedback}", false, "width: 35%")
13  ->column("URI", "{referer}", false, "width: 25%")
14  ;
15 
16 $table->filter = true;
17 $table->pageSize = 20;
18 $table->sortable = true;
19 $table->excelFile = "feedback.xls";
20 
21 $script .= $table->writeScript();
22 
23 $table->drawView();
24 ?>
$menu_item
Definition: feedback.inc:5
$table
Definition: feedback.inc:9
$feedback
Definition: feedback.inc:7
$script
Definition: feedback.inc:21
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116