Skip to content
Snippets Groups Projects
Commit 35f736d2 authored by Rhys Nute's avatar Rhys Nute
Browse files

Towns database added

parent 23893cc1
No related branches found
No related tags found
1 merge request!39Draft: Towns
......@@ -3,8 +3,39 @@
<head>
<meta charset="UTF-8">
<title>Towns</title>
<link rel="stylesheet" href="static/css/templatingstyle.css">
</head>
<body>
<div id="container1">
<h2>Enter your Local authority</h2>
<form action="local-auth-data.php" method="post" id="data">
<p>
<label for="townName">Enter your town</label>
<input type="text" name="town_Name" id="townName">
</p>
<p>
<label for="address1">Please enter first line of your address</label>
<input type="text" name="address_1" id="address1">
</p>
<p>
<label for="address2">Please enter second line of your address (optional)</label>
<input type="text" name="address_2" id="address2">
</p>
<p>
<label for="city">Please enter the City/Town</label>
<input type="text" name="city" id="city">
</p>
<p>
<label for="county">Please enter you county (optional)</label>
<input type="text" name="county" id="county">
</p>
<p>
<label for="postcode">Please enter your postcode</label>
<input type="text" name="post_code" id="postcode">
</p>
<input type="submit" value="Submit Data">
</form>
</div>
</body>
</html>
\ No newline at end of file
......@@ -11,6 +11,7 @@
<p>Giving local businesses a voice in the community</p>
<h1>Empowering Community Spirit</h1>
<h1>Creating the towns Identity</h1>
<button id="submit">Towns log in here</button><a href="towns-data.html"></a>
</body>
<footer th:insert="~{/towns/Templating.html::footer}"></footer>
</html>
\ No newline at end of file
......@@ -54,4 +54,9 @@ insert into badgeprogress (userID, badgeID, progress) value ('2', '2', '70');
delete from stickerprogress;
insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '1', true);
insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '3', true);
insert into stickerprogress (userID, stickerID, hasSticker) value ('2', '2', true);
\ No newline at end of file
insert into stickerprogress (userID, stickerID, hasSticker) value ('2', '2', true);
delete from townswithtrails
insert into townswithtrails (townName, address1, address2, city, county, postcode) value ('Caerphilly Town', 'Castle Street', '', 'Caerphilly', '', 'CF83 1NU');
insert into townswithtrails (townName, address1, address2, city, county, postcode) value ('Penarth Town', '1 Windsor Arcade', '', 'Penarth', '', 'CF64 1JA');
insert into townswithtrails (townName, address1, address2, city, county, postcode) value ('Risca Town', '47 Tredegar Street', 'Pontymister, Risca West', 'Newport', 'Caerphilly County Borough', 'NP11 6BW');
\ No newline at end of file
......@@ -57,4 +57,16 @@ create table if not exists stickerProgress
userID bigint,
stickerID bigint,
hasSticker boolean /*Has sticker or not*/
) engine=InnoDB;
drop table if exists townsWithTrails;
create table if not exists townsWithTrails
(
townsWithTrailsID bigint auto_increment primary key,
townName varchar(128),
address1 varchar(128),
address2 varchar(128),
city varchar(128),
county varchar(128),
postcode varchar(15)
) engine=InnoDB;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment