40 require_once
"include/menu_tabs.inc";
57 $title =
"Manage Menu Items for {$menu->name}";
68 $menuNode =
new TreeNode(
"menu_item_{$m->menu_item_id}", $m->title,
null,
false,
"tree_node_closed",
"tree_node_open",
"/admin/menu_item_form?menu_item_id={$m->menu_item_id}&parent_id={$m->parent_id}");
70 $tmp = Array(
'parent' => $m->parent_id,
77 if (empty($display[
'parent'])) {
81 $parentNode =
$displays[ $display[
'parent'] ][
'node'];
84 $parentNode->add($display[
'node']);
97 <div
class=
"tab_border">
111 <td
align=
"left"><input type=
"button" class=
"button" value=
" Add a New Menu Item" onclick=
"go('/admin/menu_item_form?menu_id=<?echo $menu->menu_id?>&parent_id=0');"></td>
static using()
Import the datamodels, views and manifest for the specified component(s).
static usingFile()
Uses the specified framework file(s) from the framework directory.
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.