add files

This commit is contained in:
tbS
2025-08-02 13:10:21 +02:00
commit aa4fa9ae0f
702 changed files with 103724 additions and 0 deletions

616
test/css/aufträge.css Normal file
View File

@@ -0,0 +1,616 @@
table {
width: 90%;
margin-left: auto;
margin-right: auto;
}
caption {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
#erfolgreich{
text-align: center;
font-size: 22px;
}
.auftrag_anlegen_material_hinzufügen {
margin-left: 10px;
cursor: pointer;
}
.hinzufügen {
position: absolute;
right: 10px;
left: auto;
top: auto;
bottom: 10px;
height: 40px;
width: 40px;
background-color: gray;
border-radius: 25px;
}
.hinzufügen_link {
font-size: 35px;
font-weight: bolder;
height: 100%;
width: 100%;
display: flex;
align-content: center;
justify-content: center;
border-radius: 25px;
cursor: pointer;
}
.auftrag_anlegen {
display: none;
}
.auftrag {
width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
}
.auftrag_links {
width: 50%;
float: left;
display: flex;
margin-bottom: 60px;
}
.auftrag_rechts {
width: 50%;
float: right;
margin-bottom: 60px;
display: flex;
}
.auftrag_label {
text-align: center;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
width: 100%;
margin-bottom: 10px;
}
.button_table {
font-size: 15px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 25px;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 19px;
width: 100%;
padding: 5px;
}
.box_select {
border-left-width: 2px;
border-right-width: 2px;
border-top-width: 2px;
}
.datei_auswahl::-webkit-file-upload-button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
}
.datei_auswahl {
margin: 5px;
margin-left: auto;
}
.datei_menu {
margin: 5px;
margin-left: auto;
font-size: 20px;
font-weight: bolder;
cursor: pointer;
width: 100px;
user-select: none;
}
.bild_schliessen {
position: fixed;
top: 20px;
right: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
user-select: none;
}
.bild_vor {
position: fixed;
top: 50%;
left: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
transform: translate(0%, -50%);
border-radius: 25px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.93);
user-select: none;
}
.bild_weiter {
position: fixed;
top: 50%;
right: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
transform: translate(0%, -50%);
border-radius: 25px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.93);
user-select: none;
}
.bild_div {
position: relative;
height: 150px;
width: 150px;
margin: 10px;
display: inline-block;
}
.bild_div img {
position: relative;
height: 150px;
width: 150px;
}
.bild_div_before {
z-index: 1;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
transition: all 0.8s;
opacity: 0;
background: gray;
background-size: 100% 100%;
font-size: 60px;
font-weight: bolder;
display: flex;
justify-content: center;
align-items: center;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #4b4b4b;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #777;
}
@media only screen and (max-device-width: 480px) {
/*body {background:red;}*/
table {
width: 90%;
margin-left: auto;
margin-right: auto;
font-size: 35px;
}
caption {
font-weight: bold;
font-size: 35px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
.hinzufügen {
position: absolute;
right: 10px;
left: auto;
top: auto;
bottom: 120px;
height: 55px;
width: 55px;
background-color: gray;
border-radius: 25px;
}
.hinzufügen_link {
font-size: 55px;
font-weight: bolder;
height: 100%;
width: 100%;
display: flex;
align-content: center;
justify-content: center;
border-radius: 25px;
cursor: pointer;
}
.menu_link {
font-size: 22px;
}
.menu_abmelden {
font-size: 22px;
}
.menu_account {
font-size: 22px;
}
.auftrag_links {
width: 100%;
}
.auftrag_rechts {
width: 100%;
margin-top: 20px;
margin-bottom: 60px;
}
#erfolgreich{
text-align: center;
font-size: 30px;
}
.auftrag {
font-weight: bolder;
font-size: 25px;
color: BLACK;
}
.auftrag tr {
font-size: 1.5vh;
}
.button {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_table {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 1.5vh;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 1.5vh;
width: 100%;
padding: 5px;
-webkit-appearance: none;
min-height: 40px;
}
.box_select {
/*padding: 4.9px;*/
/*margin-bottom: 1.2%;*/
border-color: transparent;
}
.datei_auswahl::-webkit-file-upload-button {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.datei_auswahl {
font-size: 1vh;
margin-left: 10px;
}
.datei_menu {
font-size: 1.5vh;
margin-right: auto;
margin-left: auto;
}
.bild_schliessen {
font-size: 80px;
margin-right: 20px;
margin-top: 20px;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 1024px) {
/*body {background:green;}*/
table {
width: 90%;
margin-left: auto;
margin-right: auto;
}
caption {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
.auftrag_links {
width: 100%;
}
.auftrag_rechts {
width: 100%;
margin-top: 20px;
margin-bottom: 60px;
}
.auftrag {
font-weight: bolder;
font-size: 25px;
color: BLACK;
}
#erfolgreich{
text-align: center;
font-size: 30px;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
margin-bottom: 10px;
}
/*.box {
height: fit-content;
padding: 30px;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 5px;
width: 27.64%;
}*/
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 30px;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 22px;
width: 100%;
padding: 5px;
-webkit-appearance: none;
min-height: 40px;
}
.box_select {
/*padding: 4.9px;*/
margin-bottom: 0.51%;
border-color: transparent;
}
}

618
test/css/aufträge_dev.css Normal file
View File

@@ -0,0 +1,618 @@
table {
width: 90%;
margin-left: auto;
margin-right: auto;
}
caption {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
#erfolgreich{
text-align: center;
font-size: 22px;
}
.auftrag_anlegen_material_hinzufügen {
margin-left: 10px;
cursor: pointer;
}
.hinzufügen {
position: absolute;
right: 10px;
left: auto;
top: auto;
bottom: 10px;
height: 40px;
width: 40px;
background-color: gray;
border-radius: 25px;
}
.hinzufügen_link {
font-size: 35px;
font-weight: bolder;
height: 100%;
width: 100%;
display: flex;
align-content: center;
justify-content: center;
border-radius: 25px;
cursor: pointer;
}
.auftrag_anlegen {
display: none;
}
.auftrag {
width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
}
.auftrag_links {
width: 50%;
float: left;
display: flex;
margin-bottom: 60px;
}
.auftrag_rechts {
width: 50%;
float: right;
margin-bottom: 60px;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.auftrag_label {
text-align: center;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
width: 100%;
margin-bottom: 10px;
}
.button_table {
font-size: 15px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 25px;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 19px;
width: 100%;
padding: 5px;
}
.box_select {
border-left-width: 2px;
border-right-width: 2px;
border-top-width: 2px;
}
.datei_auswahl::-webkit-file-upload-button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
}
.datei_auswahl {
margin: 5px;
margin-left: auto;
}
.datei_menu {
margin: 5px;
margin-left: auto;
font-size: 20px;
font-weight: bolder;
cursor: pointer;
width: 100px;
user-select: none;
}
.bild_schliessen {
position: fixed;
top: 20px;
right: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
user-select: none;
}
.bild_vor {
position: fixed;
top: 50%;
left: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
transform: translate(0%, -50%);
border-radius: 25px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.93);
user-select: none;
}
.bild_weiter {
position: fixed;
top: 50%;
right: 20px;
font-size: 28px;
font-weight: bolder;
color: white;
font-family: monospace;
transform: translate(0%, -50%);
border-radius: 25px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.93);
user-select: none;
}
.bild_div {
position: relative;
height: 150px;
width: 150px;
margin: 10px;
display: inline-block;
}
.bild_div img {
position: relative;
height: 150px;
width: 150px;
}
.bild_div_before {
z-index: 1;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
transition: all 0.8s;
opacity: 0;
background: gray;
background-size: 100% 100%;
font-size: 60px;
font-weight: bolder;
display: flex;
justify-content: center;
align-items: center;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #4b4b4b;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #777;
}
@media only screen and (max-device-width: 480px) {
/*body {background:red;}*/
table {
width: 90%;
margin-left: auto;
margin-right: auto;
font-size: 35px;
}
caption {
font-weight: bold;
font-size: 35px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
.hinzufügen {
position: absolute;
right: 10px;
left: auto;
top: auto;
bottom: 120px;
height: 55px;
width: 55px;
background-color: gray;
border-radius: 25px;
}
.hinzufügen_link {
font-size: 55px;
font-weight: bolder;
height: 100%;
width: 100%;
display: flex;
align-content: center;
justify-content: center;
border-radius: 25px;
cursor: pointer;
}
.menu_link {
font-size: 22px;
}
.menu_abmelden {
font-size: 22px;
}
.menu_account {
font-size: 22px;
}
.auftrag_links {
width: 100%;
}
.auftrag_rechts {
width: 100%;
margin-top: 20px;
margin-bottom: 60px;
}
#erfolgreich{
text-align: center;
font-size: 30px;
}
.auftrag {
font-weight: bolder;
font-size: 25px;
color: BLACK;
}
.auftrag tr {
font-size: 1.5vh;
}
.button {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_table {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 1.5vh;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 1.5vh;
width: 100%;
padding: 5px;
-webkit-appearance: none;
min-height: 40px;
}
.box_select {
/*padding: 4.9px;*/
/*margin-bottom: 1.2%;*/
border-color: transparent;
}
.datei_auswahl::-webkit-file-upload-button {
font-size: 1.5vh;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.datei_auswahl {
font-size: 1vh;
margin-left: 10px;
}
.datei_menu {
font-size: 1.5vh;
margin-right: auto;
margin-left: auto;
}
.bild_schliessen {
font-size: 80px;
margin-right: 20px;
margin-top: 20px;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 1024px) {
/*body {background:green;}*/
table {
width: 90%;
margin-left: auto;
margin-right: auto;
}
caption {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
.auftrag_links {
width: 100%;
}
.auftrag_rechts {
width: 100%;
margin-top: 20px;
margin-bottom: 60px;
}
.auftrag {
font-weight: bolder;
font-size: 25px;
color: BLACK;
}
#erfolgreich{
text-align: center;
font-size: 30px;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
color: BLACK;
}
.button_div {
position: sticky;
bottom: 10px;
display: flex;
justify-content: center;
margin-bottom: 10px;
}
/*.box {
height: fit-content;
padding: 30px;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 5px;
width: 27.64%;
}*/
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 28.7%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 30px;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 22px;
width: 100%;
padding: 5px;
-webkit-appearance: none;
min-height: 40px;
}
.box_select {
/*padding: 4.9px;*/
margin-bottom: 0.51%;
border-color: transparent;
}
}

87
test/css/benutzer.css Normal file
View File

@@ -0,0 +1,87 @@
.benutzer_inhalt {
display: flex;
justify-content: center;
align-items: center;
height: 84%;
}
.header_bild_div {
width: 100%;
height: fit-content;
display: flex;
justify-content: center;
margin-top: 20px;
margin-bottom: 20px;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 20.4%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 25px;
font-weight: bolder;
text-decoration: underline;
color: white;
user-select: none;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 19px;
width: 100%;
padding: 5px;
margin-bottom: 5px;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
user-select: none;
color: black;
margin-top: 20px;
}
.error {
font-size: 20px;
color: red;
text-align: center;
margin-top: 10px;
}
@media only screen and (max-device-width: 480px) {
.box_33 {
width: 50%;
}
.box_input {
font-size: 29px;
}
.button {
font-size: 30px;
}
.error {
font-size: 30px;
}
}

137
test/css/dashboard.css Normal file
View File

@@ -0,0 +1,137 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f0f0f0;
}
.header {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.header_inner {
display: flex;
align-items: center;
width: 100%;
}
.header_image img {
border-radius: 50%;
}
.header_text .site-title {
font-weight: bold;
font-size: 20px;
color: #666;
margin-left: 15px;
}
.menu, .menu2, .mobile_menu {
display: flex;
align-items: center;
}
.menu_link, .menu_abmelden, .menu_account {
text-decoration: none;
color: #007bff;
margin: 0 10px;
font-size: 16px;
transition: color 0.3s ease;
}
.menu_link:hover, .menu_abmelden:hover, .menu_account:hover {
color: #0056b3;
}
.switch {
position: relative;
display: inline-block;
width: 34px;
height: 20px;
margin-left: 20px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #007bff;
}
input:checked + .slider:before {
transform: translateX(14px);
}
.mobile_menu {
display: none;
background-color: #fff;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
position: fixed;
bottom: 0;
width: 100%;
justify-content: space-around;
}
.mobile_menu_inner a {
color: #007bff;
font-size: 24px;
text-decoration: none;
}
@media (max-width: 768px) {
.menu {
display: none;
}
.mobile_menu {
display: flex;
}
}
main {
flex: 1;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
margin: 20px;
}

103
test/css/kalender.css Normal file
View File

@@ -0,0 +1,103 @@
a {
color: black;
text-decoration: none;
}
td {
border: 1px solid black;
}
table {
width: 100%;
}
.aktuelles_datum {
font-weight: bold;
font-size: 30px;
display: flex;
flex-direction: row;
justify-content: center;
margin-top:20px;
border-bottom: 1px solid black;
}
.sort {
display: flex;
justify-content: space-between;
/* margin-top: 10px; */
width: 260px;
margin-left: auto;
margin-right: auto;
position: absolute;
right: 20px;
top: 170px;
font-size: 20px;
}
.sort a {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
}
.kalender_div_inhalt {
height: auto;
width: 100%;
border-bottom: 1px solid black;
}
.kalender_div {
width: 13.18%;
height: 13%;
float: left;
border: black 1px solid;
margin: 0.5%;
}
.aktuell {
background-color: lightgray;
}
@media only screen and (max-device-width: 480px) {
.kalender_div {
width: 32%;
font-size: 25px;
}
.aktuelles_datum {
font-size: 35px;
}
#prev-month {
font-size: 35px;
}
#next-month {
font-size: 35px;
}
#aktueller-monat {
font-size: 35px;
width: auto !important;
padding: 10px;
}
#prev-year {
font-size: 35px;
}
#next-year {
font-size: 35px;
}
#year {
font-size: 35px;
width: 100px !important;
}
tr {
font-size: 35px;
}
}

345
test/css/kunden.css Normal file
View File

@@ -0,0 +1,345 @@
.haupt_div {
width: 80%;
margin: auto;
}
.sort {
display: flex;
justify-content: space-between;
margin-top: 10px;
width: 65%;
margin-left: auto;
margin-right: auto;
border-bottom: 1px solid black;
}
.sort a {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
cursor: pointer;
user-select: none;
}
#kunden_auswahl_div {
width: 20%;
float: left;
text-align: center;
height: 50%;
overflow-y: scroll;
margin-top: 10%;
position: relative
}
.kunden_daten {
width: 80%;
float: left;
text-align: center;
display: none;
flex-wrap: wrap;
}
.kunden_daten_laden_select {
display:none;
}
.sort_select {
display: none
}
.focus {
color: #2d2d2d !important;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 14.35%;
padding-bottom: 0.5%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 30px;
font-weight: bolder;
text-decoration: underline;
color: white;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 22px;
width: 100%;
padding: 5px;
-webkit-appearance: none;
min-height: 40px;
}
.kunden_label {
text-align: center;
font-weight: bold;
font-size: 22px;
color:gray;
margin-top: 10px;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
user-select: none;
color: black;
}
.kunden_auswahl {
display: block;
cursor: pointer;
font-weight: bold;
}
.kunden_auswahl:hover {
color: gray;
}
.kunden_auswahl_focus {
color:gray;
}
.box {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 97.7%;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 20.4%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 25px;
font-weight: bolder;
text-decoration: underline;
color: white;
user-select: none;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 19px;
width: 100%;
padding: 5px;
}
.box_select {
border-left-width: 2px;
border-right-width: 2px;
border-top-width: 2px;
}
.kunden_label {
text-align: center;
font-weight: bold;
font-size: 22px;
color:gray;
margin-top: 10px;
width: 100%;
user-select: none;
}
.kunden_fahrzeug_auswahl {
display: inline-block;
cursor: pointer;
font-weight: bold;
margin: 5px;
color: white;
font-size: 19px;
}
.kunden_fahrzeug_auswahl:hover {
color: gray;
}
.kunden_fahrzeug_auswahl_focus {
color:gray;
}
.kunden_anlegen {
display: block;
cursor: pointer;
font-weight: bold;
position: absolute;
bottom: 0px;
width: 100%;
background-color: white;
}
.kunden_anlegen:hover {
color: gray;
}
.kunden_anlegen::scroll{
position: sticky;
}
.kunden_daten_übertragen {
display: none;
width: 80%;
float: left;
text-align: center;
}
.kunden_fahrzeug_auswahl_div {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.fahrzeug_hinzufügen {
cursor: pointer;
user-select: none;
color: white;
font-size: 19px;
margin-top: auto;
margin-bottom: auto;
}
.error {
display: flex;
flex-direction: row;
justify-content: center;
}
html {
overflow-y: scroll;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.tel_button {
display: none;
text-decoration: none;
}
.nav_box {
display: none;
}
.nav_button {
text-decoration: none;
}
@media only screen and (max-device-width: 480px) {
.haupt_div {
width: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.sort {
display:none;
}
#kunden_auswahl_div {
display: none;
}
.kunden_daten {
width: 100%;
}
.sort_select {
display: block;
font-size: 1.5vh;
font-weight: bold;
border-radius: 25px;
padding: 8px;
margin-top: 10px;
color: Black;
}
.kunden_daten_laden_select {
display: block;
font-size: 1.5vh;
font-weight: bold;
border-radius: 25px;
padding: 8px;
margin-top: 10px;
margin-left: 5px;
color: Black;
}
.box_33 {
width: 28.7%;
}
.box_label {
font-size: 35px;
}
.box_input {
font-size: 29px;
}
.kunden_fahrzeug_auswahl {
font-size: 29px;
}
.fahrzeug_hinzufügen {
font-size: 29px;
}
.button {
font-size: 30px;
}
.tel_button {
display: block;
}
.nav_box {
display: block;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 1024px) {
}

90
test/css/login.css Normal file
View File

@@ -0,0 +1,90 @@
body {
display: flex;
justify-content: center;
align-items: center;
}
.header_bild_div {
width: 100%;
height: fit-content;
display: flex;
justify-content: center;
margin-top: 20px;
margin-bottom: 20px;
}
.box_33 {
height: fit-content;
padding: 2%;
box-shadow: #adadad 3px 3px;
background-color: #2c2c2c;
border-radius: 15px;
margin: 0.3%;
width: 20.4%;
}
.box_label {
display: block;
text-align: center;
margin-bottom: 20px;
font-size: 25px;
font-weight: bolder;
text-decoration: underline;
color: white;
user-select: none;
}
.box_input {
display: block;
background-color: #858585;
color: white;
font-weight: bolder;
font-size: 19px;
width: 100%;
padding: 5px;
margin-bottom: 5px;
}
.button {
font-size: 20px;
background-color: gray;
border-radius: 25px;
padding: 7px;
font-weight: 900;
cursor: pointer;
margin-left: 2px;
margin-right: 2px;
border: 2px solid #343434;
user-select: none;
color: black;
margin-top: 20px;
}
.error {
font-size: 20px;
color: red;
text-align: center;
margin-top: 10px;
}
@media only screen and (max-device-width: 480px) {
.box_33 {
width: 80%;
}
.box_input {
font-size: 49px;
}
.button {
font-size: 49px;
}
.error {
font-size: 49px;
}
.label_eingeloggt_bleiben {
font-size: 49px;
}
}

49
test/css/startseite.css Normal file
View File

@@ -0,0 +1,49 @@
table {
width: 90%;
margin-left: auto;
margin-right: auto;
}
caption {
font-weight: bold;
font-size: 20px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
@media only screen and (max-device-width: 480px) {
table {
width: 90%;
margin-left: auto;
margin-right: auto;
font-size: 35px;
}
caption {
font-weight: bold;
font-size: 35px;
color: #666;
font-family: sans-serif;
text-decoration: unset;
margin-top: 10px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
padding: 2px;
text-align: center;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 1024px) {
}

59
test/dashboard.css Normal file
View File

@@ -0,0 +1,59 @@
body {
font-family: 'Arial', sans-serif;
background-color: #f0f2f5;
overflow-x: hidden;
}
.wrapper {
display: flex;
width: 100%;
align-items: stretch;
}
#sidebar {
min-width: 250px;
max-width: 250px;
background: #343a40;
color: #fff;
transition: all 0.3s;
}
#sidebar .sidebar-header {
padding: 20px;
background: #007bff;
}
#sidebar ul.components {
padding: 20px 0;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
color: #fff;
text-decoration: none;
transition: all 0.3s;
}
#sidebar ul li a:hover {
background: #007bff;
}
#content {
width: 100%;
padding: 20px;
transition: all 0.3s;
}
#sidebarCollapse {
width: 40px;
height: 40px;
background: #007bff;
color: #fff;
border: none;
}
#sidebarCollapse:hover {
background: #0056b3;
}

7
test/dashboard.js Normal file
View File

@@ -0,0 +1,7 @@
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$('#content').toggleClass('active');
});
});

98
test/dashboard.php Normal file
View File

@@ -0,0 +1,98 @@
<?php
include('../session.php');
// Debugging
if (DEBUG == "true") {
echo "<script>console.log('DEBUG Aktiv')</script>";
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KFZ - tbS-server.de</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="css/dashboard.css">
<link rel="apple-touch-icon" href="favicon.ico"/>
<link rel="manifest" href="manifest.json">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="install.js" defer></script>
</head>
<body>
<header class="header">
<div class="header_inner">
<div class="header_image">
<img src="<?php echo $header_login_image; ?>" alt="Logo tbS-server" title="60c27a79a86131000bab5527" class="wp-image-417" width="100" height="100">
</div>
<div class="header_text">
<p class="site-title">tbs-server.de</p>
</div>
<nav class="menu">
<a class="menu_link" href="?seite=startseite">Startseite</a>
<a class="menu_link" href="?seite=kalender">Kalender</a>
<a class="menu_link" href="?seite=kunden">Kunden</a>
<a class="menu_link" href="?seite=aufträge">Aufträge</a>
<a class="menu_link" href="?seite=privat">Privat</a>
</nav>
<?php if ($_SESSION['login_user'] == "tbS"): ?>
<label class="switch">
<input id="dev" type="checkbox" <?php if ($_COOKIE['dev'] == "true") echo "checked"; ?>>
<span class="slider round"></span>
</label>
<script>
$(document).ready(function() {
$("#dev").change(function() {
var isChecked = $(this).prop("checked");
document.cookie = "dev=" + isChecked + "; path=/";
});
});
</script>
<?php endif; ?>
<div class="menu2">
<a class="menu_abmelden" href="logout.php">Abmelden</a>
<a class="menu_account" href="?seite=benutzer" data-name="<?php echo $login_session; ?>">Benutzer</a>
</div>
</div>
</header>
<nav class="mobile_menu">
<div class="mobile_menu_inner">
<a class="menu_link" href="?seite=startseite"><i class="material-icons">home</i></a>
<a class="menu_link" href="?seite=kalender"><i class="material-icons">calendar_today</i></a>
<a class="menu_link" href="?seite=kunden"><i class="material-icons">contacts</i></a>
<a class="menu_link" href="?seite=aufträge"><i class="material-icons">checklist</i></a>
<a class="menu_link" href="?seite=privat"><i class="material-icons">directions_car</i></a>
<a class="menu_account" href="?seite=benutzer" data-name="<?php echo $login_session; ?>"><i class="material-icons">settings</i></a>
<a class="menu_abmelden" href="logout.php"><i class="material-icons">logout</i></a>
</div>
</nav>
<main>
<?php
$allow = array('startseite', 'kalender', 'kunden', 'aufträge', 'benutzer', 'privat');
$page = isset($_GET['seite']) && in_array($_GET['seite'], $allow) ? $_GET['seite'] : 'startseite';
if ($_SESSION['login_user'] == "tbS" && $_COOKIE['dev'] == "true") {
if (file_exists('admin/'.$page.'_dev.php')) {
echo "<h1 style='color: red; text-align: center; font-weight: bold;'>DEV</h1>";
include_once('admin/'.$page.'_dev.php');
} else {
include_once('admin/'.$page.'.php');
}
} else {
include_once('../admin/'.$page.'.php');
}
?>
</main>
</body>
</html>

120
test/login.php Normal file
View File

@@ -0,0 +1,120 @@
<?php
include("../config/config.php");
session_start();
if(isset($_SESSION['login_user'])){
header("location:dashboard.php");
die();
}
if(isset($_COOKIE['eingeloggt_bleiben']) && !isset($_SESSION["login_user"])) {
$user = json_decode($_COOKIE['eingeloggt_bleiben'], true);
$ses_sql = mysqli_query($db,"select username from admin where username = '$user[username]' and passcode = '$user[password]'");
$row = mysqli_fetch_array($ses_sql,MYSQLI_ASSOC);
$count = mysqli_num_rows($ses_sql);
if ($count == 1) {
$login_session = $user['username'];
$_SESSION['login_user'] = $login_session;
header("location: dashboard.php");
die();
}else {
setcookie('eingeloggt_bleiben', '', 1);
}
}
$error = "";
if($_SERVER["REQUEST_METHOD"] == "POST") {
// username and password sent from form
$myusername = mysqli_real_escape_string($db,$_POST['benutzername']);
$mypassword = mysqli_real_escape_string($db,$_POST['passwort']);
//$mypassword = md5($mypassword);
$mypassword = hash_hmac('md5', $mypassword, $secretKey);
$sql = "SELECT * FROM admin WHERE username = '$myusername' and passcode = '$mypassword'";
$result = mysqli_query($db,$sql);
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
//$active = $row['active'];
$count = mysqli_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row
if($count == 1) {
$_SESSION['login_user'] = $myusername;
if ($_POST['eingeloggt_bleiben'] == true) {
setcookie('eingeloggt_bleiben', json_encode([
'username' => $myusername,
'password' => $mypassword
]), time() + 3600 * 24 * 30);
}
header("location: dashboard.php");
}else {
$error = "Benutzername oder Password falsch!";
}
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<title>Login Seite</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="login-container">
<form class="login-form" action="" method="post">
<h2>Login</h2>
<div class="error"><?php echo $error; ?></div>
<div class="input-group">
<label for="username">Benutzername</label>
<input type="text" id="username" name="benutzername" required>
</div>
<div class="input-group">
<label for="password">Passwort</label>
<div class="password_show">
<input type="password" id="password" name="passwort" required>
<span class="material-icons toggle-password" id="togglePassword">
visibility_off
</span>
</div>
</div>
<div class="input-group checkbox">
<input type="checkbox" id="eingeloggt_bleiben" name="eingeloggt_bleiben">
<label for="eingeloggt_bleiben">Eingeloggt bleiben</label>
</div>
<div class="actions">
<button type="submit">Anmelden</button>
</div>
</form>
</div>
</body>
</html>
<script>
document.getElementById('togglePassword').addEventListener('click', function (e) {
const passwordInput = document.getElementById('password');
const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
passwordInput.setAttribute('type', type);
this.textContent = type === 'password' ? 'visibility_off' : 'visibility';
});
</script>

12
test/scripts.js Normal file
View File

@@ -0,0 +1,12 @@
function handleLogin(event) {
event.preventDefault();
// Simulate a successful login with a delay for demonstration
document.getElementById('loading').classList.add('active');
setTimeout(() => {
// Redirect to dashboard.php after animation
window.location.href = 'dashboard.php';
}, 2000);
}

101
test/styles.css Normal file
View File

@@ -0,0 +1,101 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
user-select: none;
}
.login-container {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
}
.login-form {
display: flex;
flex-direction: column;
}
.login-form h2 {
margin-bottom: 20px;
color: #333;
text-align: center;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
margin-bottom: 5px;
display: block;
color: #555;
}
.input-group input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
user-select: text;
}
.input-group.checkbox {
display: flex;
align-items: center;
}
.input-group.checkbox input {
width: auto;
margin-right: 10px;
}
.actions {
display: flex;
justify-content: center;
}
.actions button {
background: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s ease;
}
.actions button:hover {
background: #0056b3;
}
.error {
color: red;
font-weight: bold;
text-align: center;
margin-bottom: 10px;
}
.password_show {
display: flex;
}
.toggle-password {
margin-left: 10px;
margin-bottom: auto;
margin-top: auto;
}