diff --git a/Header.php b/Header.php index a302d24..63ad2ce 100644 --- a/Header.php +++ b/Header.php @@ -22,6 +22,12 @@ if (mysqli_connect_errno()) { + + diff --git a/Submissions.php b/Submissions.php index 44b9ad7..3df7614 100644 --- a/Submissions.php +++ b/Submissions.php @@ -183,7 +183,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Pending' order by Sub } echo "
- $title
by: $submitted_by + $title
by: $submitted_by
Submitted : $posted
Attachments : $full_link
"; } @@ -262,8 +262,13 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Marked' Order by lab if ($att4 != "") { $full_link = $full_link . "| $att4"; } - echo "
- $title
by : $submitted_by        [ Marked $Marks ]   Visibility : $Visibility + // you will notice why i used span here to wrap the $submitted_by variable + // because if we wrap with span , the css class text-selectable can be used only by the submittedBy variable + // if you want to use text-selectable class on whole div, just call the css class + + + echo "
+ $title
by : $submitted_by        [ Marked $Marks ]   Visibility : $Visibility
Lecturer/TA notes : $notes
Submitted : $posted
Attachments : $full_link
"; } @@ -341,8 +346,8 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'"); if ($att4 != "") { $full_link = $full_link . "| $att4"; } - echo "
- $title
by : $submitted_by        [ Marked $Marks ]
Remarking Reason : $remarking_reason + echo "
+ $title
by : $submitted_by        [ Marked $Marks ]
Remarking Reason : $remarking_reason
Submitted : $posted " . "" . "       Ignore Request " diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..5182a91 --- /dev/null +++ b/css/main.css @@ -0,0 +1,11 @@ + +/* this css class is used to enable copying in text with the mouse. */ +.text-selectable { + + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + cursor:auto + + } \ No newline at end of file