Adds Bootstrap
parent
2eb18f0e84
commit
fa61eecb15
|
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||||
### Added
|
### Added
|
||||||
- Added duration calculation in conferences listing
|
- Added duration calculation in conferences listing
|
||||||
- Added manual install script
|
- Added manual install script
|
||||||
|
- Added Bootstrap (licensed under MIT)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,12 @@ To see a demo install, go to https://work.lindeas.com/jilo-web-demo/
|
||||||
|
|
||||||
Current version: **0.1** released on **2024-07-08**
|
Current version: **0.1** released on **2024-07-08**
|
||||||
|
|
||||||
|
## license
|
||||||
|
|
||||||
|
This project is licensed under the GNU General Public License version 2 (GPL-2.0). See LICENSE file.
|
||||||
|
|
||||||
|
Bootstrap is used in this project and is licensed under the MIT License. See bootstrap-license file
|
||||||
|
|
||||||
## requirements
|
## requirements
|
||||||
|
|
||||||
- web server (deb: apache | nginx)
|
- web server (deb: apache | nginx)
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2011-2024 The Bootstrap Authors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<div id="footer">Jilo Web <?= $config['version'] ?> ©2024 - web interface for <a href="https://lindeas.com/jilo">Jilo</a></div>
|
<div id="footer">Jilo Web <?= $config['version'] ?> ©2024 - web interface for <a href="https://lindeas.com/jilo">Jilo</a></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
|
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
|
|
||||||
<div class="login-form">
|
<div class="login-form">
|
||||||
<form method="POST" action="?page=login">
|
<form method="POST" action="?page=login">
|
||||||
<input type="text" name="username" placeholder="Username" required />
|
<input type="text" name="username" placeholder="Username" required />
|
||||||
<br />
|
<br />
|
||||||
<input type="password" name="password" placeholder="Password" required />
|
<input type="password" name="password" placeholder="Password" required />
|
||||||
<br />
|
<br />
|
||||||
<label for="remember_me">
|
<label for="remember_me">
|
||||||
<input type="checkbox" id="remember_me" name="remember_me" />
|
<input type="checkbox" id="remember_me" name="remember_me" />
|
||||||
remember me
|
remember me
|
||||||
</label>
|
</label>
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="Login" />
|
<input type="submit" value="Login" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
<h2>Register</h2>
|
<h2>Register</h2>
|
||||||
|
|
||||||
<div class="register-form">
|
<div class="register-form">
|
||||||
<form method="POST" action="?page=register">
|
<form method="POST" action="?page=register">
|
||||||
<input type="text" name="username" placeholder="Username" required />
|
<input type="text" name="username" placeholder="Username" required />
|
||||||
<br />
|
<br />
|
||||||
<input type="password" name="password" placeholder="Password" required />
|
<input type="password" name="password" placeholder="Password" required />
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="Register" />
|
<input type="submit" value="Register" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<link rel="stylesheet" type="text/css" href="static/bootstrap.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="static/all.css">
|
<link rel="stylesheet" type="text/css" href="static/all.css">
|
||||||
<title>Jilo Web</title>
|
<title>Jilo Web</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="main">
|
<script src="static/bootstrap.min.js"></script>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
|
|
||||||
<div class="menu-container">
|
<div class="menu-container">
|
||||||
<ul class="menu-left">
|
<ul class="menu-left">
|
||||||
<li><a href="index.php">home</a></li>
|
<li><a href="index.php">home</a></li>
|
||||||
<?php if ( isset($_SESSION['username']) ) { ?>
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
||||||
<li><a href="?page=config">config</a></li>
|
<li><a href="?page=config">config</a></li>
|
||||||
<li><a href="?page=conferences">conferences</a></li>
|
<li><a href="?page=conferences">conferences</a></li>
|
||||||
<li><a href="?page=participants">participants</a></li>
|
<li><a href="?page=participants">participants</a></li>
|
||||||
<li><a href="?page=components">components</a></li>
|
<li><a href="?page=components">components</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="menu-right">
|
<ul class="menu-right">
|
||||||
<?php if ( isset($_SESSION['username']) ) { ?>
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
||||||
<li><a href="?page=profile"><?= $user ?></a></li>
|
<li><a href="?page=profile"><?= $user ?></a></li>
|
||||||
<li><a href="?page=logout">logout</a></li>
|
<li><a href="?page=logout">logout</a></li>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<li><a href="?page=login">login</a></li>
|
<li><a href="?page=login">login</a></li>
|
||||||
<li><a href="?page=register">register</a></li>
|
<li><a href="?page=register">register</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
<?php if (isset($error)) { ?>
|
<?php if (isset($error)) { ?>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
<?php echo $error; ?>
|
<?php echo $error; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if (isset($notice)) { ?>
|
<?php if (isset($notice)) { ?>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
<?php echo $notice; ?>
|
<?php echo $notice; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
|
|
||||||
<div class="results-filter">
|
<div class="results-filter">
|
||||||
|
|
||||||
<form method="POST" id="filter_form" action="?page=<?= $page ?>">
|
<form method="POST" id="filter_form" action="?page=<?= $page ?>">
|
||||||
|
|
||||||
<label for="from_time">from</label>
|
<label for="from_time">from</label>
|
||||||
<input type="date" id="from_time" name="from_time"<?php if (isset($_REQUEST['from_time'])) echo " value=\"" . $_REQUEST['from_time'] . "\"" ?> />
|
<input type="date" id="from_time" name="from_time"<?php if (isset($_REQUEST['from_time'])) echo " value=\"" . $_REQUEST['from_time'] . "\"" ?> />
|
||||||
|
|
||||||
<label for="until_time">until</label>
|
<label for="until_time">until</label>
|
||||||
<input type="date" id="until_time" name="until_time"<?php if (isset($_REQUEST['until_time'])) echo " value=\"" . $_REQUEST['until_time'] . "\"" ?> />
|
<input type="date" id="until_time" name="until_time"<?php if (isset($_REQUEST['until_time'])) echo " value=\"" . $_REQUEST['until_time'] . "\"" ?> />
|
||||||
|
|
||||||
<input type="text" name="id" placeholder="ID"<?php if (isset($_REQUEST['id'])) echo " value=\"" . $_REQUEST['id'] . "\"" ?> />
|
<input type="text" name="id" placeholder="ID"<?php if (isset($_REQUEST['id'])) echo " value=\"" . $_REQUEST['id'] . "\"" ?> />
|
||||||
|
|
||||||
<input type="text" name="name" placeholder="name"<?php if (isset($_REQUEST['name'])) echo " value=\"" . $_REQUEST['name'] . "\"" ?> />
|
<input type="text" name="name" placeholder="name"<?php if (isset($_REQUEST['name'])) echo " value=\"" . $_REQUEST['name'] . "\"" ?> />
|
||||||
|
|
||||||
<?php if ($page == 'participants') { ?>
|
<?php if ($page == 'participants') { ?>
|
||||||
<input type="text" name="ip" placeholder="ip address"<?php if (isset($_REQUEST['ip'])) echo " value=\"" . $_REQUEST['ip'] . "\"" ?> maxlength="15" size="15" />
|
<input type="text" name="ip" placeholder="ip address"<?php if (isset($_REQUEST['ip'])) echo " value=\"" . $_REQUEST['ip'] . "\"" ?> maxlength="15" size="15" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<button type="button" onclick="clearFilter()">clear</button>
|
<button type="button" onclick="clearFilter()">clear</button>
|
||||||
|
|
||||||
<input type="submit" value="search" />
|
<input type="submit" value="search" />
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function clearFilter() {
|
function clearFilter() {
|
||||||
document.getElementById("filter_form").reset();
|
document.getElementById("filter_form").reset();
|
||||||
const filterFields = document.querySelectorAll("#filter_form input");
|
const filterFields = document.querySelectorAll("#filter_form input");
|
||||||
filterFields.forEach(input => {
|
filterFields.forEach(input => {
|
||||||
if (input.type === 'text' ||input.type === 'date') {
|
if (input.type === 'text' ||input.type === 'date') {
|
||||||
input.value = '';
|
input.value = '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue