move code to new file

This commit is contained in:
Felix Schulze 2019-09-23 23:23:43 +02:00
parent e8947fc056
commit 0586b46f00
3 changed files with 12 additions and 10 deletions

View File

@ -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";
?>
</content>

View File

@ -26,13 +26,3 @@ function createCourse($dname, $nameId, $points, $disabled) {
<a $disabled class='$disClass mdl-button mdl-js-button mdl-button--accent mdl-js-ripple-effect' style='margin:16px 5px'>Ta Bort</a>
</div>";
}
echo "
</form>
<a type='button' class='btn btn-primary btn-mini add_row' style='color:#fff;display:block; width:85%; margin:10px auto 0;' onClick='setTimeout(updateGrade(), 5000);'>Lägg till Kurs</a>
<form onSubmit='return false;' style='display:table; margin:auto;'>
<h5>Meritpoäng:</h5>
<input class='meritpoint' style='width:29px; position:static;' value='0' type='number' step='0.5' min='0' max='2.5'>
</form><br>
<span class='score_span' style='margin-left:0px;'></span>
";

View File

@ -0,0 +1,10 @@
<?php
echo "
</form>
<a type='button' class='btn btn-primary btn-mini add_row' style='color:#fff;display:block; width:85%; margin:10px auto 0;' onClick='setTimeout(updateGrade(), 5000);'>Lägg till Kurs</a>
<form onSubmit='return false;' style='display:table; margin:auto;'>
<h5>Meritpoäng:</h5>
<input class='meritpoint' style='width:29px; position:static;' value='0' type='number' step='0.5' min='0' max='2.5'>
</form><br>
<span class='score_span' style='margin-left:0px;'></span>
";