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>
<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()">
<?php
@ -168,25 +168,25 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
<table border="0" id="customers">
<tr>
<table border="0" class="commontable">
<tr>
<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 ?? '')?>">
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Wo</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Wo</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Wo" type="text " value="<?php echo htmlspecialchars($Wo ?? '')?>">
</td>
</tr>
</tr>
<td style="border: 0px solid black;">Info</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Info</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Info" type="text" value="<?php echo htmlspecialchars($Info ?? '')?>" >
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Leiter</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Leiter</td></tr><tr><td style="border: 0px solid black;">
<!-- <input name="Dienst-Leiter" type="text" value="<?php echo htmlspecialchars($Leiter ?? '')?>" > -->
<?php
echo "<select name='Dienst-Leiter'>";
@ -200,10 +200,10 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
}
echo "</select>";
?>
</td>
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Gruppe</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Gruppe</td></tr><tr><td style="border: 0px solid black;">
<?php
//echo "#####".$Gruppe."#####";
@ -219,7 +219,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
echo "</select>";
?>
</td>
</td>
</td>
</tr>
<tr><td style="border: 0px solid black;">HelferLevel</td></tr>
<tr><td style="border: 0px solid black;">
@ -243,7 +243,7 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
<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()">
@ -277,19 +277,19 @@ echo "<p><noscript><button name='ShowSchicht' value='1'>Schicht Anzeigen</button
<!-- <table border="0" style="border: 0px solid black;"> -->
<table border="0" id='customers'">
<tr>
<table border="0" class='commontable'">
<tr>
<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>
</td>
<tr>
</tr>
<td style="border: 0px solid black;">Bis</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Bis</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Bis" type="datetime-local" value="<?php echo htmlspecialchars($Bis ?? '')?>" required>
</td>
<tr>
</tr>
<td style="border: 0px solid black;">Soll</td></tr><tr><td style="border: 0px solid black;">
<td style="border: 0px solid black;">Soll</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Soll" type="number" min=1 value="<?php echo htmlspecialchars((int)$Soll ?? '')?>" required>
</td>
<tr>

View File

@ -214,7 +214,7 @@ if (! $db_erg) {
$iSQLCount = mysqli_num_rows($db_erg);
//$iSQLCount = 3;
echo '<table id="customers">';
echo '<table class="commontable">';
echo "<thead>";
echo "<tr>";
@ -245,7 +245,7 @@ echo "<br><br>";
$iAlleSchichtenCount = AlleSchichtenCount($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 "<th>" . "Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>";
echo "</tr>";

View File

@ -124,7 +124,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
<table id="customers">
<table class="commontable">
<tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> Helferdaten</th>
<?php echo "<b>" . EVENTNAME . "</b>"; ?>
@ -157,7 +157,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
</table>
<table id="customers">
<table class="commontable">
<col style="width:20px">
<tr>
<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%;">
<table id="customers" >
<table class="commontable" >
<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>
</tr>
@ -31,7 +31,7 @@ require '_login.php';
<?php
echo '<table id="customers" >';
echo '<table class="commontable" >';
$db_erg = GetDiensteChilds($db_link, 0);
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");
$OldWas = "";
echo "<br><br><table id='customers' style='page-break-before:always'>";
echo "<br><br><table class='commontable' style='page-break-before:always'>";
?>
<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>
@ -66,8 +66,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
if ($Was != $OldWas) {
echo "</table>";
//echo '<table id="customers" style="page-break-before:always">';
echo '<table id="customers">';
//echo '<table class="commontable" style="page-break-before:always">';
echo '<table class="commontable">';
echo "<tr><th colspan=3>";
echo $Was;
echo "</th></tr>";
@ -94,7 +94,7 @@ echo "</table>";
$OldHelferName = "";
echo "<br><br><table id='customers' style='page-break-before:always'>";
echo "<br><br><table class='commontable' style='page-break-before:always'>";
?>
<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>
@ -106,8 +106,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
if ($HelferName != $OldHelferName) {
echo "</table>";
//echo '<table id="customers" style="page-break-before:always">';
echo '<table id="customers">';
//echo '<table class="commontable" style="page-break-before:always">';
echo '<table class="commontable">';
echo "<tr><th colspan=3>";
echo $HelferName;
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>
<form method="post">
<table id="customers">
<table class="commontable">
<tr>
<th>Helferdaten</th>
</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 = 3;
echo '<table id="customers">';
echo '<table class="commontable">';
echo "<thead>";
echo "<tr>";
@ -294,7 +294,7 @@ echo "<br><br>";
$iAlleSchichtenCount = AlleSchichtenCount($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 "<th>" . '<img src="Bilder/PfeilRechts2.png" style="width:30px;height:30px;align:middle;">' . " Alle Schichten der Con (" . $iBelegteSchichtenCount . "/" . $iAlleSchichtenCount . ")</th>";
echo "</tr>";

View File

@ -23,7 +23,7 @@ require '_login.php';
echo "<b>" . EVENTNAME . "</b><br>";
echo '<H1> Helferdaten - Log </H1>';
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
$HelferID = $_SESSION["HelferID"];

View File

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

View File

@ -25,7 +25,7 @@ if ($AdminStatus != 1) {
<body>
<div style="width: 100%;">
<table id="customers" >
<table class="commontable" >
<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>
</tr>

View File

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