Revize d845d95d
Přidáno uživatelem Ondřej Drtina před téměř 4 roky(ů)
application/index.php | ||
---|---|---|
32 | 32 |
</div> |
33 | 33 |
|
34 | 34 |
<?php include "./view/modals/loginModal.html" ?> |
35 |
<?php include "./view/modals/settingsModal.html" ?> |
|
35 | 36 |
</body> |
36 | 37 |
</html> |
application/search.php | ||
---|---|---|
34 | 34 |
|
35 | 35 |
<?php include "./view/modals/loginModal.html" ?> |
36 | 36 |
<?php include "./view/modals/detailModal.html" ?> |
37 |
<?php include "./view/modals/settingsModal.html" ?> |
|
37 | 38 |
</body> |
38 | 39 |
</html> |
application/view/menu.php | ||
---|---|---|
6 | 6 |
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'], '/index.php') ? 'active' : '');?>" href="index.php">Úvodní info</a> |
7 | 7 |
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/search.php') ? 'active' : '');?>" href="search.php">Vyhledávání</a> |
8 | 8 |
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/login.php') ? 'active' : '');?>" href="#" data-toggle="modal" data-target="#login-modal">Přihlášení</a> |
9 |
<a class="px-4 py-1 <?php echo (strstr($_SERVER['PHP_SELF'],'/settings.php') ? 'active' : '');?>" href="#" data-toggle="modal" data-target="#settings-modal">Nastavení</a> |
|
9 | 10 |
</div> |
10 | 11 |
</div> |
application/view/modals/settingsModal.html | ||
---|---|---|
1 |
<div id="settings-modal" class="modal fade" role="dialog"> |
|
2 |
<div class="modal-dialog modal-dialog-centered" role="document"> |
|
3 |
<div class="modal-content"> |
|
4 |
<div class="modal-header"> |
|
5 |
<h4 class="modal-title">Nastavení</h4> |
|
6 |
<button type="button" class="close" data-dismiss="modal">×</button> |
|
7 |
</div> |
|
8 |
<div class="modal-body"> |
|
9 |
<div class="container"> |
|
10 |
<div class="row"> |
|
11 |
<div class="col-xs-12 col-sm-5"> |
|
12 |
<label for="itemsPerPage">Počet záznamů na stránku: </label> |
|
13 |
</div> |
|
14 |
<div class="col-xs-12 col-sm-7"> |
|
15 |
<input type="number" id="itemsPerPage" onshow="viewItemsPerPage()"> |
|
16 |
</div> |
|
17 |
</div> |
|
18 |
</div> |
|
19 |
</div> |
|
20 |
<div class="modal-footer"> |
|
21 |
<button type="button" class="btn btn-default" data-dismiss="modal" onclick="changeItemsPerPage()">Uložit</button> |
|
22 |
<button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> |
|
23 |
</div> |
|
24 |
</div> |
|
25 |
</div> |
|
26 |
</div> |
application/view/searchContent.php | ||
---|---|---|
476 | 476 |
formData.append("page", ""+pageIndex); |
477 | 477 |
formData.append("items_per_page", ""+itemPerPage); |
478 | 478 |
formData.append("finished", "true");//TODO ADMIN |
479 |
|
|
480 | 479 |
if(filter){ |
481 | 480 |
filterData(formData); |
482 | 481 |
} |
... | ... | |
560 | 559 |
<h3 id="no-data-label" class="mx-auto text-center font-italic">Žádná data nebyla nalezena</h3> |
561 | 560 |
|
562 | 561 |
<script> |
562 |
function viewItemsPerPage(){ |
|
563 |
var visibleItemCount = document.getElementById("itemsPerPage"); |
|
564 |
visibleItemCount.value = itemPerPage; |
|
565 |
} |
|
566 |
|
|
567 |
function changeItemsPerPage(){ |
|
568 |
pageIndex = 0; |
|
569 |
|
|
570 |
var visibleItemCount = document.getElementById("itemsPerPage").value; |
|
571 |
itemPerPage = visibleItemCount; |
|
572 |
fetchData(true); |
|
573 |
} |
|
574 |
|
|
563 | 575 |
function moveToFirst(){ |
564 | 576 |
pageIndex = 0; |
565 | 577 |
fetchData(true); |
Také k dispozici: Unified diff
Na změnu reaguje - zbývá odstranit nesmyslné vstupy