Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once 'assets/static/functions.php';
- ?>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title><?= $config['hotelName'] ?> | <?php echo title;?></title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="apple-touch-icon" href="apple-touch-icon.png">
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
- <link rel="stylesheet" href="/templates/illumina/assets/css/illumina.css?v=<?php echo time();?>">
- <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"><script
- src="https://code.jquery.com/jquery-3.4.0.min.js"
- integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg="
- crossorigin="anonymous"></script>
- <script src="//code.jquery.com/jquery-1.12.4.js"></script>
- <script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
- <script src="/templates/brain/client/js/flashclient.js"></script>
- <script src="/templates/brain/client/js/flash_detect_min.js"></script>
- <script src="/templates/brain/client/js/browse.js"></script>
- <script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
- <script src="/templates/illumina/assets/javascript/flash.js" type="text/javascript"></script>
- <script>
- var hotelname = '{hotelname}';
- </script>
- </head>
- <body>
- <?php if(loggedIn()){ ?>
- <header>
- <div class="container" id="header">
- <div id="navigation">
- <div class="header bit">
- <img src="/templates/illumina/assets/images/logo.gif"/><div class="online mobile"><span id="onlinecount">{online}</span> online now!</div><a class="enter_hotel mobile" id="enter_hotel" href="/client" target="_blank">Enter Hotel</a>
- </div>
- <nav class="navbar illumina_dark body">
- <?php
- $tabs = $dbh->prepare("SELECT * FROM `cms_navigation` WHERE `parent_id` = '-1' ORDER BY order_id ASC");
- $tabs->execute();
- echo '<ul>';
- while ($link = $tabs->fetch())
- {
- $allowDisplay = true;
- switch ($link['visibility'])
- {
- default:
- case 0:
- $allowDisplay = false;
- break;
- case 1:
- break;
- }
- if (!$allowDisplay)
- {
- continue;
- }
- $active = '';
- if (defined('TAB_ID') && TAB_ID == $link['id'])
- {
- $active = 'class="active"';
- }
- echo '<li '. $active . ' id="'.$link['filename'].'"><a href="' . htmlspecialchars($link['filename']) . '">' . htmlspecialchars($link['caption']) . '</a></li>';
- }
- echo '<li><a href="{url}/logout">Sign Out</a></li></ul>';
- ?>
- </nav>
- <div class="subnav">
- <?php
- // Sub Navi
- $i = 0;
- $lookupParent = '1';
- if (defined('TAB_ID'))
- {
- $lookupParent = TAB_ID;
- }
- $data = $dbh->prepare("SELECT * FROM `cms_navigation` WHERE `parent_id` = :parent ORDER BY order_id ASC");
- $data->bindParam(':parent', $lookupParent);
- $data->execute();
- echo '<ul>';
- while ($link = $data->fetch())
- {
- $allowDisplay = true;
- switch ($link['visibility'])
- {
- default:
- case 0:
- $allowDisplay = false;
- break;
- case 1:
- break;
- case 2:
- if (!loggedIn())
- {
- $allowDisplay = false;
- }
- break;
- case 3:
- if (loggedIn())
- {
- $allowDisplay = false;
- }
- break;
- }
- if (!$allowDisplay)
- {
- continue;
- }
- $class = '';
- if (defined('PAGE_ID') && PAGE_ID == $link['id'])
- {
- echo ' <li class="subactive"><span>' . filter($link['caption']) . '</span></li>';
- }
- else {
- echo ' <li><a href="' . htmlspecialchars($link['filename']) . '">' . htmlspecialchars($link['caption']) . '</a></li>';
- }
- }
- echo '</ul>';
- ?>
- </div>
- </div>
- </div>
- </header>
- <div class="container" id="main">
- <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement