CMS  Version 3.9
sections.inc File Reference

Go to the source code of this file.

Variables

 $menu_item = "Sections"
 
 $site_id = checkNumeric($_GET["site_id"])
 
 $sites = query(Site, "ORDER BY site_name")
 
 $tabs = new DataItemTabBar("tabs", $sites)
 
 $sections
 
 $table = new DataListView($sections, "sections")
 
$table filter = true
 
$table sortable = true
 
$table emptyMessage = "No sections have been created."
 
 $script = $table->writeScript()
 

Variable Documentation

◆ $menu_item

$menu_item = "Sections"

Definition at line 37 of file sections.inc.

◆ $script

$script = $table->writeScript()

Definition at line 62 of file sections.inc.

◆ $sections

$sections
Initial value:
= Query::create(Section, "WHERE site_id=:s ORDER BY section")
->bind(":s", $site_id)
->execute()
Section DataItem, defining the data model for sections within a site.
Definition: section.inc:45
$site_id
Definition: sections.inc:39

Definition at line 48 of file sections.inc.

◆ $site_id

$site_id = checkNumeric($_GET["site_id"])

Definition at line 39 of file sections.inc.

◆ $sites

$sites = query(Site, "ORDER BY site_name")

Definition at line 41 of file sections.inc.

◆ $table

$table = new DataListView($sections, "sections")

Definition at line 52 of file sections.inc.

◆ $tabs

$tabs = new DataItemTabBar("tabs", $sites)

Definition at line 46 of file sections.inc.

◆ emptyMessage

$table emptyMessage = "No sections have been created."

Definition at line 60 of file sections.inc.

◆ filter

$table filter = true

Definition at line 58 of file sections.inc.

◆ sortable

$table sortable = true

Definition at line 59 of file sections.inc.