From 21de08f1ff83a262004101b2f4868a42647e865a Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:06:51 +0000 Subject: [PATCH 01/14] Add files via upload Filip --- app.py | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 app.py diff --git a/app.py b/app.py new file mode 100644 index 0000000..a93264f --- /dev/null +++ b/app.py @@ -0,0 +1,92 @@ +from flask import Flask +from markupsafe import escape +from flask import url_for +from flask import render_template +from flask_navigation import Navigation +#from flask import request +#from flask import redirect +#from flask import abort +#from flask import make_response +#import sqlite3 + +app = Flask(__name__) + +#Databse Implementation +#@app.route("/create") +#def create(): + #con = sqlite3.connect('mydatabase.db') + #con.execute('CREATE TABLE IF NOT EXISTS Students (name TEXT, id INT PRIMARY KEY)') + #con.execute ('CREATE TABLE IF NOT EXISTS COURSES(Coursename TEXT, COURSEID VARCHAR)') + #con.execute ('CREATE TABLE IF NOT EXISTS TEACHERCOURSE(TeacherID INT PRIMARY KEY, COURSEID INT FORIEGN KEY)') + #con.execute ('CREATE TABLE IF NOT EXIST TEACHER(First name CHAR, Surname CHAR, Contact INT)') + #con.execute ('CREATE TABLE IF NOT EXIST LOGIN'(id INT FORIEGN KEY, Password VARCHAR )') + #con.execute ('CREATE TABLE IF NOT EXIST EXAMS(Exams code INT, Exam name CHAR') + #con.execute ('CREATE TABLE IF NOT EXIST ADMINISTRATION( Administration Contact INT, Administration location VARCHAR') + #con.execute ('CREATE TABLE IF NOT EXIST CLASS SESSION( Class code INT') + #con.close() + #return "

Table created successfully

" + +#@app.route("/add") +#def add_strudent(): + #con = sqlite3.connect('mydatabase.db') + #cur = con.cursor() + #cname='Faye' + #cid=10000 + #cur.execute("INSERT INTO students (name,id) VALUES (?,?)",(cname,cid) ) + #con.commit() + #con.close() + #return "

added students

" + +#@app.route("/") +#def top(): + #con = sqlite3.connect("mydatabase.db") + #con.row_factory = sqlite3.Row + #cur = con.cursor() + #cur.execute("SELECT * from students") + #rows = cur.fetchall(); + #return render_template("students.html",rows = rows) + + +@app.route('/home', methods=['GET']) +def dropdown(): + subjects = ['Home', 'Chemistry', 'ICT', 'Maths'] + return render_template('home.html', subjects=subjects) + + + +@app.route('/billing') +def creditFunc(): + return render_template('billing.html') + +@app.route('/verify') +def verifyFunc(): + return render_template('verify.html') + +@app.route('/newbilling') +def successfulBillingFunc(): + return render_template('newbilling.html') + +@app.route('/login') +def loginFunc(): + return render_template('login.html') + + +@app.route('/chemistry') +def chemistryFunc(): + return render_template('chemistry.html') + +@app.route('/ict') +def ictFunc(): + return render_template('ict.html') + +@app.route('/maths') +def mathsFunc(): + return render_template('maths.html') + +@app.route('/form') +def formFunc(): + return render_template('form.html') + +@app.route('/teacher') +def homeFunc(): + return render_template('teacher.html') From 1f1cd13df93992243a1c2e20ac8c85c6dc76e5f6 Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:10:32 +0000 Subject: [PATCH 02/14] Add files via upload Filip --- billing.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 billing.html diff --git a/billing.html b/billing.html new file mode 100644 index 0000000..8029075 --- /dev/null +++ b/billing.html @@ -0,0 +1,23 @@ + + + + Billing Details + + +

+ +

Billing

+ +

Click here to save changes

+ +

Edit Credit Card Details:

+
+
+
+
+ +

+ To change your payment details, Enter the appropriate number in the text box.

+ {# a comment #} + + Date: Thu, 24 Nov 2022 12:12:54 +0000 Subject: [PATCH 03/14] Add files via upload Filip --- chemistry.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 chemistry.html diff --git a/chemistry.html b/chemistry.html new file mode 100644 index 0000000..5e9284f --- /dev/null +++ b/chemistry.html @@ -0,0 +1,18 @@ + + + + + +

Chemistry

+

Go back to Home Page

+

Why is chemistry important?

+

+ Chemistry is the scientific study of the properties and behavior of matter. It is a natural science that covers the elements that make up matter to the compounds composed of atoms, molecules and ions: their composition, structure, properties, behavior and the changes they undergo during a reaction with other substances. + The periodic table is organized like a big grid. Each element is placed in a specific location because of its atomic structure. As with any grid, the periodic table has rows (left to right) and columns (up and down). Each row and column has specific characteristics. For example, magnesium (Mg) and calcium (Mg) are found in column two and share certain similarities while potassium (K) and calcium (Ca) from row four share different characteristics. Magnesium and sodium (Na) also share qualities because the are in the same period (similar electron configurations). + {# a comment #} +

+ +
+ + Date: Thu, 24 Nov 2022 12:15:48 +0000 Subject: [PATCH 04/14] Add files via upload Filip --- home.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 home.html diff --git a/home.html b/home.html new file mode 100644 index 0000000..21a08bd --- /dev/null +++ b/home.html @@ -0,0 +1,26 @@ + + + + + + +

Home

+

Navigation

+ +

Chemistry Page

+

ICT Page

+

Maths Page

+

Change Billing Details

+ + + + +

+ BlobMaths is a digital learning platform for early learners. It allows students to study a wide range of STEM subjects such as: Maths, Chemistry and IT and more. BlobMaths provide full support to both learners and educators, which mainly involves providing adequate infrastructure that enables e-learning to be methodically implemented using dedicated digital systems specifically designed to satisfy student and teacher needs. + + {# a comment #} +

+ + + Date: Thu, 24 Nov 2022 12:19:20 +0000 Subject: [PATCH 05/14] Add files via upload Filip --- ict.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ict.html diff --git a/ict.html b/ict.html new file mode 100644 index 0000000..fe02686 --- /dev/null +++ b/ict.html @@ -0,0 +1,18 @@ + + + + + +

ICT

+

Go back to Home Page

+

Using a Computer?

+

+ Using computers and the internet to store, access and organise information carries some risk. You need to take responsibility to make sure files are not lost, corrupted or viewed by the wrong person. + To ensure your work is easy to find, use relevant file and folder names and a sensible folder structure. It’s important to use an approach that will be understood by everyone, especially if you’re working on a group project, so other members of the group will be able to find what they’re looking for.Files have two parts to their names – a name and an extension. The purpose of a file extension is to tell the computer what type of file it is. The file extension is typically three or four letters long and is always at the end of a file name. There are hundreds of different file extensions. Passwords can be set to expire, at which point you will be forced to choose a new one. This is a security feature. Always choose a password that’s difficult for someone else to guess. + {# a comment #} +

+ +
+ + Date: Thu, 24 Nov 2022 12:21:34 +0000 Subject: [PATCH 06/14] Add files via upload Filip --- maths.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 maths.html diff --git a/maths.html b/maths.html new file mode 100644 index 0000000..93f196f --- /dev/null +++ b/maths.html @@ -0,0 +1,18 @@ + + + + + +

Maths

+

Go back to Home Page

+

Multiplying two digit numbers

+

+ Can you multiply by two-digit numbers like 14 or 37?. It looks a bit difficult, doesn't it? It can be easier if you partition the number into two parts. Instead of multiplying by 29 you can multiply by 20 and then multiply by 9 separately and then add the answers together. Instead of multiplying by 34 you can multiply by 30 and then multiply by 4 separately and then add the answers together. + Another strategy is to multiply by a near number that is easier to work with and then add or take away the difference. Was that easier? Why not try these strategies again next time you have to multiply by two-digit numbers. + {# a comment #} +

+ +
+ + Date: Thu, 24 Nov 2022 12:23:20 +0000 Subject: [PATCH 07/14] Add files via upload Filip --- newbilling.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 newbilling.html diff --git a/newbilling.html b/newbilling.html new file mode 100644 index 0000000..4fdde7d --- /dev/null +++ b/newbilling.html @@ -0,0 +1,14 @@ + + + + + +

Thank You

+

Home Page

+ +
+

+

+ + Date: Thu, 24 Nov 2022 12:26:57 +0000 Subject: [PATCH 08/14] Add files via upload Filip --- verify.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 verify.html diff --git a/verify.html b/verify.html new file mode 100644 index 0000000..9f45a8b --- /dev/null +++ b/verify.html @@ -0,0 +1,23 @@ + + + + + +

Verify that you are human

+ +
+

Verification

+ +

Please enter the text shown above:

+
+
+
+
+ +

Click here to submit

+ +

+

+ + Date: Thu, 24 Nov 2022 12:28:41 +0000 Subject: [PATCH 09/14] Add files via upload Filip --- chemistry.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 chemistry.css diff --git a/chemistry.css b/chemistry.css new file mode 100644 index 0000000..2a64396 --- /dev/null +++ b/chemistry.css @@ -0,0 +1,16 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} +} \ No newline at end of file From 64488137aaf4048130e9bc30e15025eaaa31ef12 Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:30:14 +0000 Subject: [PATCH 10/14] Add files via upload Filip --- home.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 home.css diff --git a/home.css b/home.css new file mode 100644 index 0000000..5b3d9f0 --- /dev/null +++ b/home.css @@ -0,0 +1,15 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} \ No newline at end of file From 463836286cf6ec6d07fd588b8f6c498705ed3add Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:31:21 +0000 Subject: [PATCH 11/14] Add files via upload Filip --- ict.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ict.css diff --git a/ict.css b/ict.css new file mode 100644 index 0000000..5b3d9f0 --- /dev/null +++ b/ict.css @@ -0,0 +1,15 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} \ No newline at end of file From 8ea307fb54406f4fe4c3252ee03a00efffa09c63 Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:32:57 +0000 Subject: [PATCH 12/14] Add files via upload Filip --- maths.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 maths.css diff --git a/maths.css b/maths.css new file mode 100644 index 0000000..5b3d9f0 --- /dev/null +++ b/maths.css @@ -0,0 +1,15 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} \ No newline at end of file From 94db7663f1d2e0dc4ae1ff0478be6419eee23f49 Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 12:34:27 +0000 Subject: [PATCH 13/14] Add files via upload Filip --- newbilling.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 newbilling.css diff --git a/newbilling.css b/newbilling.css new file mode 100644 index 0000000..5b3d9f0 --- /dev/null +++ b/newbilling.css @@ -0,0 +1,15 @@ +body { + background-color:rgb(127, 229, 255); + text-align: center; +} +H2 { + text-decoration-line: underline; +} +P1 { + font-size: large; + font-family: cursive; +} +P2 { + font-size: large; + font-family: cursive; +} \ No newline at end of file From 65d76b997a5c1877d2721efc992855bab36eb90b Mon Sep 17 00:00:00 2001 From: "Sahil Khalifa (khalifas2)" Date: Thu, 24 Nov 2022 13:26:41 +0000 Subject: [PATCH 14/14] Add files via upload Filip --- loginnew.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 loginnew.html diff --git a/loginnew.html b/loginnew.html new file mode 100644 index 0000000..13d5c2f --- /dev/null +++ b/loginnew.html @@ -0,0 +1,19 @@ + + + + Login + + +

BLOBMATHS LOGIN PAGE

+

After entering your details, click here to log in

+ +

Please enter your Student ID and Password:

+
+
+
+
+

+ +
+ + \ No newline at end of file