move entire form to createcourse.php
This commit is contained in:
parent
96276f9f37
commit
e8947fc056
@ -51,12 +51,6 @@ XXXXXXXXXXXXXXX
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
include "include/extraKurs.php";
|
include "include/extraKurs.php";
|
||||||
?>
|
|
||||||
|
|
||||||
<form class="courses kurser">
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include "include/createCourse.php";
|
include "include/createCourse.php";
|
||||||
|
|
||||||
createCourse("Engelska 5","eng5",100 , "disabled");
|
createCourse("Engelska 5","eng5",100 , "disabled");
|
||||||
@ -84,17 +78,7 @@ 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 , "");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</content>
|
</content>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
echo "<form class='courses kurser'>";
|
||||||
function createCourse($dname, $nameId, $points, $disabled) {
|
function createCourse($dname, $nameId, $points, $disabled) {
|
||||||
$disClass = "delete_row";
|
$disClass = "delete_row";
|
||||||
if($disabled==='disabled') {
|
if($disabled==='disabled') {
|
||||||
@ -25,3 +26,13 @@ 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>
|
||||||
|
";
|
||||||
|
Reference in New Issue
Block a user