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
$menu_item
Definition:
feedback.inc:5
$table
$table
Definition:
feedback.inc:9
$feedback
$feedback
Definition:
feedback.inc:7
$script
$script
Definition:
feedback.inc:21
Fakoli\usingFeature
static usingFeature()
Uses the specified framework feature(s).
Definition:
core.inc:388
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
UserFeedback
Definition:
feedback.inc:9
code
cms.sonjara.com
cms
components
activity_tracker
admin
feedback.inc
Generated on Tue Mar 23 2021 15:36:11 for CMS by
1.9.1