Basic placeholder webui
Adds the bare minimum files to have a functional web interface with placeholder sidebar, home and admin pages.
This commit is contained in:
1
public/.gitignore
vendored
Normal file
1
public/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.htaccess
|
||||
16
public/_inc.php
Normal file
16
public/_inc.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
if (isset($_SERVER['STATUSBOARD_CONFIG']) &&
|
||||
file_exists($_SERVER['STATUSBOARD_CONFIG']) &&
|
||||
is_readable($_SERVER['STATUSBOARD_CONFIG'])) {
|
||||
require_once($_SERVER['STATUSBOARD_CONFIG']);
|
||||
} else {
|
||||
require_once '/etc/status-board/config.php';
|
||||
}
|
||||
|
||||
require_once SihnonFramework_Lib . 'SihnonFramework/Main.class.php';
|
||||
|
||||
SihnonFramework_Main::registerAutoloadClasses('SihnonFramework', SihnonFramework_Lib,
|
||||
'StatusBoard', StatusBoard_Lib);
|
||||
|
||||
?>
|
||||
0
public/images/.gitignore
vendored
Normal file
0
public/images/.gitignore
vendored
Normal file
21
public/index.php
Normal file
21
public/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
define('StatusBoard_File', 'index');
|
||||
|
||||
require '_inc.php';
|
||||
|
||||
try {
|
||||
$main = StatusBoard_Main::instance();
|
||||
StatusBoard_LogEntry::setLocalProgname('webui');
|
||||
$smarty = $main->smarty();
|
||||
|
||||
$page = new StatusBoard_Page($smarty, $main->request());
|
||||
if ($page->evaluate()) {
|
||||
$smarty->display('index.tpl');
|
||||
}
|
||||
|
||||
} catch (StatusBoard_Exception $e) {
|
||||
die("Uncaught Exception: " . $e->getMessage());
|
||||
}
|
||||
|
||||
?>
|
||||
5
public/scripts/main.js
Normal file
5
public/scripts/main.js
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* StatusBoard main script file
|
||||
*
|
||||
*
|
||||
*/
|
||||
92
public/styles/normal.css
Normal file
92
public/styles/normal.css
Normal file
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* StatusBoard normal stylesheet
|
||||
*
|
||||
*/
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
body {
|
||||
margin: 0em;
|
||||
padding: 0em;
|
||||
font-family: verdana, helvetica, sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
label {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
#container {
|
||||
width: 75%;
|
||||
min-width: 75em;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#banner {
|
||||
margin: 0em;
|
||||
padding: 0em;
|
||||
}
|
||||
|
||||
#banner h1 {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
#navigation {
|
||||
margin-top: 0em;
|
||||
margin-bottom: 1em;
|
||||
padding: 0.2em;
|
||||
}
|
||||
|
||||
#navigation ul {
|
||||
margin: 0em;
|
||||
padding: 0em 5em;;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#navigation li {
|
||||
margin: 1em;
|
||||
padding: 0em;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#page-container {
|
||||
margin: 0em;
|
||||
padding: 0em;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
float: left;
|
||||
width: 20em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#page {
|
||||
margin-left: 21em;
|
||||
margin-bottom: 1em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
#footer {
|
||||
clear: both;
|
||||
padding: 2em;
|
||||
font-size: smaller;
|
||||
font-style: italic;
|
||||
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
#errors {
|
||||
background: peachpuff;
|
||||
color: darkred;
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
#messages {
|
||||
background: lightcyan;
|
||||
color: darkblue;
|
||||
margin: 1em;
|
||||
}
|
||||
Reference in New Issue
Block a user