The following files exists in this folder. Click to view.
exercices/
exercises.php
header.php
incl/
index.php
ovningar/
project
projects.php
projekt/
reflections.php
source.php
stresstest.php
style.css
test
test.py
upgifter/
viewsource.php
word-app/
exercises.php
119 lines UTF-8 Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
include("incl/config.php");
$title = "Övningar - Alriks sida (wsprog 1)";
$pageId = "exercises";
$pageStyle = ''; // page unique styles
include("incl/header.php");
?>
<?php
function newExerciseTheme($name) {
?>
<div class="exercise-theme">
<h3><span class="arrow-right"></span><?= $name ?></h3>
<div class="exercise-subs">
<?php
}
function endExerciseTheme() {
?>
</div>
</div>
<?php
}
function exerciseGroup($pathPart1, $pathPart2, $from, $to, $displayName) {
for ($i = $from; $i <= $to; $i++) {
echo "<a class='sub-link' target='_blank' href='exercises/{$pathPart1}{$i}{$pathPart2}'>{$displayName} {$i}</a>";
}
}
function exerciseSingle($path, $displayName) {
echo "<a class='sub-link' target='_blank' href='exercises/{$path}'>{$displayName}</a>";
}
?>
<!-- main content -->
<main>
<article>
<h1>Övningar</h1>
<p>Detta är en samlingssida för mina övningar i de olika kursmomenten.</p>
<p>Här finns endast övningar från kursen Webbserverprogrammering 1. Äldre övningar från Webbutveckling 1 och 2 finns uppladdat men åtkomst sker via separata samlingssidor. Länkar till dessa finns på <a href="http://labb.vgy.se/~alrikmz/">startsidan</a>.</p>
<p>Källkoden till mina övningar och övriga delar till sidan, hittar du i <a href="viewsource.php?dir=exercises">denna katalogen</a>.</p>
</article>
<article>
<?php
newExerciseTheme("Funktioner");
exerciseGroup("functions/functions_", ".php", 1, 9, "Funktioner");
endExerciseTheme();
newExerciseTheme("Formulär");
exerciseGroup("forms/forms_", ".html", 1, 7, "Formulär");
exerciseSingle("forms/forms_8.php", "Formulär 8");
endExerciseTheme();
newExerciseTheme("Inkludera filer");
exerciseSingle("include/include_1.php", "Inkludera filer 1");
exerciseSingle("include/include_2_page1.php", "Inkludera filer 2");
endExerciseTheme();
newExerciseTheme("Formulär - Quiz");
exerciseGroup("forms_quiz/forms_quiz_", ".php", 1, 6, "Quiz");
endExerciseTheme();
newExerciseTheme("Textsträngar");
exerciseGroup("strings/strings_", ".php", 1, 6, "Textsträngar");
endExerciseTheme();
newExerciseTheme("Cookies/Sessions");
exerciseSingle("cookies_and_sessions/cookies_sessions_1.php", "Cookies 1");
exerciseGroup("cookies_and_sessions/cookies_sessions_", ".php", 2, 5, "Session");
endExerciseTheme();
newExerciseTheme("Klasser");
exerciseGroup("classes/classes_", ".php", 1, 5, "Klasser");
endExerciseTheme();
newExerciseTheme("Klasser - tärning");
exerciseGroup("classes_dice/dice_", ".php", 1, 7, "Tärning");
endExerciseTheme();
newExerciseTheme("Repetition");
exerciseSingle("repetition/repetition.php", "Repetition, allmänt");
exerciseSingle("repetition/repetition_login.php", "Logga in-system");
exerciseSingle("repetition/special_repetition.php", "Specialrepetition, efter prov");
endExerciseTheme();
newExerciseTheme("MySQL");
exerciseGroup("mysql/exercise_", "", 1, 2, "Övning");
exerciseSingle("mysql/exercise_3/exercise_3_a", "Övning 3a");
exerciseSingle("mysql/exercise_3/exercise_3_b", "Övning 3b");
exerciseSingle("mysql/exercise_3/exercise_3_c", "Övning 3c");
exerciseSingle("mysql/exercise_3/exercise_3_d", "Övning 3d");
exerciseSingle("mysql/exercise_3/exercise_3_e", "Övning 3e");
endExerciseTheme();
newExerciseTheme("AJAX (Asynchronous Javascript and XML)");
exerciseSingle("ajax/search_suggestions/user_search.html", "Real-time sökförslag med AJAX");
endExerciseTheme();
?>
</article>
</main>
<script type="text/javascript" src="js/exercises.js"></script>
<?php
include("incl/footer.php");
?>