Revize 424379e9
Přidáno uživatelem Ondřej Drtina před téměř 4 roky(ů)
application/view/modals/loginModal.html | ||
---|---|---|
36 | 36 |
<script> |
37 | 37 |
function register(){ |
38 | 38 |
var data = new FormData(); |
39 |
data.append("user", 'partyboypajda');
|
|
40 |
data.append("password", 'partypass');
|
|
41 |
data.append("role", 'partymanager');
|
|
39 |
data.append("user", 'beznyuser');
|
|
40 |
data.append("password", 'beznyuser');
|
|
41 |
data.append("role", 'editor');
|
|
42 | 42 |
let xhr = new XMLHttpRequest(); |
43 | 43 |
xhr.open("POST", "controller/RegistrationController.php"); |
44 | 44 |
xhr.send(data); |
application/view/searchContent.php | ||
---|---|---|
654 | 654 |
result += "<td>" + item.description2 + "</td>"; |
655 | 655 |
result += "<td class=\"action-td\">" + |
656 | 656 |
"<button class=\"btn mr-1\" title=\"Upravit\" data-toggle=\"modal\" data-target=\"#edit-modal\" data-pseudo-id='" + id + "' data-title=\"Upravit záznam\"><i class=\"fa fa-pencil\"></i></button>" + //TODO ADMIN change , regular send report |
657 |
"<button class=\"btn\" title=\"Detail\" data-toggle=\"modal\" data-target=\"#detail-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-search\"></i></button>" + |
|
658 |
"<button class=\"btn ml-1\" title=\"Odstranit\" data-toggle=\"modal\" data-target=\"#remove-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-trash\"></i></button>" + //TODO ADMIN change , regular send report |
|
659 |
"</td>"; |
|
657 |
"<button class=\"btn\" title=\"Detail\" data-toggle=\"modal\" data-target=\"#detail-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-search\"></i></button>"; |
|
658 |
<?php if(isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] == true) { ?> //show remove only if logged in |
|
659 |
result += "<button class=\"btn ml-1\" title=\"Odstranit\" data-toggle=\"modal\" data-target=\"#remove-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-trash\"></i></button>"; |
|
660 |
<?php }?> |
|
661 |
result += "</td>"; |
|
660 | 662 |
result += "</tr>"; |
661 | 663 |
}); |
662 | 664 |
document.getElementById("search-table").innerHTML = result; |
Také k dispozici: Unified diff
#8643 - smazání se neukazuje nepřihlášeným, ok, serverside