Skip to content

Commit 3765389

Browse files
committed
Better HTML layout
Rearrange some things here and there Make separate divs for header and footer Write CSS instead of hideous formatting tags
1 parent a6f2e13 commit 3765389

File tree

1 file changed

+54
-22
lines changed

1 file changed

+54
-22
lines changed

index.php

+54-22
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,57 @@
1212
<meta name="keywords" content="traceroute ping nslookup foss teimes ipv4 ipv6" />
1313
<meta name="description" content="free online network tools by foss.teimes" />
1414
<meta name="distribution" content="global" />
15-
<title>Κοινότητα ΕΛ/ΛΑΚ ΤΕΙ Μεσολογγίου &bull; Network Tools</title>
15+
<title>FOSS TEIMES - Network Tools</title>
1616
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
1717
<link rel="shortcut icon" href="http://foss.tesyd.teimes.gr/sites/default/files/favicon.ico" type="image/x-icon" />
18+
<style type="text/css">
19+
#header {
20+
text-align: center;
21+
}
22+
#header * {
23+
margin: 0.2em;
24+
}
25+
.smallfont {
26+
font-size: small;
27+
}
28+
#footer {
29+
text-align: center;
30+
}
31+
#footer p {
32+
font-family: sans-serif;
33+
text-decoration: none;
34+
font-size: 10px;
35+
}
36+
37+
</style>
1838
</head>
19-
<center><a href="http://foss.aueb.gr/" target="_blank"><img style="border-style: none" align="left" src="http://foss.tesyd.teimes.gr/sites/default/files/favicon.ico" /></a><font size=6><b>FOSS TEIMES - Network Tools</b></font></center>
20-
<h5> Κοινότητα Ελεύθερου Λογισμικού και Λογισμικού Ανοιχτού Κώδικα ΤΕΙ Μεσολογγίου<br/>Free and Open Source Software Community of TEI of Messolonghi</h5>
21-
</br>
39+
2240
<body>
23-
<form name="input" action="index.php" method="get">
24-
<select name="service">
25-
<option value="traceroute">traceroute</option>
26-
<option value="traceroute6">traceroute (IPv6)</option>
27-
<option value="ping">ping</option>
28-
<option value="ping6">ping (IPv6)</option>
29-
<option value="nslookup">nslookup</option>
30-
</select>
31-
IP ADDRESS:
32-
<input type="text" name="address" />
33-
<input type="submit" name ="submit" value="Submit" />
41+
<div id="header" class="clearfix">
42+
<div id="site-logo"><a href="https://foss.tesyd.teimes.gr/" title="Home">
43+
<img src="https://foss.tesyd.teimes.gr/sites/default/files/tux-header.png" alt="Home" />
44+
</a></div>
45+
46+
<h1>Εργαλεία Δικτύου - Network Tools</h1>
47+
<h5>Κοινότητα Ελεύθερου Λογισμικού και Λογισμικού Ανοιχτού Κώδικα ΤΕΙ Μεσολογγίου<br />
48+
Free and Open Source Software Community of TEI of Messolonghi</h5>
49+
</div>
50+
51+
<form name="input" action="index.php" method="get"><p>
52+
<select name="service">
53+
<option value="traceroute">traceroute</option>
54+
<option value="traceroute6">traceroute (IPv6)</option>
55+
<option value="ping">ping</option>
56+
<option value="ping6">ping (IPv6)</option>
57+
<option value="nslookup">nslookup</option>
58+
</select>
59+
IP ADDRESS:
60+
<input type="text" name="address" value="<?php echo trim($_GET['address']); ?>"/>
61+
<input type="submit" name ="submit" value="Submit" /></p>
62+
<p class="smallfont">IPv4/IPv6 address example : www.google.com or google.com or 209.85.129.99 or 2a00:1450:4009:804::1003 - don't use 'http://' prefix</p>
3463
</form>
35-
<font size=1>IPv4/IPv6 address example : www.google.com or google.com or 209.85.129.99 or 2a00:1450:4009:804::1003 - don't use 'http://' prefix </font>
36-
<hr>
64+
65+
<div id="response"><p>
3766
<?php
3867
if(isset($_GET['submit']))
3968
{
@@ -79,12 +108,15 @@
79108
{
80109
echo "Address format error or address doesn't exist";
81110
}
82-
echo "<hr>";
83111
}
84112
?>
85-
<center>
86-
<br/>
87-
<span style="font-family: sans-serif; text-decoration: none; font-size: 10px;">Powered by <a href="http://foss.tesyd.teimes.gr">foss.tesyd.teimes.gr</a> <(' )</span><br/>
88-
</center>
113+
114+
</p></div>
115+
116+
<div id="footer">
117+
<hr />
118+
<p>Powered by <a href="https://foss.tesyd.teimes.gr/">foss.tesyd.teimes.gr</a></p>
119+
</div>
120+
89121
</body>
90122
</html>

0 commit comments

Comments
 (0)