CMS
Version 3.9
redirects.inc
Go to the documentation of this file.
1
<?php
2
Fakoli::using
(
"redirect"
);
3
4
$menu_item
=
"Redirects"
;
5
6
$redirects
= Query::create(
Redirect
,
"ORDER BY redirect_from"
)->execute();
7
8
$table
=
new
DataListView(
$redirects
,
"redirects"
);
9
$table
->column(
"Redirect From"
,
"<a href='redirect_form?redirect_id={redirect_id}'>{redirect_from}</a>"
,
true
,
"width: 30%"
)
10
->column(
"Redirect To"
,
"<a href='{redirect_to}' target='_blank'>{redirect_to}</a>"
,
true
,
"width: 30%"
)
11
->column(
"Last Modified"
,
"{last_modified}"
,
true
,
"width: 20%; text-align: center"
)
12
->column(
"Override"
,
"{override:Yes/No}"
,
true
,
"width: 10%; text-align: center"
)
13
->column(
"Active"
,
"{active:Yes/No}"
,
true
,
"width: 10%; text-align: center"
);
14
15
$table
->pageSize = 20;
16
$table
->filter =
true
;
17
$table
->excelFile =
"redirects.xls"
;
18
$table
->emptyMessage =
"You have not yet defined any redirects"
;
19
20
$script
.=
$table
->writeScript();
21
$table
->drawView();
22
23
?>
24
<br/>
25
<a
class
=
'button'
href=
'redirect_form'
>Add
Redirect
</a>
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
Redirect
Definition:
redirect.inc:8
$redirects
$redirects
Definition:
redirects.inc:6
$menu_item
$menu_item
Definition:
redirects.inc:4
$table
$table
Definition:
redirects.inc:8
$script
$script
Definition:
redirects.inc:20
code
cms.sonjara.com
cms
components
redirect
admin
redirects.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1