2019-08-23 11:39:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<?php
|
|
|
|
$partial = new Partial('head');
|
2019-10-11 14:38:20 +00:00
|
|
|
$partial->prepare('baseDir', $BASEDIR);
|
2019-08-23 11:39:42 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
|
|
|
<title><?php echo $TITLE ?></title>
|
|
|
|
</head>
|
|
|
|
<body class="no-transitions">
|
|
|
|
<div class="row no-gutters main">
|
|
|
|
<div class="col-md-3 d-sm-none"></div>
|
|
|
|
<div class="col-md-3 nav-container">
|
2019-09-19 12:48:31 +00:00
|
|
|
<?php
|
|
|
|
$partial = new Partial('menu');
|
|
|
|
$partial->prepare('item', 'setting');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2019-09-19 12:48:31 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 main-body">
|
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2019-10-22 16:31:14 +00:00
|
|
|
<h4 class="mb-4">
|
2019-10-11 12:12:05 +00:00
|
|
|
<?php $LANGMNG->echo('t_pageAfterLogIn') ?>
|
|
|
|
</h4>
|
2019-08-23 11:39:42 +00:00
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<div class="">
|
|
|
|
<div class="field">
|
|
|
|
<select class="input" name="loadPage">
|
|
|
|
<option value="0" <?php echo (UserManager::getUserData("startPage") == 0 ? "selected" : ""); ?>>Default</option>
|
|
|
|
<option value="1" <?php echo (UserManager::getUserData("startPage") == 1 ? "selected" : ""); ?>>Dashboard</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="submit" name="submit" class="button" value="<?php $LANGMNG->echo('b_save') ?>"/>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2019-10-11 12:12:05 +00:00
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_profile') ?></h4>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<a href="logout" class="button is-primary"><?php $LANGMNG->echo('b_logOut') ?></a>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2019-10-11 12:12:05 +00:00
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_notification') ?></h4>
|
2019-10-11 08:44:13 +00:00
|
|
|
<input id="notifications" type="checkbox" onChange="toggleNotificationPermissions(this);" />
|
2019-10-11 12:12:05 +00:00
|
|
|
<div class="label"><?php $LANGMNG->echo('l_notificationStatus') ?></div>
|
2019-08-23 11:39:42 +00:00
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<a onClick="sendTestNotification();" class="button"><?php $LANGMNG->echo('b_sendTestNotification');?></a>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-19 12:48:31 +00:00
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2019-10-11 12:12:05 +00:00
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_experimental') ?></h4>
|
2019-09-19 12:48:31 +00:00
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<a href="rooms" class="button"><?php $LANGMNG->echo('b_rooms') ?></a>
|
2019-09-19 12:48:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-13 10:29:07 +00:00
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_changePassword') ?></h4>
|
|
|
|
<form method="post">
|
|
|
|
<div class="field">
|
|
|
|
<div class="label"><?php $LANGMNG->echo('l_oldPassword') ?>:</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
<input type="password" class="input" name="oldPassword" value="" data-cip-id="cIPJQ342845639">
|
2019-10-13 10:29:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="label"><?php $LANGMNG->echo('l_newPassword') ?>:</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
<input type="password" class="input" name="newPassword1" value="" data-cip-id="cIPJQ342845639">
|
2019-10-13 10:29:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="label"><?php $LANGMNG->echo('l_newPassword') ?>:</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
<input type="password" class="input" name="newPassword2" value="" data-cip-id="cIPJQ342845639">
|
2019-10-13 10:29:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<input type="submit" name="submitPasswordChange" class="button" value="Uložit">
|
|
|
|
</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
</form>
|
2019-10-13 10:29:07 +00:00
|
|
|
</div>
|
2019-10-22 14:52:45 +00:00
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2019-10-25 16:48:48 +00:00
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_ota') ?></h4>
|
|
|
|
<?php if (!empty($QRURL)) {?>
|
|
|
|
<img src="<?php echo $QRURL;?>" />
|
|
|
|
<?php } else {?>
|
|
|
|
<button name="deactivateOta" type="button" class="button is-danger fa"><?php $LANGMNG->echo('b_disable');?> <?php $LANGMNG->echo('b_ota'); ?></button>
|
|
|
|
<?php }?>
|
2019-10-22 14:52:45 +00:00
|
|
|
</div>
|
2019-10-13 12:01:33 +00:00
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
|
|
|
<h4 class="mb-4"><?php $LANGMNG->echo('t_createuser') ?></h4>
|
|
|
|
<table class="table is-fluid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php $LANGMNG->echo('t_userName');?></th>
|
2019-10-25 16:48:48 +00:00
|
|
|
<th><?php $LANGMNG->echo('t_ota');?></th>
|
2019-10-13 12:01:33 +00:00
|
|
|
<th><?php $LANGMNG->echo('t_action');?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($USERS as $key => $user) { ?>
|
|
|
|
<tr>
|
2019-10-13 12:18:41 +00:00
|
|
|
<td><?php echo $user['username']; ?></td>
|
2019-10-25 16:48:48 +00:00
|
|
|
<td><?php echo ($user['ota'] ? '<span class="fa"></span>' : ''); ?></td>
|
2019-10-13 12:18:41 +00:00
|
|
|
<td><button name="deleteUser" type="button" class="button is-danger fa"></button></td>
|
2019-10-13 12:01:33 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<form method="post">
|
|
|
|
<div class="field">
|
|
|
|
<div class="label"><?php $LANGMNG->echo('l_userName') ?>:</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
<input type="text" class="input" name="userName" value="" data-cip-id="cIPJQ342845639">
|
2019-10-13 12:01:33 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="label"><?php $LANGMNG->echo('l_password') ?>:</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
<input type="password" class="input" name="userPassword" value="" data-cip-id="cIPJQ342845639">
|
2019-10-13 12:01:33 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<input type="submit" name="submitCreateUser" class="button" value="Uložit">
|
|
|
|
</div>
|
2019-10-22 16:31:14 +00:00
|
|
|
</form>
|
2019-10-13 12:01:33 +00:00
|
|
|
</div>
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
2019-10-25 16:48:48 +00:00
|
|
|
|
|
|
|
|
2019-08-23 11:39:42 +00:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$partial = new Partial('footer');
|
|
|
|
$partial->render();
|
|
|
|
?>
|
2019-10-25 16:48:48 +00:00
|
|
|
<script src="./app/templates/js/setting.js"></script>
|
2019-10-13 10:29:07 +00:00
|
|
|
</script>
|
2019-08-23 11:39:42 +00:00
|
|
|
</body>
|
|
|
|
</html>
|