25 /* |
25 /* |
26 * Look for the style names in the jqwidgets/styles directory. |
26 * Look for the style names in the jqwidgets/styles directory. |
27 */ |
27 */ |
28 $my_style = 'ui-redmond'; |
28 $my_style = 'ui-redmond'; |
29 |
29 |
|
30 $answer = send_cmd('GLOBAL GET'); |
|
31 $arr = explode("\r\n", $answer); |
|
32 $version = "?"; |
|
33 |
|
34 if (startsWith($arr[0], "213")) { |
|
35 $j = 1; |
|
36 while (1) { |
|
37 if (strcmp($arr[$j], ".") == 0) |
|
38 break; |
|
39 $f = explode(",", $arr[$j]); |
|
40 |
|
41 if ($f[0] == "RELEASE") |
|
42 $version = $f[1]; |
|
43 $j++; |
|
44 } |
|
45 } |
|
46 |
30 $outstr = '<!DOCTYPE html>'.PHP_EOL; |
47 $outstr = '<!DOCTYPE html>'.PHP_EOL; |
31 $outstr .= '<html>'.PHP_EOL; |
48 $outstr .= '<html>'.PHP_EOL; |
32 $outstr .= ' <head>'.PHP_EOL; |
49 $outstr .= ' <head>'.PHP_EOL; |
33 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; |
50 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; |
34 $outstr .= ' <title>ThermFerm - Maintenance Menu</title>'.PHP_EOL; |
51 $outstr .= ' <title>ThermFerm - Maintenance Menu</title>'.PHP_EOL; |
35 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL; |
52 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL; |
36 $outstr .= ' </head>'.PHP_EOL; |
53 $outstr .= ' </head>'.PHP_EOL; |
37 $outstr .= ' <body class="default">'.PHP_EOL; |
54 $outstr .= ' <body class="default">'.PHP_EOL; |
38 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
55 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
39 $outstr .= ' <div id="header">'.PHP_EOL; |
56 $outstr .= ' <div id="header">'.PHP_EOL; |
|
57 $outstr .= ' <div id="title">'.PHP_EOL; |
|
58 $outstr .= ' ThermFerm '.$version.PHP_EOL; |
|
59 $outstr .= ' </div>'.PHP_EOL; |
40 $outstr .= ' <form action="index.php" style="margin:30px; float:right">'.PHP_EOL; |
60 $outstr .= ' <form action="index.php" style="margin:30px; float:right">'.PHP_EOL; |
41 $outstr .= ' <input type="submit" style="width: 150px; height: 25px;" value="Dashboard" />'.PHP_EOL; |
61 $outstr .= ' <input type="submit" style="width: 150px; height: 25px;" value="Dashboard" />'.PHP_EOL; |
42 $outstr .= ' </form>'.PHP_EOL; |
62 $outstr .= ' </form>'.PHP_EOL; |
43 $outstr .= ' </div> <!-- header -->'.PHP_EOL; |
63 $outstr .= ' </div> <!-- header -->'.PHP_EOL; |
44 $outstr .= ' <div id="content">'.PHP_EOL; |
64 $outstr .= ' <div id="content">'.PHP_EOL; |