commit ebec84c2884f6d1445a0a2f0d5a8bf0110671e51
parent 642585d98dfcd7a1528426a88e0dfc4b61a8be95
Author: LennartSchroot <[email protected]>
Date: Mon, 17 Apr 2023 10:58:14 +0200
kleine fixes in de html
Diffstat:
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/add_contract.php b/add_contract.php
@@ -8,7 +8,7 @@
<?php
include "navbar.php";
include "utils/autoloader.php";
-if(!in_array(1, $_SESSION['permissions'])){
+if(!in_array(1, $_SESSION['user_permissions'])){
header('Location: dashboard.php');
exit;
}
@@ -121,7 +121,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<label for="end-date" class="form-label"><b>End Date:</b></label>
<input class="form-control me-2" type="text" name="end-date" placeholder="End date (YYYY-MM-DD)" pattern="\d{4}-\d{2}-\d{2}">
</div>
- <label for="token" class="form-label"><b>*token*:</b></label>
+<!-- <label for="token" class="form-label"><b>*token*:</b></label>-->
<div class="form-group">
<label for="tariff">Tariff:</label>
<a>€</a><input type="number" class="form-control" name="tariff" id="tariff" placeholder="Tariff" style="display: inline-block; width: auto;">
diff --git a/alter_contract.php b/alter_contract.php
@@ -8,7 +8,7 @@
<?php
include "navbar.php";
include "utils/autoloader.php";
-if(!in_array(1, $_SESSION['permissions'])){
+if(!in_array(1, $_SESSION['user_permissions'])){
header('Location: dashboard.php');
exit;
}
@@ -148,7 +148,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<label for="end-date" class="form-label"><b>End Date:</b></label>
<input class="form-control me-2" type="text" name="end-date" placeholder="End date (YYYY-MM-DD)" pattern="\d{4}-\d{2}-\d{2}" value=<?php echo$end_date;?>>
</div>
- <label for="token" class="form-label"><b>*token*:</b></label>
+<!-- <label for="token" class="form-label"><b>*token*:</b></label>-->
<div class="form-group">
<label for="tariff">Tariff:</label>
<a>€</a><input type="number" class="form-control" name="tariff" id="tariff" placeholder="Tariff" style="display: inline-block; width: auto;" value=<?php echo$tariff;?>>
diff --git a/navbar.php b/navbar.php
@@ -28,10 +28,8 @@
$admin_employee_links = array(
array('url' => '/add_customer.php', 'title' => 'Add customer'),
array('url' => '/search_customer.php', 'title' => 'Search customer'),
- array('url' => '/alter_customer.php', 'title' => 'Alter customer data'),
array('url' => '/add_contract.php', 'title' => 'Add contract'),
array('url' => '/search_contract.php', 'title' => 'Search contract'),
- array('url' => '/alter_contract.php', 'title' => 'Alter contract')
);
$links[] = array('name' => 'Administrative Employee', 'links' => $admin_employee_links);
}