From 0586b46f00aeabbc641795ffd2d68337c42fccc1 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Mon, 23 Sep 2019 23:23:43 +0200 Subject: [PATCH] move code to new file --- html/Samhäll.php | 2 ++ html/include/createCourse.php | 10 ---------- html/include/createCourse_end.php | 10 ++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 html/include/createCourse_end.php diff --git a/html/Samhäll.php b/html/Samhäll.php index 3351435..fd0b3d7 100644 --- a/html/Samhäll.php +++ b/html/Samhäll.php @@ -78,6 +78,8 @@ createCourse("Programfördjupning 1","prof1",100 , ""); createCourse("Programfördjupning 2","prof2",100 , ""); createCourse("Individuellt val 1","indv1",100 , ""); createCourse("Individuellt val 2","indv2",100 , ""); + +include "createCourse_end.php"; ?> diff --git a/html/include/createCourse.php b/html/include/createCourse.php index 0c449d7..60167d4 100644 --- a/html/include/createCourse.php +++ b/html/include/createCourse.php @@ -26,13 +26,3 @@ function createCourse($dname, $nameId, $points, $disabled) { Ta Bort "; } - -echo " - -Lägg till Kurs -
-
Meritpoäng:
- -

- -"; diff --git a/html/include/createCourse_end.php b/html/include/createCourse_end.php new file mode 100644 index 0000000..3d27601 --- /dev/null +++ b/html/include/createCourse_end.php @@ -0,0 +1,10 @@ + +Lägg till Kurs +
+
Meritpoäng:
+ +

+ +";