-
Notifications
You must be signed in to change notification settings - Fork 62
/
kimt_fe.php
67 lines (57 loc) · 1.68 KB
/
kimt_fe.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
<html>
<head>
<?php
include("../../config/settings.inc.php");
$station = isset($_GET['station']) ? substr($_GET["station"],0,5) : 'SMYI4';
$min = isset($_GET["min"]) ? $_GET["min"] : 1;
include("$rootpath/include/network.php");
$nt = new NetworkTable("KIMT");
$Scities = $nt->table;
if (!array_key_exists($station, $Scities)){
$station = "SMYI4";
}
include("$rootpath/include/imagemaps.php");
$secs = intval($min) * 60;
?>
<title>IEM | KIMT SchoolNet | <?php echo $Scities[$station]["name"]; ?></title>
<meta http-equiv="refresh" content="<?php echo $secs; ?>; URL=kimt_fe.php?min=<?php echo $min; ?>&station=<?php echo $station; ?>">
</head>
<body bgcolor="#96aae7">
<center>
<form method="POST" action="kimt_fe.php" name="st">
<?php
echo "SchoolNet Site: ";
echo "<select onChange=\"location=this.form.station.options[this.form.station.selectedIndex].value\" name=\"station\">\n";
while( list($key, $val) = each($Scities) ){
echo "<option value=\"$rooturl/content/kimt_fe.php?min=".$min."&station=". $key ."\"";
if ($station == $key){
echo " SELECTED ";
}
echo " >". $val["name"] ."\n";
}
echo "</select>\n";
?>
</form>
<p>
<?php
echo "<img src=\"kimt.php?station=".$station ."\">\n";
?>
<?php if (! isset($mode) ){ ?>
<br>Refresh Every:
<form name="refresh" action="kimt_fe.php">
<?php
$mins = Array(1, 5, 10, 20);
while (list($key, $val) = each($mins) ){
echo "<input type=\"radio\" name=\"min\" value=\"". $val ."\" ";
if ($min == $val){
echo "CHECKED";
}
echo "> ". $val ." min";
}
?>
<input type="hidden" value="<?php echo $station; ?>" name="station">
<input type="submit" value="Refresh">
</form>
<?php } ?>
</center>
</html>