Better information display for the student's assignment status.
							parent
							
								
									c490974dd7
								
							
						
					
					
						commit
						6a4f44df73
					
				
							
								
								
									
										15
									
								
								Course.php
								
								
								
								
							
							
						
						
									
										15
									
								
								Course.php
								
								
								
								
							|  | @ -153,7 +153,7 @@ if( $_SESSION['user_type'] == "Student") | |||
| 			    $att3=$row['Attachment_link_3']; | ||||
| 			    $att4=$row['Attachment_link_4']; | ||||
| 			    $labid=$row['Lab_Report_ID']; | ||||
| 
 | ||||
| 			    $days_remaining = date_diff(date_create($deadline), date_create())->format('%a days, %h hours, %i minutes'); | ||||
| 			    $full_link = "<a href='~\..\Lab_Report_Assignments\\$att1'>$att1</a>";       | ||||
|                              | ||||
| 			    if($att2!=""){ | ||||
|  | @ -166,10 +166,11 @@ if( $_SESSION['user_type'] == "Student") | |||
| 			    if($att4!=""){ | ||||
| 				$full_link= $full_link."| <a href='~\..\Lab_Report_Assignments\\$att4'>$att4</a>";     | ||||
| 			    } | ||||
| 			    echo "   <k href='#'>   <div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'>
 | ||||
| 			    echo "<div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border-left:4px solid #e6f2ff;'>
 | ||||
|                                       <div class='alert alert-warning'>Time left: $days_remaining</div> | ||||
|   $title ($Marks Marks, $type) <br> <span style='font-size:8pt'> $ins</span> | ||||
|    <br> <span style='font-size:8pt'>Posted:$posted   Deadline:$deadline          <a href='~\..\SubmitLab.php?id=$labid&url=$url' class='btn-sm btn-info' style='margin-left:50px;'>Submit</a><br> Attachments : $full_link </span> | ||||
| </div></k>";
 | ||||
|    <br> <span style='font-size:10pt'>Posted:$posted   Deadline:$deadline          <a href='~\..\SubmitLab.php?id=$labid&url=$url' class='btn-sm btn-info' style='margin-left:50px;'>Submit</a><br> Attachments : $full_link </span> | ||||
| </div>";
 | ||||
| 			     | ||||
| 		    }} | ||||
| 		    echo ""; | ||||
|  | @ -198,7 +199,7 @@ Lab_Report_ID not in (select Lab_Report_ID from lab_report_submissions where (St | |||
| 
 | ||||
| 		    if(mysqli_num_rows($result)==0) | ||||
| 		    { | ||||
| 			echo "You missed no lab reports in this course."; | ||||
| 			echo '<div class="alert alert-info">You missed no lab reports.</div>'; | ||||
| 			 | ||||
| 		    } else { | ||||
| 			while($row = mysqli_fetch_assoc($result)) { | ||||
|  | @ -257,7 +258,7 @@ Lab_Report_ID not in (select Lab_Report_ID from lab_report_submissions where (St | |||
| 
 | ||||
| 		    if(mysqli_num_rows($resultx)==0) | ||||
| 		    { | ||||
| 			echo "You have no lab report submissions in this course."; | ||||
| 			echo '<div class="alert alert-info">You have no unmarked submissions. Check the Marked tab for your marked submissions (if any).</div>'; | ||||
| 			 | ||||
| 		    } else { | ||||
| 			while($row = mysqli_fetch_assoc($resultx)) { | ||||
|  | @ -381,7 +382,7 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen | |||
| 
 | ||||
| 		    if(mysqli_num_rows($resultx)==0) | ||||
| 		    { | ||||
| 			echo "You have no marked submissions in this course"; | ||||
| 			echo '<div class="alert alert-info">You have no marked submissions.</div>'; | ||||
| 			 | ||||
| 		    } else { while($row = mysqli_fetch_assoc($resultx)) { | ||||
| 			$title=$row['Lab_Title']; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue