From c4f4dec22ee74fd91e47d5b20e43ba35be1f15d3 Mon Sep 17 00:00:00 2001 From: hajigeek Date: Wed, 25 May 2022 09:07:59 +0800 Subject: [PATCH 1/6] BUG22 FIXED --- Header.php | 6 ++++++ Submissions.php | 11 ++++++++--- css/main.css | 10 ++++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 css/main.css diff --git a/Header.php b/Header.php index a302d24..258dd84 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..a5961e4 100644 --- a/Submissions.php +++ b/Submissions.php @@ -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 notic why i used span here to wrap the submitted by name + // because if we wrap with span , the css class text-selectable can be used only the submittedBy name + // 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,7 +346,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'"); if ($att4 != "") { $full_link = $full_link . "| $att4"; } - echo "
+ echo "
$title
by : $submitted_by        [ Marked $Marks ]
Remarking Reason : $remarking_reason
Submitted : $posted " . "" diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..9d9a636 --- /dev/null +++ b/css/main.css @@ -0,0 +1,10 @@ + +/* this css class is used to enable copying in texts with the mouse. */ +.text-selectable { + + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + + } \ No newline at end of file -- 2.17.1 From 6860d7618f455c88cf7bd45994b095a08055c6ea Mon Sep 17 00:00:00 2001 From: hajigeek Date: Sat, 28 May 2022 11:01:19 +0800 Subject: [PATCH 2/6] bug23-fixed --- Submissions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Submissions.php b/Submissions.php index a5961e4..cabcaf0 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
"; } @@ -347,7 +347,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'"); $full_link = $full_link . "| $att4"; } echo "
- $title
by : $submitted_by        [ Marked $Marks ]
Remarking Reason : $remarking_reason + $title
by : $submitted_by        [ Marked $Marks ]
Remarking Reason : $remarking_reason
Submitted : $posted " . "" . "       Ignore Request " -- 2.17.1 From a4dce34b92e4dbb8858725f00d4acd7b40d168eb Mon Sep 17 00:00:00 2001 From: hajigeek Date: Fri, 3 Jun 2022 09:09:51 +0800 Subject: [PATCH 3/6] English typo error is corrected --- Header.php | 2 +- Submissions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Header.php b/Header.php index 258dd84..de8abc8 100644 --- a/Header.php +++ b/Header.php @@ -24,7 +24,7 @@ if (mysqli_connect_errno()) { diff --git a/Submissions.php b/Submissions.php index cabcaf0..3df7614 100644 --- a/Submissions.php +++ b/Submissions.php @@ -262,8 +262,8 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Marked' Order by lab if ($att4 != "") { $full_link = $full_link . "| $att4"; } - // you will notic why i used span here to wrap the submitted by name - // because if we wrap with span , the css class text-selectable can be used only the submittedBy name + // 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 -- 2.17.1 From ff1384f34184f956147799d985d068d22ea661cc Mon Sep 17 00:00:00 2001 From: hajigeek Date: Fri, 3 Jun 2022 09:19:10 +0800 Subject: [PATCH 4/6] English typo is corrected --- css/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/main.css b/css/main.css index 9d9a636..5cb46e3 100644 --- a/css/main.css +++ b/css/main.css @@ -1,5 +1,5 @@ -/* this css class is used to enable copying in texts with the mouse. */ +/* this css class is used to enable copying in text with the mouse. */ .text-selectable { -webkit-user-select: text; -- 2.17.1 From 60471610a2ee6f7d6ab8274c10fe26b406124943 Mon Sep 17 00:00:00 2001 From: hajigeek Date: Mon, 6 Jun 2022 17:40:31 +0800 Subject: [PATCH 5/6] English typo is corrected --- Header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Header.php b/Header.php index de8abc8..63ad2ce 100644 --- a/Header.php +++ b/Header.php @@ -24,7 +24,7 @@ if (mysqli_connect_errno()) { -- 2.17.1 From 035b92a053376860806f7d24493dd3934f7e18b7 Mon Sep 17 00:00:00 2001 From: hajigeek Date: Thu, 9 Jun 2022 19:46:47 +0800 Subject: [PATCH 6/6] cursor:auto --- css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/main.css b/css/main.css index 5cb46e3..5182a91 100644 --- a/css/main.css +++ b/css/main.css @@ -6,5 +6,6 @@ -moz-user-select: text; -ms-user-select: text; user-select: text; + cursor:auto } \ No newline at end of file -- 2.17.1