Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Roo7K1d committed Sep 23, 2022
1 parent 7341ecb commit b3d3fb1
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 58 deletions.
20 changes: 10 additions & 10 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Header("Location: http://rootk1d.xyz/awi-system/login.php");
}

$conn=new mysqli('localhost', 'root', '1001010mM', 'arcadius');
$conn=new mysqli('DB_HOST', 'DB_USER', 'PASSWORD', 'DB_NAME');

if ($conn->connect_error) {
die('Error connecting to database: '. $conn->connect_error);
Expand Down Expand Up @@ -89,7 +89,7 @@

<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Dashboard - Arcadius Web Interface System</h1>
<h1 class="h3 mb-0 text-gray-800">Dashboard - RP Faction</h1>
</div>

<!-- Content Row -->
Expand All @@ -102,7 +102,7 @@
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
Mitarbeiter im AWI-System</div>
Members</div>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $users; ?></div>
</div>
<div class="col-auto">
Expand All @@ -120,7 +120,7 @@
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">
Events im Kalender</div>
Events</div>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $events; ?></div>
</div>
<div class="col-auto">
Expand All @@ -138,7 +138,7 @@
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-danger text-uppercase mb-1">
Mitarbeiter außer Dienst</div>
Off Duty</div>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $offduties; ?></div>
</div>
<div class="col-auto">
Expand All @@ -156,7 +156,7 @@
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">
Mitarbeiter im Dienst</div>
On Duty</div>
<div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $onduties; ?></div>
</div>
<div class="col-auto">
Expand All @@ -172,11 +172,11 @@
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Herzlich Willkommen</h6>
<h6 class="m-0 font-weight-bold text-primary">Welcome</h6>
</div>
<div class="card-body">
<p>Herzlich Willkommen im AWI-System. Hier findest du alles, was für deine Arbeit bei uns wichtig ist. <br>Solltest du Probleme haben
oder Fehler entdecken, melde dich gerne bei der IT-Abteilung. <br>Diese können dir auch helfen, wenn du dein Passwort vergessen hast, sich dein Rang geändert hat oder du einen anderen Nachnamen hast.
<p>Welcome to the web dashboard for RP factions. Here you can find useful tools for organizing your group. <br>
If you find any bugs feel free to create an issue on GitHub.
</div>
</div>
</div>
Expand All @@ -186,7 +186,7 @@
<div class="col-12">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Neuigkeiten</h6>
<h6 class="m-0 font-weight-bold text-primary">News</h6>
</div>
<div class="card-body">
<textarea class="form-control" id="exampleFormControlTextarea1" rows="10" readonly style="background-color: #FFF"><?php
Expand Down
4 changes: 2 additions & 2 deletions templates/addStorageModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Abbrechen</button>
<button type="submit" class="btn btn-success">Absenden</button>
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
</form>
</div>
Expand Down
18 changes: 9 additions & 9 deletions templates/addUserModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Benutzer erstellen</h5>
<h5 class="modal-title" id="exampleModalLabel">Add User</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Bitte gehe vorher sicher, dass der Benutzer nicht bereits existiert.
Please make sure that the user you are trying to add doesn't already exist.
<br>
<form <?php echo 'action="http://rootk1d.xyz/awi-system/functions/addUser.php?id=' . $_GET['id'] .'&username=' . $_GET['username'] .'&fullname=' . $_GET['fullname'] .'&role=' . $_GET['role'] .'&birthday=' . $_GET['birthday'] .'&usersince=' . $_GET['usersince'] .'&phone=' . $_GET['phone'] .'&number=' . $_GET['number'] .'" method="post">' ?>
<div class="mb-3">
<label for="inputUserName" class="form-label font-weight-bold">Username</label>
<input type="text" class="form-control" id="inputUserName" name="inputUserName" placeholder="LoganMcCon" required>
</div>
<div class="mb-3">
<label for="inputRole" class="form-label font-weight-bold">Rolle</label>
<label for="inputRole" class="form-label font-weight-bold">Role</label>
<select class="form-control" id="inputRole" name="inputRole" required>
<option>promoter</option>
<option>barkeeper</option>
Expand All @@ -33,25 +33,25 @@
</select>
</div>
<div class="mb-3">
<label for="inputFullName" class="form-label font-weight-bold">Voller Name</label>
<label for="inputFullName" class="form-label font-weight-bold">Full Name</label>
<input type="text" class="form-control" id="inputFullName" name="inputFullName" placeholder="Logan McConnaughey" required>
</div>
<div class="mb-3">
<label for="inputPassword" class="form-label font-weight-bold">Passwort</label>
<label for="inputPassword" class="form-label font-weight-bold">Password</label>
<input type="text" class="form-control" id="inputPassword" name="inputPassword" placeholder="passwort" required>
</div>
<div class="mb-3">
<label for="inputPhone" class="form-label font-weight-bold">Telefonnummer</label>
<label for="inputPhone" class="form-label font-weight-bold">Phone Number</label>
<input type="text" class="form-control" id="inputPhone" name="inputPhone" placeholder="1234567" required>
</div>
<div class="mb-3">
<label for="inputNumber" class="form-label font-weight-bold">Dienstnummer</label>
<label for="inputNumber" class="form-label font-weight-bold">Service Number</label>
<input type="text" class="form-control" id="inputNumber" name="inputNumber" placeholder="38" required>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Abbrechen</button>
<button type="submit" class="btn btn-success">Absenden</button>
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
</form>
</div>
Expand Down
12 changes: 6 additions & 6 deletions templates/addWeaponOrderModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Eintrag erstellen</h5>
<h5 class="modal-title" id="exampleModalLabel">Add Entry</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Bitte gehe vorher sicher, dass du nicht bereits eine Bestellung vom gleichen Kunden erstellt hast.
Please make sure that you don't have multiple entries for the same customer.
<br>
<form <?php echo 'action="https://rootk1d.xyz/awi-system/functions/addWeaponOrder.php?id=' . $_GET['id'] .'&username=' . $_GET['username'] .'&fullname=' . $_GET['fullname'] .'&role=' . $_GET['role'] .'&birthday=' . $_GET['birthday'] .'&usersince=' . $_GET['usersince'] .'&phone=' . $_GET['phone'] .'&number=' . $_GET['number'] .'" method="post">' ?>
<div class="mb-3">
<label for="inputName" class="form-label font-weight-bold">Name</label>
<input type="text" class="form-control" id="inputName" name="inputName" placeholder="Heiko Vindicta" required>
</div>
<div class="mb-3">
<label for="inputAmount" class="form-label font-weight-bold">Waffenanzahl</label>
<label for="inputAmount" class="form-label font-weight-bold">Weapons Amount</label>
<input type="text" class="form-control" id="inputAmount" name="inputAmount" placeholder="15" required>
</div>
<div class="form-group">
<label for="inputNotes">Notizen</label>
<label for="inputNotes">Notes</label>
<textarea class="form-control" id="inputNotes" name="inputNotes" rows="10" placeholder="..." required></textarea>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Abbrechen</button>
<button type="submit" class="btn btn-success">Absenden</button>
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/logoutModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Bereit zum verlassen?</h5>
<h5 class="modal-title" id="exampleModalLabel">Ready to leave?</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Bitte drück "Logout", wenn du bereit bist, dich auszuloggen.</div>
<div class="modal-body">Please press "Log Out" to log out.</div>
<div class="modal-footer">
<form action="https://rootk1d.xyz/awi-system/functions/submitLogout.php" method="post">
<input class="btn btn-secondary" type="button" data-dismiss="modal" value="Abbrechen"></input>
Expand Down
Loading

0 comments on commit b3d3fb1

Please sign in to comment.