2021-08-23 10:41:53 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="no">
|
|
|
|
<head>
|
|
|
|
<title>IS-115 - Webprogrammering i PHP</title>
|
2021-10-18 20:01:45 +02:00
|
|
|
<link rel="stylesheet" href="index.css">
|
2021-08-23 10:41:53 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>IS-115 - Webprogrammering i PHP</h1>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
for($i = 1; $i <= 10; $i++){
|
|
|
|
if(file_exists('modul'.$i)){
|
|
|
|
echo "<p><a href='modul$i/'>Modul $i</a></p>";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "<p>Modul $i</p>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|