forked from stefanidisgeorge/watt_metter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout-project.php
153 lines (128 loc) · 6.06 KB
/
about-project.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
if(!isset($_COOKIE["lang"])) {
$query = json_decode(file_get_contents('https://freegeoip.net/json/'.$_SERVER['REMOTE_ADDR']));
$country=$query->{'country_code'};
if($country=="GR"){
setcookie("lang", "GR", time() + (86400 * 30), "/");
}
else
{
setcookie("lang", "ENG", time() + (86400 * 30), "/");
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>About the Project</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src = 'http://code.jquery.com/jquery-1.8.2.min.js'></script>
<link href="css/theme.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
<section class="container">
<?php include('menu.php'); ?>
<?php if($_COOKIE["lang"]=="GR"){ ?>
<!-- Greek -->
<div class="jumbotron" style="text-align: center">
<h1>About the Project</h1>
<hr>
<p>
<hr>
<div style="text-align: left;" class = "content">
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2><u>Arduino Uno</u> </h2>
<p>
</div>
<div class="col-lg-8">
<img src="http://www.instructables.com/files/orig/FU2/6C3W/I1TRCS2B/FU26C3WI1TRCS2B.jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h4>The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet).<p> <p>It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. <p>It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.</h4>
</div>
</div>
<hr>
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2> <u>Arduino Uno Ethernet Shield</u> </h2>
</div>
<div class="col-lg-8">
<img src="https://www.arduino.cc/en/uploads/Guide/ArduinoWithEthernetShield.jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h3>The Arduino Ethernet Shield allows you to easily connect your Arduino to the internet.<p><p> This shield enables your Arduino to send and receive data from anywhere in the world with an internet connection.</h3>
</div>
</div>
<hr>
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2> <u>Non-invasive AC Current Sensor</u> </h2>
</div>
<div class="col-lg-8">
<img src="http://grobotronics.com/images/detailed/10/E000020_Non-invasive_AC_current_sensor_(30A_max).jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h3>Current transformers (CTs) are sensors that are used for measuring alternating current. <p> <p>They are particularly useful for measuring whole building electricity consumption (or generation for that matter).</h3>
</div>
</div>
</div>
</div>
<!-- End Greek -->
<?php } else { ?>
<!-- English -->
<div class="jumbotron" style="text-align: center">
<h1>About the Project</h1>
<hr>
<p>
<hr>
<div style="text-align: left;" class = "content">
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2><u>Arduino Uno</u> </h2>
<p>
</div>
<div class="col-lg-8">
<img src="http://www.instructables.com/files/orig/FU2/6C3W/I1TRCS2B/FU26C3WI1TRCS2B.jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h4>The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet).<p> <p>It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. <p>It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.</h4>
</div>
</div>
<hr>
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2> <u>Arduino Uno Ethernet Shield</u> </h2>
</div>
<div class="col-lg-8">
<img src="https://www.arduino.cc/en/uploads/Guide/ArduinoWithEthernetShield.jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h3>The Arduino Ethernet Shield allows you to easily connect your Arduino to the internet.<p><p> This shield enables your Arduino to send and receive data from anywhere in the world with an internet connection.</h3>
</div>
</div>
<hr>
<div class="row">
<div style="text-align: center;" class="col-lg-12">
<h2> <u>Non-invasive AC Current Sensor</u> </h2>
</div>
<div class="col-lg-8">
<img src="http://grobotronics.com/images/detailed/10/E000020_Non-invasive_AC_current_sensor_(30A_max).jpg" alt="Arduino Uno" height="90%" width="90%">
</div>
<div style="text-align: left;" class="col-lg-4">
<h3>Current transformers (CTs) are sensors that are used for measuring alternating current. <p> <p>They are particularly useful for measuring whole building electricity consumption (or generation for that matter).</h3>
</div>
</div>
</div>
</div>
<!-- End English -->
<?php } ?>
<div class="row">
<div class="col-lg-4">
</div>
</div>
</section>
</body>
<?php include('footer.php'); ?>
</html>