Remove problems from code inspection.

This commit is contained in:
2023-12-28 13:51:36 +01:00
parent b70cedac3b
commit 679257d709
41 changed files with 131 additions and 153 deletions

View File

@@ -17,4 +17,3 @@ if ($result2) {
echo '<a href="index.php?section=angebote">Zur<75>ck zur <20>bersicht</a>';
?>

View File

@@ -18,6 +18,8 @@ if ('will' == $_GET['t']) {
} elseif ('amelie' == $_GET['t']) {
$path = "../img/amelie/";
echo "<h2>Fotos auf der Seite Wohnung Amelie</h2>\n";
} else {
die();
}
$ref = "index.php?section=fotos&t=" . $_GET['t'];
@@ -31,13 +33,12 @@ if (!isset($_GET['action'])) {
$link = $ref . "&action=del&pic=" . $i;
echo "<a href=\"$link\">";
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"$pic\" width=\"100px\" height=\"100px\"/>";
echo "</a>\n";
} else {
$link = $ref . "&action=add&pic=" . $i;
echo "<a href=\"$link\">";
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"../img/no.jpg\" />";
echo "</a>\n";
}
echo "</a>\n";
}
} else {
if ('del' == $_GET['action']) {

View File

@@ -1,2 +1,2 @@
<p>In diesem Bereich können die Fotos für die einzelnen Bildergalerien hochgeladen werden.</p>
<p>Dafür muss eine Sektion im linken Bereich ausgewählt werden.</p>
<p>In diesem Bereich können die Fotos für die einzelnen Bildergalerien hochgeladen werden.</p>
<p>Dafür muss eine Sektion im linken Bereich ausgewählt werden.</p>

View File

@@ -8,8 +8,8 @@ if (!isset($_GET['action'])) {
for ($i = 0; $i < 2; $i++) {
$pic = $path . $i . ".jpg";
$link = $ref . "&action=add&pic=" . $i;
if (file_exists($pic)) {
$link = $ref . "&action=add&pic=" . $i;
if (0 == $i) {
echo "<p>Wohnung Gaby:</p>\n";
} else {
@@ -20,7 +20,6 @@ if (!isset($_GET['action'])) {
echo "</a>\n";
echo "<br />&nbsp;";
} else {
$link = $ref . "&action=add&pic=" . $i;
echo "<a href=\"$link\">";
echo "<img style=\"border: 2px solid red;\" src=\"../img/no.jpg\" />";
echo "</a>\n";

View File

@@ -17,4 +17,3 @@ if ($result2) {
echo '<a href="index.php?section=gb">Zur<75>ck zur <20>bersicht</a>';
?>

View File

@@ -10,4 +10,3 @@ if ($result2) {
echo '<a href="' . $ref . '">Zur<75>ck zur <20>bersicht</a>';
?>

View File

@@ -1,5 +1,5 @@
<?php
$sql1 = 'SELECT * FROM ' . $table . '';
$sql1 = 'SELECT * FROM ' . $table . ';';
$result1 = $db->query($sql1);
?>
<fieldset>

View File

@@ -1,5 +1,5 @@
<?php
$sql1 = 'SELECT * FROM ' . $table . '';
$sql1 = 'SELECT * FROM ' . $table . ';';
$result1 = $db->query($sql1);
echo "<label><b>Mieter</b></label>";

View File

@@ -10,4 +10,3 @@ if (isset($_POST['add'])) {
include "inhalte/kal/saison/standard.php";
}
?>

View File

@@ -10,4 +10,3 @@ if ($result2) {
echo '<a href="index.php?section=kal&t=saison">Zur<75>ck zur <20>bersicht</a>';
?>