Skip to content

Commit a76f896

Browse files
AzhamAzham
Azham
authored and
Azham
committed
changes..
1 parent b4840e2 commit a76f896

19 files changed

+253
-2040
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
dbinfo.php
1+
/dbinfo.php
2+
/rss/db.php

api/.htaccess

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Options +FollowSymLinks
2+
3+
RewriteEngine on
4+
#get details by specifying format
5+
#get all details in db
6+
RewriteRule ^people/([A-Za-z0-9-]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=leader&f=$1 [L]
7+
RewriteRule ^battles/([A-Za-z0-9-]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=battle&f=$1 [L]
8+
9+
#get details by specifying names
10+
RewriteRule ^people/([\ A-Za-z0-9-]+)/([A-Za-z0-9_]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=leader&f=$2&n=$1 [L]
11+
RewriteRule ^battles/([\ A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=battle&f=$2&n=$1 [L]
12+
13+
#using default format i.e xml
14+
RewriteRule ^people/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=leader&f=xml [L]
15+
RewriteRule ^battles/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=battle&f=xml [L]
16+
RewriteRule ^people/([\ A-Za-z0-9-]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=leader&f=xml&n=$1 [L]
17+
RewriteRule ^battles/([\ A-Za-z0-9-]+)/?$ http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/api.php?c=battle&f=xml&n=$1 [L]
18+
#custom error page in case of bad api call
19+
ErrorDocument 404 http://www.cems.uwe.ac.uk/~tam2-naphiel/dsa/api/404.php

book.psd

-7.4 MB
Binary file not shown.

css/Drawing with markers-webfont.eot

-52 KB
Binary file not shown.

css/Drawing with markers-webfont.svg

-1,718
This file was deleted.

css/Drawing with markers-webfont.ttf

-95.6 KB
Binary file not shown.

css/Drawing with markers-webfont.woff

-53.9 KB
Binary file not shown.
-45.8 KB
Binary file not shown.

css/index_old.css

-66
This file was deleted.

gmaps/icon.png

27.5 KB
Loading

gmaps/index.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
$servername="stocks";
3+
$username="fet13023117";
4+
$password="H46LMffy";
5+
$database="fet13023117";
6+
7+
// Create connection
8+
$conn = new mysqli($servername, $username, $password, $database);
9+
// Check connection
10+
if ($conn->connect_error) {
11+
die("Connection failed: " . $conn->connect_error);
12+
}
13+
14+
15+
$sql = "SELECT * FROM battle";
16+
$result = mysqli_query($conn, $sql);
17+
18+
19+
20+
$battles = array();
21+
22+
23+
24+
while ($row = mysqli_fetch_array($result)) {
25+
26+
27+
28+
array_push($battles, array("id" => $row["battle_id"],"battle_name" => $row["battle_name"], "name" => str_replace(" ", "", $row["battle_name"]),"description" => $row["description"], "beligerents" => $row["Beligerents"],"outcome" => $row["outcome"],"lat" => $row["lat"],"lng" => $row["lng"] ));
29+
30+
}
31+
32+
33+
$numberOfBattles = sizeof($battles);
34+
35+
$conn->close();
36+
?>

images/bk.jpg

-973 KB
Binary file not shown.

images/bkground.png

-352 KB
Binary file not shown.

images/book-01-cleaned-full.jpg

-1.2 MB
Binary file not shown.

book.png images/book.png

File renamed without changes.

css/index.css index.css

+71-37
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,54 @@
11
body
22
{
3-
4-
53
}
6-
7-
8-
94
.wrapper{
105
width:100%;
11-
width:1336px;
12-
6+
width:1336px;
137
background-color:#A7C5C7;
148
margin-left:auto;
159
margin-right:auto;
16-
1710
position:relative;
1811
}
19-
2012
.header{
21-
2213
position:absolute;
2314
top:0px;
2415
height:100px;
25-
2616
width:100%;
2717
z-index:50;
2818
}
29-
3019
.nav_bar{
31-
32-
z-index:49;
20+
font-family: Georgia;
21+
color: #523928;
22+
font-weight: bold;
3323
position:absolute;
34-
top:100px;
24+
top:60px;
25+
left:80px;
3526
width: 100%;
3627
height:25px;
3728

38-
background:rgba(240, 240, 240, 0.8);
39-
4029
}
4130
@font-face {
4231
font-family: 'drawing_with_markersregular';
4332
src: url('Drawing with markers-webfont.eot');
4433
src: url('Drawing with markers-webfont.eot?#iefix') format('embedded-opentype'),
45-
url('Drawing with markers-webfont.woff2') format('woff2'),
46-
url('Drawing with markers-webfont.woff') format('woff'),
47-
url('Drawing with markers-webfont.ttf') format('truetype'),
48-
url('Drawing with markers-webfont.svg#drawing_with_markersregular') format('svg');
34+
url('Drawing with markers-webfont.woff2') format('woff2'),
35+
url('Drawing with markers-webfont.woff') format('woff'),
36+
url('Drawing with markers-webfont.ttf') format('truetype'),
37+
url('Drawing with markers-webfont.svg#drawing_with_markersregular') format('svg');
4938
font-weight: normal;
5039
font-style: normal;
51-
5240
}
53-
5441
h4:first-of-type:first-letter { float: left; color: #903; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-family: Georgia; }
55-
5642
.leftPage{
5743
position:absolute;
5844
top:85px;
5945
left:75px;
6046
width:578px;
6147
height:780px;
62-
font-family: Georgia;
63-
color: #523928;
64-
//opacity: .825;
65-
66-
48+
font-family: Georgia;
49+
text-align:justify;
50+
color: #523928;
6751
}
68-
6952
.api{
7053
position:absolute;
7154
//top:150px;
@@ -75,27 +58,21 @@ color: #523928;
7558
border-radius: 5px;
7659
opacity:.55;
7760
}
78-
7961
.api_container{
8062
position:absolute;
8163
top:85px;
8264
left:665px;
8365
width:578px;
8466
height:780px;
85-
//box-shadow: inset 39px 1px 53px -8px #575757;
67+
//box-shadow: inset 39px 1px 53px -8px #575757;
8668
border-radius: 5px;
8769
}
88-
89-
90-
91-
9270
.book{
9371
position:absolute;
9472
top:50px;
9573
background-repeat:no-repeat;
9674
width:1336px;
9775
height:927px;
98-
9976
}
10077
.footer{
10178
position:absolute;
@@ -105,5 +82,62 @@ color: #523928;
10582
text-align:center;
10683
color:white;
10784
padding-top:10px;
85+
}
86+
87+
a:link {
88+
color: #523928;
89+
}
90+
91+
a{
92+
text-decoration: none;
93+
}
94+
95+
a:visited {
96+
color: #523928;
97+
}
98+
99+
100+
a:hover {
101+
color: #523928;
102+
}
103+
108104

105+
a:active {
106+
color: #523928;
107+
}
108+
109+
#home
110+
{
111+
position: absolute;
112+
margin-top: 10px;
113+
margin-left: 15px;
114+
}
115+
#azham
116+
{
117+
position: absolute;
118+
margin-top: 5px;
119+
margin-left: 105px;
120+
}
121+
#hannad
122+
{
123+
position: absolute;
124+
margin-top: 3px;
125+
margin-left: 195px;
126+
}
127+
#josh
128+
{
129+
position: absolute;
130+
margin-top: 2px;
131+
margin-left: 300px;
132+
}
133+
#kayne{
134+
position: absolute;
135+
margin-top: -5px;
136+
margin-left: 385px;
137+
}
138+
#rss
139+
{
140+
position: absolute;
141+
margin-top: -5px;
142+
margin-left: 486px;
109143
}

0 commit comments

Comments
 (0)