do_interface_js();
$notices = getNotices();
if (!empty($notices)) {
echo renderNotices($notices);
}
$collapsed = isset($_COOKIE['acpState']) && $_COOKIE['acpState'] == 0 ? ' collapsed' : '';
?>
' + data.title + '
';
}
});
} else {
result = '' + e.status + '';
}
$('ul#app_search_result').html(result).show();
}
});
});
");
}
/**
* Primary Sectional Menu
*/
private function left_nav() {
$aidlink = fusion_get_aidlink();
$locale = parent::get_locale();
$sections = Admins::getInstance()->getAdminSections();
$sections[] = $locale['admin_collapse'];
$this->admin_section_icons[] = "\n";
$pages = Admins::getInstance()->getAdminPages();
$section_count = count($sections);
?>
$section_name) :
$active = ((isset($_GET['pagenum']) && $_GET['pagenum'] == $i) || (!isset($_GET['pagenum']) && $this->_isActive() == $i)) ? TRUE : FALSE;
$is_menu_action = $i + 1 == $section_count ? TRUE : FALSE;
$has_page = isset($pages[$i]) ? TRUE : FALSE;
$href_src = "";
if ($has_page) {
$href_src = "data-load=\"$i\"";
} else if (!$is_menu_action) {
$href_src = "href=\"".ADMIN.$aidlink."&pagenum=$i\"";
}
$acpState = isset($_COOKIE['acpState']) && $_COOKIE['acpState'] == 0 ? ' style="display:none;"' : '';
?>
- >
");
add_to_footer("");
}
/**
* Applications List Menu
* todo: find corresponding description of admin pages in model - maybe page section
*/
private function app_nav() {
$aidlink = parent::get_aidlink();
$locale = parent::get_locale();
$sections = Admins::getInstance()->getAdminSections();
$pages = Admins::getInstance()->getAdminPages();
$is_current_page = parent::_currentPage();
echo "\n";
foreach ($sections as $i => $section_name) :
if (!empty($pages[$i]) && is_array($pages[$i])) :
echo "\n";
foreach ($pages[$i] as $key => $data) :
$secondary_active = $data['admin_link'] == $is_current_page ? "class='active'" : '';
$title = $data['admin_title'];
$link = ADMIN.$data['admin_link'].$aidlink;
if ($data['admin_page'] !== 5) {
$title = isset($locale[$data['admin_rights']]) ? $locale[$data['admin_rights']] : $title;
}
if (checkrights($data['admin_rights'])) :
?>
- >
"/>
\n";
endif;
endforeach;
}
private function adminHeader() {
$locale = self::get_locale();
$userdata = self::get_userdata();
$aidlink = self::get_aidlink();
$page_title = self::get_title();
?>
0) {
while ($data = dbarray($msg_result)) {
$messages[] = [
"link" => BASEDIR."messages.php?folder=inbox&msg_read=".$data['message_id'],
"title" => $data['message_subject'],
"sender" => [
"user_id" => $data['sender_id'],
"user_name" => $data['sender_name'],
"user_avatar" => $data['sender_avatar'],
"user_status" => $data['sender_status'],
],
"datestamp" => timer($data['message_datestamp']),
];
}
}
}
$html = '- ';
if (!empty($messages)) {
$html .= '
'.count($messages).'
';
} else {
$html .= '
';
}
$html .= "
";
return $html;
}
private function display_admin_pages() {
$aidlink = fusion_get_aidlink();
$sections = Admins::getInstance()->getAdminSections();
echo "\n";
}
public static function opentable($title, $class = NULL) {
if (!empty($title)) : ?>
';
}
public static function closetable($title = FALSE, $class = NULL) {
echo '';
if (!empty($title)) {
echo "";
}
}
public static function openside($title = FALSE, $class = NULL) {
if (!empty($title)) : ?>
">
$title
";
}
}
}