Add link to public page
[infodrom/musiikki-web.git] / templates / admin.phtml
1 <!DOCTYPE html>
2 <!-- Source: https://www.w3schools.com/w3css/tryw3css_templates_interior_design.htm -->
3 <html class="ui-mobile">
4 <head>
5 <title><?=Config::main()->get('title')?></title>
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <?=Utilities::formatCSS('../w3.css')?>
9 <?=Utilities::formatCSS('../musiikki.css')?>
10 <link rel="shortcut icon" href="<?php echo Config::main()->get('favicon')?>">
11 <?=Utilities::formatScript('../jquery-1.10.2.min.js')?>
12 <?=Utilities::formatScript('../musiikki.js')?>
13 <?=Utilities::formatScript('admin.js')?>
14 </head>
15
16 <body>
17
18 <!-- Sidebar/menu -->
19 <nav class="w3-sidebar w3-blue w3-collapse w3-top w3-large w3-padding" style="z-index: 3; width: 300px; font-weight: bold; display: none;" id="mySidebar"><br>
20   <a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-hide-large w3-display-topleft" style="width:100%;font-size:22px">Close Menu</a>
21   <div class="w3-container">
22     <h3 class="w3-padding-64"><b><?=Config::main()->get('title')?></b></h3>
23   </div>
24   <div class="w3-bar-block" style="padding-top:5px;">
25     <a href="/admin/" onclick="open_page('home')" class="w3-bar-item w3-button w3-hover-white">Home</a>
26     <a href="/" class="w3-bar-item w3-button w3-hover-white">Public</a>
27     <a href="#" onclick="open_page('datetime')" class="w3-bar-item w3-button w3-hover-white">Date/Time</a>
28     <a href="#" onclick="open_page('wifi')" class="w3-bar-item w3-button w3-hover-white">WiFi</a>
29     <a href="#" onclick="open_page('shares')" class="w3-bar-item w3-button w3-hover-white">Shares</a>
30     <a href="#" onclick="open_page('rescan')" class="w3-bar-item w3-button w3-hover-white">Rescan</a>
31     <a href="#" onclick="open_page('passwd')" class="w3-bar-item w3-button w3-hover-white">Admin</a>
32     <a href="#" onclick="open_page('halt')" class="w3-bar-item w3-button w3-hover-white">Shutdown</a>
33   </div>
34 </nav>
35
36 <!-- Top menu on small screens -->
37 <header class="w3-container w3-top w3-hide-large w3-blue w3-xlarge w3-padding">
38   <a href="javascript:void(0)" class="w3-button w3-blue w3-margin-right" onclick="w3_open()" title="Menu"><b>=</b></a>
39    <span><?=Config::main()->get('title')?></span>
40 </header>
41
42 <!-- Overlay effect when opening sidebar on small screens -->
43 <div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor: pointer; display: none;" title="close side menu" id="myOverlay"></div>
44
45 <!-- !PAGE CONTENT! -->
46 <div class="w3-main" style="margin-left:340px;margin-right:40px">
47
48 <?php echo Template::html('home'); ?>
49 <?php echo Template::html('datetime'); ?>
50 <?php echo Template::html('wifi'); ?>
51 <?php echo Template::html('shares'); ?>
52 <?php echo Template::html('passwd'); ?>
53 <?php echo Template::html('rescan'); ?>
54 <?php echo Template::html('halt'); ?>
55 <?php echo Template::html('response'); ?>
56
57 <!-- End page content -->
58 </div>
59
60 </body>
61 </html>