first commit

This commit is contained in:
2021-09-25 22:45:02 +02:00
parent a4b1e5bdea
commit 1a9410c7b0
13 changed files with 304 additions and 0 deletions

32
sitesList.php Normal file
View File

@ -0,0 +1,32 @@
<html>
<head>
<title>TablIP</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header>
<h1>TablIP</h1>
</header>
<ul>
<?php
include "connect.php";
$sites = $db->query('SELECT Name FROM Site ORDER BY Name');
while ($site = $sites->fetch())
{
echo " <li><a href='.?site=${site['Name']}'>${site['Name']}</a></li>\n";
}
$sites->closeCursor();
?>
</ul>
<form name="addSite" id="addSite" action="addSite.php" method="post">
<fieldset class="add">
<legend>Ajouter un site</legend>
<label for="siteName">Nom</label>
<input type="text" id="siteName" name="siteName" required/>
<button type="submit">Ajouter</button>
</fieldset>
</form>
</body>
</html>