move code to new file
This commit is contained in:
parent
e8947fc056
commit
0586b46f00
@ -78,6 +78,8 @@ createCourse("Programfördjupning 1","prof1",100 , "");
|
|||||||
createCourse("Programfördjupning 2","prof2",100 , "");
|
createCourse("Programfördjupning 2","prof2",100 , "");
|
||||||
createCourse("Individuellt val 1","indv1",100 , "");
|
createCourse("Individuellt val 1","indv1",100 , "");
|
||||||
createCourse("Individuellt val 2","indv2",100 , "");
|
createCourse("Individuellt val 2","indv2",100 , "");
|
||||||
|
|
||||||
|
include "createCourse_end.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</content>
|
</content>
|
||||||
|
@ -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>
|
<a $disabled class='$disClass mdl-button mdl-js-button mdl-button--accent mdl-js-ripple-effect' style='margin:16px 5px'>Ta Bort</a>
|
||||||
</div>";
|
</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>
|
|
||||||
";
|
|
||||||
|
10
html/include/createCourse_end.php
Normal file
10
html/include/createCourse_end.php
Normal 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>
|
||||||
|
";
|
Reference in New Issue
Block a user