First Push
This commit is contained in:
parent
a87647aec3
commit
fd55fd90d6
5 changed files with 86 additions and 13 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"require": {
|
||||
"formr/formr": "*"
|
||||
"formr/formr": "*",
|
||||
|
||||
}
|
||||
}
|
6
footer.php
Normal file
6
footer.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
echo '<p class="text-small">Copyright by Web-Work24 e.K.</p>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
5
header.php
Normal file
5
header.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
|
||||
<body class="container">
|
45
index.php
45
index.php
|
@ -1,8 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
$form = new Formr\Formr('bootstrap');
|
||||
|
||||
|
||||
$modus = isset($_GET['modus']) ? $_GET['modus'] : "";
|
||||
|
||||
$form = new Formr\Formr('bootstrap5');
|
||||
$form->required = '*';
|
||||
|
||||
if ($form->submitted())
|
||||
{
|
||||
// get our form values and assign them to a variable
|
||||
|
@ -13,14 +18,30 @@ if ($form->submitted())
|
|||
$form->success_message = "Thank you, {$data['name']}!";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
|
||||
<body class="container">
|
||||
<?php
|
||||
$form->messages();
|
||||
$form->create_form('Firma, Vorname, Name, Strasse, PLZ, Ort, Email, Stundenlohn, Comments|textarea');
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
require_once "header.php";
|
||||
require_once "navbar.php";
|
||||
|
||||
switch ($modus){
|
||||
case "Stunden":
|
||||
$form->messages();
|
||||
$form->create_form('Kunde, Wohnanlage, Arbeit, Stunden, Stundenlohn, Comments|textarea');
|
||||
break;
|
||||
case "Kunden":
|
||||
$form->messages();
|
||||
$form->create_form('Firma, Vorname, Name, Strasse, PLZ, Ort, Email, Stundenlohn, Comments|textarea');
|
||||
break;
|
||||
case "Wohnanlagen":
|
||||
$form->messages();
|
||||
$form->create_form('Wohnanlage, Strasse, PLZ, Ort, Comments|textarea');
|
||||
break;
|
||||
case "Arbeiten":
|
||||
$form->messages();
|
||||
$form->create_form('Firma, Vorname, Name, Strasse, PLZ, Ort, Email, Stundenlohn, Comments|textarea');
|
||||
break;
|
||||
default:
|
||||
$form->messages();
|
||||
$form->create_form('Kunde, Wohnanlage, Arbeit, Stunden, Stundenlohn, Comments|textarea');
|
||||
}
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
40
navbar.php
Normal file
40
navbar.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
?>
|
||||
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">MK Haustechnik</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="index.php?modus=Home">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?modus=Stunden">Stunden</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?modus=Kunden">Kunden</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?modus=Wohnanlagen">Wohnanlagen</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?modus=Arbeiten">Arbeiten</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Dropdown link
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="#">Action</a></li>
|
||||
<li><a class="dropdown-item" href="#">Another action</a></li>
|
||||
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
Loading…
Reference in a new issue