//
// ... your page content ... //
// // ============================================================ $currentPage = basename($_SERVER['PHP_SELF'], '.php'); $menuItems = [ [ 'id' => 'home', 'label' => 'Home', 'icon' => 'fa-house', 'href' => 'table.php?o=fidCurDate', ], [ 'id' => 'daily', 'label' => 'Daily', 'icon' => 'fa-chart-bar', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfDaily');return false;", ], [ 'id' => 'week', 'label' => 'Week', 'icon' => 'fa-receipt', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfWeekly');return false;", ], [ 'id' => 'month', 'label' => 'Month', 'icon' => 'fa-calendar', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfMonthly');return false;", ], [ 'id' => 'year', 'label' => 'Year', 'icon' => 'fa-calendar-days', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfYearly');return false;", ], [ 'id' => 'admin', 'label' => 'Admin', 'icon' => 'fa-user-cog', 'href' => '#', 'children' => [ ['label' => 'Dups of Duplicate Dates', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=dup');return false;"], ['label' => 'Count of Duplicate Dates', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=DupCnt');return false;"], ['label' => 'Duplicates', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=Duplicates');return false;"], ['divider' => true], ['label' => 'Max/Min Fields', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=maxMin');return false;"], ['label' => 'Max/Min By Year', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=yrMaxMin');return false;"], ['label' => 'Max/Min Diff by Year', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=yrMaxMinDiff');return false;"], ], ], [ 'id' => 'perf', 'label' => 'Perf', 'icon' => 'fa-tachometer-alt', 'href' => '#', 'children' => [ ['label' => 'Perf Yearly', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfYearly');return false;"], ['label' => 'Perf Weekly', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfWeekly');return false;"], ['label' => 'Perf Monthly', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfMonthly');return false;"], ['label' => 'Perf Daily', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=perfDaily');return false;"], ], ], [ 'id' => 'reports', 'label' => 'Reports', 'icon' => 'fa-file-alt', 'href' => '#', 'children' => [ ['label' => 'MinMax fidTot', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=btnMinMaxFidTot');return false;"], // Add more report items here ], ], [ 'id' => 'mega', 'label' => 'More Tools', 'icon' => 'fa-th', 'href' => '#', 'mega' => [ [ 'heading' => 'Database Validation', 'items' => [ ['label' => 'Missing Days', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=misDay');return false;"], ['label' => 'Value Check', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=btnValidDb');return false;"], ['label' => 'Default', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=def');return false;"], ], ], [ 'heading' => 'Test', 'items' => [ ['label' => 'Missing Days', 'href' => '#', 'onclick' => "dbLoadFile('#divContent','getData.php?r=misDay');return false;"], ], ], [ 'heading' => 'Category 3', 'items' => [ ['label' => 'Item 7', 'href' => '#'], ['label' => 'Item 8', 'href' => '#'], ['label' => 'Item 9', 'href' => '#'], ], ], [ 'heading' => 'Category 4', 'items' => [ ['label' => 'Item 10', 'href' => '#'], ['label' => 'Item 11', 'href' => '#'], ['label' => 'Item 12', 'href' => '#'], ], ], ], ], [ 'id' => 'orderby', 'label' => 'Orderby', 'icon' => 'fa-sort', 'href' => '#', 'children' => [ ['label' => 'ASC', 'href' => '#', 'onclick' => "setOrderDir('ASC');return false;"], ['label' => 'DESC', 'href' => '#', 'onclick' => "setOrderDir('DESC');return false;"], ], ], [ 'id' => 'sortby', 'label' => 'SortBy', 'icon' => 'fa-sort-alpha-down', 'href' => '#', 'children' => [ ['label' => 'fidId', 'href' => 'table.php?o=fidId'], ['label' => 'fidTot', 'href' => 'table.php?o=fidTot'], ['label' => 'fidPer', 'href' => 'table.php?o=fidPer'], ['label' => 'fidIndiv', 'href' => 'table.php?o=fidIndiv'], ['label' => 'fidProMan', 'href' => 'table.php?o=fidProMan'], ['label' => 'fidSep', 'href' => 'table.php?o=fidSep'], ['label' => 'fidCurDate', 'href' => 'table.php?o=fidCurDate'], ], ], [ 'id' => 'settings', 'label' => 'Settings', 'icon' => 'fa-sliders-h', 'href' => '#', 'children' => [ ['label' => 'Settings', 'href' => 'https://fid.intellihometech.com/settings.php'], ['label' => 'Settings Alt', 'href' => 'https://fid.intellihometech.com/settings/index.html'], ['divider' => true], ['label' => 'Refresh', 'href' => 'https://fid.intellihometech.com/table.php?o=fidId&sp=default'], ], ], [ 'id' => 'help', 'label' => 'Help', 'icon' => 'fa-question-circle', 'href' => '#', 'children' => [ ['label' => 'Main Help', 'href' => 'https://fid.intelliHomeTech.com/fidHelp.php'], ['label' => 'Update Help', 'href' => 'https://fid.intelliHomeTech.com/helpUpdate.php'], ['label' => 'Help Info', 'href' => 'help.html'], ['label' => 'New Help', 'href' => 'https://fid.intelliHomeTech.com/help/index.html'], ], ], ]; // Top 5 leaf items for mobile bottom bar $bottomNavItems = array_slice( array_values(array_filter($menuItems, fn($i) => empty($i['children']) && empty($i['mega']))), 0, 5 ); // ── Helpers ────────────────────────────────────────────────────────────────── function sidebarLink(array $item, string $classes = ''): string { $href = htmlspecialchars($item['href'] ?? '#'); $onclick = isset($item['onclick']) ? ' onclick="' . htmlspecialchars($item['onclick']) . '"' : ''; return ""; } ?>
Fidelity Info
All Navigation