get rid of id="customers" and replace by a class, because more than one table uses the css for it

This commit is contained in:
Karsten Siegmund 2024-01-11 18:24:10 +01:00
parent 02b8cf4904
commit 3b16d49364
12 changed files with 34 additions and 36 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*.pdf

View File

@ -126,7 +126,7 @@ if (isset($_POST['DienstSearch'])) {
?> ?>
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> <button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button>
<form method="post"> <form method="post">
<table border="0" id='customers'> <table border="0" class='commontable'>
<tr><th> Dienst</th><th><select name="DienstSearch" id="DienstSearch" onchange="submit()"> <tr><th> Dienst</th><th><select name="DienstSearch" id="DienstSearch" onchange="submit()">
<?php <?php
@ -168,7 +168,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
<table border="0" id="customers"> <table border="0" class="commontable">
<tr> <tr>
<td style="border: 0px solid black;">Was</td></tr><tr><td style="border: 0px solid black;"> <td style="border: 0px solid black;">Was</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Was" type="text" value="<?php echo htmlspecialchars($Was ?? '')?>"> <input name="Dienst-Was" type="text" value="<?php echo htmlspecialchars($Was ?? '')?>">
@ -243,7 +243,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
<form method="post"> <form method="post">
<table border="0" id='customers'"> <table border="0" class='commontable'">
<tr><th>Schicht</th><th><select name="SchichtSearch" id="SchichtSearch" onchange="submit()"> <tr><th>Schicht</th><th><select name="SchichtSearch" id="SchichtSearch" onchange="submit()">
@ -277,7 +277,7 @@ echo "<p><noscript><button name='ShowSchicht' value='1'>Schicht Anzeigen</button
<!-- <table border="0" style="border: 0px solid black;"> --> <!-- <table border="0" style="border: 0px solid black;"> -->
<table border="0" id='customers'"> <table border="0" class='commontable'">
<tr> <tr>
<td style="border: 0px solid black;">Von</td></tr><tr><td style="border: 0px solid black;"> <td style="border: 0px solid black;">Von</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Von" type="datetime-local" value="<?php echo htmlspecialchars($Von ?? '')?>" required> <input name="Schicht-Von" type="datetime-local" value="<?php echo htmlspecialchars($Von ?? '')?>" required>

View File

@ -214,7 +214,7 @@ if (! $db_erg) {
$iSQLCount = mysqli_num_rows($db_erg); $iSQLCount = mysqli_num_rows($db_erg);
//$iSQLCount = 3; //$iSQLCount = 3;
echo '<table id="customers">'; echo '<table class="commontable">';
echo "<thead>"; echo "<thead>";
echo "<tr>"; echo "<tr>";
@ -245,7 +245,7 @@ echo "<br><br>";
$iAlleSchichtenCount = AlleSchichtenCount($db_link); $iAlleSchichtenCount = AlleSchichtenCount($db_link);
$iBelegteSchichtenCount = AlleBelegteSchichtenCount($db_link); $iBelegteSchichtenCount = AlleBelegteSchichtenCount($db_link);
echo '<table id="customers" onclick="window.location.href=\'AdminAlleSchichten.php\'">'; echo '<table class="commontable" onclick="window.location.href=\'AdminAlleSchichten.php\'">';
echo "<tr>"; echo "<tr>";
echo "<th>" . "Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>"; echo "<th>" . "Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>";
echo "</tr>"; echo "</tr>";

View File

@ -124,7 +124,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
<table id="customers"> <table class="commontable">
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> Helferdaten</th> <th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> Helferdaten</th>
<?php echo "<b>" . EVENTNAME . "</b>"; ?> <?php echo "<b>" . EVENTNAME . "</b>"; ?>
@ -157,7 +157,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
</table> </table>
<table id="customers"> <table class="commontable">
<col style="width:20px"> <col style="width:20px">
<tr> <tr>
<td><input type="checkbox" name="IsAdmin" value=1 align="right" <?php if ($HelferIsAdmin == 1) { <td><input type="checkbox" name="IsAdmin" value=1 align="right" <?php if ($HelferIsAdmin == 1) {

View File

@ -23,7 +23,7 @@ require '_login.php';
<div style="width: 100%;"> <div style="width: 100%;">
<table id="customers" > <table class="commontable" >
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Dienst DAS 2023</b></th> <th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Dienst DAS 2023</b></th>
</tr> </tr>
@ -31,7 +31,7 @@ require '_login.php';
<?php <?php
echo '<table id="customers" >'; echo '<table class="commontable" >';
$db_erg = GetDiensteChilds($db_link, 0); $db_erg = GetDiensteChilds($db_link, 0);
while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) { while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
@ -55,7 +55,7 @@ echo "</table>";
$db_erg = AlleSchichtenImZeitbereich($db_link, "2000-05-18 00:00:00", "2200-05-19 00:00:00"); $db_erg = AlleSchichtenImZeitbereich($db_link, "2000-05-18 00:00:00", "2200-05-19 00:00:00");
$OldWas = ""; $OldWas = "";
echo "<br><br><table id='customers' style='page-break-before:always'>"; echo "<br><br><table class='commontable' style='page-break-before:always'>";
?> ?>
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Schichten der Dienste DAS 2023</b></th> <th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Schichten der Dienste DAS 2023</b></th>
@ -66,8 +66,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
if ($Was != $OldWas) { if ($Was != $OldWas) {
echo "</table>"; echo "</table>";
//echo '<table id="customers" style="page-break-before:always">'; //echo '<table class="commontable" style="page-break-before:always">';
echo '<table id="customers">'; echo '<table class="commontable">';
echo "<tr><th colspan=3>"; echo "<tr><th colspan=3>";
echo $Was; echo $Was;
echo "</th></tr>"; echo "</th></tr>";
@ -94,7 +94,7 @@ echo "</table>";
$OldHelferName = ""; $OldHelferName = "";
echo "<br><br><table id='customers' style='page-break-before:always'>"; echo "<br><br><table class='commontable' style='page-break-before:always'>";
?> ?>
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Helfer und Ihre Schichten DAS 2023</b></th> <th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Helfer und Ihre Schichten DAS 2023</b></th>
@ -106,8 +106,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
if ($HelferName != $OldHelferName) { if ($HelferName != $OldHelferName) {
echo "</table>"; echo "</table>";
//echo '<table id="customers" style="page-break-before:always">'; //echo '<table class="commontable" style="page-break-before:always">';
echo '<table id="customers">'; echo '<table class="commontable">';
echo "<tr><th colspan=3>"; echo "<tr><th colspan=3>";
echo $HelferName; echo $HelferName;
echo "</th></tr>"; echo "</th></tr>";

View File

@ -98,7 +98,7 @@ if (isset($_POST['sent'])) {
<p>Hier k&ouml;nnen Sie sich selbst einen Account als Helfer anlegen.</p> <p>Hier k&ouml;nnen Sie sich selbst einen Account als Helfer anlegen.</p>
<form method="post"> <form method="post">
<table id="customers"> <table class="commontable">
<tr> <tr>
<th>Helferdaten</th> <th>Helferdaten</th>
</tr> </tr>

View File

@ -105,7 +105,7 @@ $_SESSION["HelferID"] = $HelferID;
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
echo '<table id="customers">'; echo '<table class="commontable">';

View File

@ -263,7 +263,7 @@ if (! $db_erg) {
$iSQLCount = mysqli_num_rows($db_erg); $iSQLCount = mysqli_num_rows($db_erg);
//$iSQLCount = 3; //$iSQLCount = 3;
echo '<table id="customers">'; echo '<table class="commontable">';
echo "<thead>"; echo "<thead>";
echo "<tr>"; echo "<tr>";
@ -294,7 +294,7 @@ echo "<br><br>";
$iAlleSchichtenCount = AlleSchichtenCount($db_link); $iAlleSchichtenCount = AlleSchichtenCount($db_link);
$iBelegteSchichtenCount = AlleBelegteSchichtenCount($db_link); $iBelegteSchichtenCount = AlleBelegteSchichtenCount($db_link);
echo '<table id="customers" onclick="window.location.href=\'AlleSchichten.php\'">'; echo '<table class="commontable" onclick="window.location.href=\'AlleSchichten.php\'">';
echo "<tr>"; echo "<tr>";
echo "<th>" . '<img src="Bilder/PfeilRechts2.png" style="width:30px;height:30px;align:middle;">' . " Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>"; echo "<th>" . '<img src="Bilder/PfeilRechts2.png" style="width:30px;height:30px;align:middle;">' . " Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>";
echo "</tr>"; echo "</tr>";

View File

@ -23,7 +23,7 @@ require '_login.php';
echo "<b>" . EVENTNAME . "</b><br>"; echo "<b>" . EVENTNAME . "</b><br>";
echo '<H1> Helferdaten - Log </H1>'; echo '<H1> Helferdaten - Log </H1>';
echo '<p>Hier werden alle Aktionen, die einen Helfer betreffen aufgelistet</p>'; echo '<p>Hier werden alle Aktionen, die einen Helfer betreffen aufgelistet</p>';
echo '<table id="customers">' . "\n"; echo '<table class="commontable">' . "\n";
//check for admin status //check for admin status
$HelferID = $_SESSION["HelferID"]; $HelferID = $_SESSION["HelferID"];

View File

@ -110,7 +110,7 @@ if (isset($_POST['login'])) {
<table id="customers"> <table class="commontable">
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> Helferdaten <?php echo EVENTNAME; ?></th> <th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> Helferdaten <?php echo EVENTNAME; ?></th>
</tr> </tr>

View File

@ -25,7 +25,7 @@ if ($AdminStatus != 1) {
<body> <body>
<div style="width: 100%;"> <div style="width: 100%;">
<table id="customers" > <table class="commontable" >
<tr onclick="window.location.href='Info.php';"> <tr onclick="window.location.href='Info.php';">
<th><img src="Bilder/Info.jpeg" style="width:30px;height:30px;"> &nbsp; <b><?php echo EVENTNAME ?></b></th> <th><img src="Bilder/Info.jpeg" style="width:30px;height:30px;"> &nbsp; <b><?php echo EVENTNAME ?></b></th>
</tr> </tr>

View File

@ -1 +0,0 @@
alert("jquery-3.7.1.min.js is missing from the js directory");