initial commit
This commit is contained in:
62
admin/index.php
Normal file
62
admin/index.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
include_once("../-inc/header.php");
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php include_once("../-inc/menu-admin.php"); ?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row align-items-center px-3">
|
||||
<div class="col">
|
||||
<h1 class="my-3">Tréninky</h1>
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
<button role="button" class="btn btn-default" data-toggle="modal" data-target="#add">
|
||||
<svg class="bi bi-plus-square float-right" width="2.5em" height="2.5em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M8 3.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z" />
|
||||
<path fill-rule="evenodd" d="M7.5 8a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8z" />
|
||||
<path fill-rule="evenodd" d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th scope="col">Název</th>
|
||||
<th scope="col">Kapacita</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
vypisTreninku();
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.querySelector('.custom-file-input').addEventListener('change', function(e) {
|
||||
var fileName = document.getElementById("obrazek").files[0].name;
|
||||
var nextSibling = e.target.nextElementSibling
|
||||
nextSibling.innerText = fileName
|
||||
})
|
||||
document.querySelectorAll('.custom-file-input')[1].addEventListener('change', function(e) {
|
||||
var fileName = document.getElementById("obrazekEdit").files[0].name;
|
||||
var nextSibling = e.target.nextElementSibling
|
||||
nextSibling.innerText = fileName
|
||||
})
|
||||
</script>
|
||||
<script>
|
||||
var dateControl = document.querySelector('input[type="datetime-local"]')[1];
|
||||
dateControl.value = '2017-06-01T08:30';
|
||||
</script>
|
||||
<?php include_once("../-inc/footer.php"); ?>
|
||||
Reference in New Issue
Block a user