Use Bootstrap's card class to make things look better.

Bug430-Eden2
Lan Hui 2023-08-11 22:12:59 +08:00
parent 965540c522
commit 632ee82e7b
1 changed files with 12 additions and 10 deletions

View File

@ -311,16 +311,18 @@ include 'Header.php';
$header="Courses > ".$name."($code) > Assignments > ".$title;
echo " <div class='break-word btn btn-default' style='word-wrap: break-word;border-color:grey;'>
$title ($marks Marks, $as_type) <br> $ins
<br> <span style='font-size:8pt'>Posted: $posted &nbsp; Deadline: $deadline"
. "<br>"
. "<span class='btn-default'> &nbsp;&nbsp; $count_subs Submissions ( $count_marked Marked ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a>&nbsp;&nbsp; |&nbsp;&nbsp;<a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a> &nbsp;&nbsp; |&nbsp;&nbsp; <a href='#' onclick='extendDeadline($id)'> Extend Deadline </a> </span> <hr> Attachments : $full_link </span>"
. "&nbsp;&nbsp;</div>
";
echo " <div class='card mt-md-2'>
<div class='card-body'>
<h5 class='card-title'>$title ($marks Marks, $as_type)</h5>
<h6 class='card-subtitle'>$ins</h6>
<p class='card-text text-muted'><small>Posted: $posted &nbsp;&nbsp; Deadline: $deadline</small></p>
<p class='card-text'>$count_subs Submissions ( $count_marked Marked )</p>
<a class='card-link' href='Courses.php?course=".$url."&act=edit&cid=".$id."'> Edit </a>
<a class='card-link' href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a>
<a class='card-link' href='#' onclick='extendDeadline($id)'> Extend Deadline </a>
<p class='card-text'> Attachments: $full_link</p>
</div>
</div>";
}}
echo "</div>";