Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webisite
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stephanie.smith
webisite
Commits
543bb4a2
Commit
543bb4a2
authored
May 19, 2022
by
stephanie.smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final
parent
87156513
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
212 additions
and
46 deletions
+212
-46
.DS_Store
.DS_Store
+0
-0
booked.html
booked.html
+25
-0
login.html
login.html
+17
-24
login.php
login.php
+26
-0
main.css
main.css
+65
-2
readdata.php
readdata.php
+18
-20
signup.html
signup.html
+42
-0
tournaments.html
tournaments.html
+19
-0
No files found.
.DS_Store
View file @
543bb4a2
No preview for this file type
booked.html
0 → 100644
View file @
543bb4a2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
gallery
</title>
<link
rel=
"stylesheet"
href=
"main.css"
>
</head>
<body>
<div>
<header
class=
"titlemain"
><a
href =
"main.html"
target=
"_blank"
>
Overwatch League
</a></header>
</div>
<div>
<ul><li><a
href=
"login.html"
>
login
</a></li>
<li><a
href=
"tournaments.html"
>
Tournaments
</a></li>
<li><a
href=
"gallery.html"
>
Gallery
</a></li>
<li><a
href=
"teams.html"
>
Teams
</a></li>
</ul>
</div>
<div>
<h1
class=
"book"
>
Your booked for your slot!
</h1>
</body>
</html>
\ No newline at end of file
login.html
View file @
543bb4a2
...
...
@@ -18,31 +18,24 @@
<li><a
href=
"teams.html"
>
Teams
</a></li>
</ul>
</div>
<div
class=
"container vh-100"
>
<div
class=
"row justify-content-center h-100"
>
<div
class=
"card w-25 my-auto shadow"
>
<div
class=
"card-header text-center bg-primary text-white"
>
<h2>
Login
</h2>
</div>
<div
class=
"card-body"
>
<form
action =
"readdata.php"
method=
"post"
>
<div
class=
"form-group"
>
<label
for=
"Email"
>
Email
</label>
<input
type=
"Email"
id=
"Email"
class=
"form-control"
name=
"Email"
required
>
<label
for=
"Passowrds"
>
Password
</label>
<input
type=
"Password"
id=
"Passwords"
class=
"form-control"
name=
"Passwords"
required
>
</div>
<input
type=
"submit"
class=
"btn btn-primary w-100"
value=
"Login"
name=
"submit"
>
</form>
</div>
</div>
<form
action=
"login.php"
method=
"post"
>
<div
class=
"containerlogin"
>
<h1>
Login
</h1>
<p>
Please fill in this form to sign in.
</p>
<hr>
<label
for=
"email"
><b>
Email
</b></label>
<input
type=
"text"
placeholder=
"Enter Username"
name=
"email"
required
>
<br>
<label
for=
"password"
><b>
Password
</b></label>
<input
type=
"password"
placeholder=
"Enter Password"
name=
"password"
required
>
<br>
<button
class=
"button"
type=
"submit"
>
Login
</button>
</div>
</div>
<form>
<input
type=
"button"
value=
"Back to main page"
onclick =
"window.open('main.html');"
/>
</form>
</form>
<a
href=
"signup.html"
><button
class=
"button"
>
Make new account
</button></a>
</body>
</html>
\ No newline at end of file
login.php
0 → 100644
View file @
543bb4a2
<?php
$servername
=
"localhost:3306"
;
$username
=
"stephanie.smith"
;
$password
=
"0lnKdVkBKy"
;
$dbname
=
"stephaniesmith_database"
;
// Create connection
$conn
=
new
mysqli
(
$localhost
:
3306
,
$stephanie
.
smith
,
$
0
lnKdVkBKy
,
$stephaniesmith_database
);
// Check connection
if
(
$conn
->
connect_error
)
{
die
(
"Connection failed: "
.
$conn
->
connect_error
);
}
$sql
=
"SELECT email, password FROM Emails"
;
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
// output data of each row
while
(
$row
=
$result
->
fetch_assoc
())
{
echo
"id: "
.
$row
[
"id"
]
.
" - Name: "
.
$row
[
"email"
]
.
" "
.
$row
[
"passsword"
]
.
"<br>"
;
}
}
else
{
echo
"0 results"
;
}
$conn
->
close
();
?>
\ No newline at end of file
main.css
View file @
543bb4a2
...
...
@@ -97,5 +97,68 @@ img.teams{
height
:
60%
;
margin-left
:
auto
;
margin-right
:
auto
;
display
:
block
;
}
\ No newline at end of file
display
:
inline-block
;
}
/*login*/
div
.containerlogin
{
text-align
:
center
;
padding
:
50px
;
margin-left
:
auto
;
margin-right
:
auto
;
font-family
:
'Courier New'
,
Courier
,
monospace
;
color
:
#000
;
font-size
:
30px
;
}
/*buttons*/
.button
{
display
:
inline-block
;
padding
:
15px
25px
;
font-size
:
24px
;
cursor
:
pointer
;
text-align
:
center
;
text-decoration
:
none
;
outline
:
none
;
color
:
#fff
;
background-color
:
orangered
;
border
:
none
;
border-radius
:
15px
;
box-shadow
:
0
9px
#999
;
text-align
:
center
;
}
.button
:hover
{
background-color
:
orange
}
.button
:active
{
background-color
:
orangered
;
box-shadow
:
0
5px
#666
;
transform
:
translateY
(
4px
);
}
/*signup*/
div
.containersignup
{
text-align
:
center
;
padding
:
50px
;
margin-left
:
auto
;
margin-right
:
auto
;
font-family
:
'Courier New'
,
Courier
,
monospace
;
color
:
#000
;
font-size
:
30px
;
}
/*tournamenats*/
div
.tourn
{
text-align
:
center
;
padding
:
50px
;
margin-left
:
auto
;
margin-right
:
auto
;
font-family
:
'Courier New'
,
Courier
,
monospace
;
color
:
#000
;
font-size
:
30px
;
}
h1
.book
{
text-align
:
center
;
padding
:
50px
;
margin-left
:
auto
;
margin-right
:
auto
;
font-family
:
'Courier New'
,
Courier
,
monospace
;
color
:
#000
;
font-size
:
30px
;
}
readdata.php
View file @
543bb4a2
<html>
<head>
</head>
<body>
<?php
if
(
isset
(
$_POST
[
'Email'
],
$_POST
[
'Passwords'
])){
<?php
$servername
=
"localhost:3306"
;
$username
=
"stephanie.smith"
;
$password
=
"0lnKdVkBKy"
;
$dbname
=
"stephaniesmith_database"
;
$conn
=
mysqli_connect
(
'localhost:3306'
,
'stephanie.smith'
,
'0lnKdVkBKy'
,
'stephaniesmith_dataa1'
);
$email
=
$_POST
[
'Email'
];
$pass
=
$_POST
[
'Passwords'
];
$sql
=
"INSERT INTO dataa1 (Email,Passwords) VALUES ('
$Email
','
$Passwords
')"
;
// Create connection
$conn
=
new
mysqli
(
$localhost
:
3306
,
$stephanie
.
smith
,
$
0
lnKdVkBKy
,
$stephaniesmith_database
);
// Check connection
if
(
$conn
->
connect_error
)
{
die
(
"Connection failed: "
.
$conn
->
connect_error
);
}
$sql
=
"INSERT INTO Emails (Email, Passwords)
VALUES ('john@example.com', 'joebloggs')"
;
if
(
mysqli_connect_errno
())
{
echo
"Failed to connect to MySQL: "
.
mysqli_connect_error
();
}
if
(
mysqli_query
(
$conn
,
$sql
))
{
echo
"Record added"
;
}
mysqli_close
(
$conn
);
if
(
$conn
->
query
(
$sql
)
===
TRUE
)
{
echo
"New record created successfully"
;
}
else
{
echo
"Error: "
.
$sql
.
"<br>"
.
$conn
->
error
;
}
$conn
->
close
();
?>
</body>
</html>
signup.html
0 → 100644
View file @
543bb4a2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
login
</title>
<link
rel=
"stylesheet"
href=
"main.css"
>
</head>
<body>
<div>
<header
class=
"titlemain"
><a
href =
"main.html"
target=
"_blank"
>
Overwatch League
</a></header>
</div>
<div>
<ul><li><a
href=
"login.html"
>
login
</a></li>
<li><a
href=
"tournaments.html"
>
Tournaments
</a></li>
<li><a
href=
"gallery.html"
>
Gallery
</a></li>
<li><a
href=
"teams.html"
>
Teams
</a></li>
</ul>
</div>
<div
id=
"id01"
class=
"modal"
>
<form
class=
"modal-content"
action=
"readdata.php"
>
<div
class=
"containersignup"
>
<h1>
Sign Up
</h1>
<p>
Please fill in this form to create an account.
</p>
<hr>
<label
for=
"email"
><b>
Email
</b></label>
<input
type=
"text"
placeholder=
"Enter Email"
name=
"email"
required
>
<label
for=
"password"
><b>
Password
</b></label>
<input
type=
"password"
placeholder=
"Enter Password"
name=
"password"
required
>
<div
class=
"clearfix"
>
<button
type=
"submit"
class=
"button"
>
Sign Up
</button>
</div>
</div>
</form>
</div>
</body>
</html>
\ No newline at end of file
tournaments.html
View file @
543bb4a2
...
...
@@ -6,6 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
tournaments
</title>
<link
rel=
"stylesheet"
href=
"main.css"
>
</head>
<body>
<div>
...
...
@@ -18,5 +19,23 @@
<li><a
href=
"teams.html"
>
Teams
</a></li>
</ul>
</div>
<div
class=
"tourn"
>
<h1>
Tournament dates
</h1>
<p>
Select the date you would like to attend a tournament.
</p>
<form
>
<label>
Choose a date:
</label>
<select
name=
"cars"
id=
"cars"
>
<option
value=
"29th August 2022"
>
29th August 2022
</option>
<option
value=
"20th November 2022"
>
20th November 2022
</option>
<option
value=
"1st December 2022"
>
1st December 2022
</option>
</select>
<br><br>
</form>
<a
href=
"booked.html"
><button
class=
"button"
>
Submit
</button></a>
<p>
Click the submit button to confirm your date selection
</p>
</div>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment