aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYan <yanxk.fnst@fujitsu.com>2023-08-21 08:37:20 +0800
committerYan <yanxk.fnst@fujitsu.com>2023-08-21 08:37:20 +0800
commit10c20c054f2a610fa3d5d726a8bb8286f63b9f44 (patch)
treea7a56ea03819ee3c2f58b31748692bf76584f093
parent4535253ed04520f2b034bebd950f03ff66beae3a (diff)
agl-wireless-monitor: submit front side web pages
first version of the web ui is now available. structure is set but not fully implemented. Bug-AGL: SPEC-4838 Signed-off-by: Yan <yanxk.fnst@fujitsu.com> Change-Id: If6b76c77ac5af8025927ab6f5a004de324505a30
-rw-r--r--README.md3
-rw-r--r--ui/www/README.md4
-rw-r--r--ui/www/homepage.html24
-rw-r--r--ui/www/monitor.html28
-rw-r--r--ui/www/options.html43
5 files changed, 102 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..40e6748
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+folder explanation:
+
+ui: contains whatever is related to user interface, including HTML and CGI source code.
diff --git a/ui/www/README.md b/ui/www/README.md
new file mode 100644
index 0000000..0a48f56
--- /dev/null
+++ b/ui/www/README.md
@@ -0,0 +1,4 @@
+This folder is named with 'www'
+www is the common naming for web servers, representing DocumentRoot.
+This folder holds the web pages.
+In boa configure file, index has been set to homepage.html.
diff --git a/ui/www/homepage.html b/ui/www/homepage.html
new file mode 100644
index 0000000..89ff5ca
--- /dev/null
+++ b/ui/www/homepage.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Homepage</title>
+</head>
+
+<body>
+ <table width="480" height="480" border="0" align="center">
+ <tr>
+ <td height="80"><font face="Times New Roman" color="black" size="+8">AGL Wireless Monitor</font></td>
+ </tr>
+ <tr>
+ <td height="30"></td>
+ </tr>
+ <tr>
+ <td height="80"><h1 align="center"><a href="./monitor.html"><font face="Times New Roman" color="blue" size="+5">To Monitor Page</font></a></h1></td>
+ </tr>
+ <tr>
+ <td height="80"><h1 align="center"><a href="./options.html"><font face="Times New Roman" color="blue" size="+5">To Options Page</font></a></h1></td>
+ </tr>
+ </table>
+</body>
+</html>
diff --git a/ui/www/monitor.html b/ui/www/monitor.html
new file mode 100644
index 0000000..013197a
--- /dev/null
+++ b/ui/www/monitor.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <td width="480">
+ <div align="left">
+ <a href="homepage.html"><font face="Times New Roman" color="blue" size="+3">Back to homepage</font></a>
+ </div>
+ </td>
+ <title>Monitor Page</title>
+</head>
+
+<body>
+ <table width="480" height="80" background="" border="0" align="center">
+ <tr><td width="480"><div align="center"><font face="Times New Roman" color="black" size="+3">Monitor Page</font></div></td></tr>
+ </table>
+
+ <table width="480" align="center" height="480" border="0">
+ <tr>
+ <td height="320" width="240"><img src="http://192.168.11.126:8080/?action=stream"/></td>
+ </tr>
+ <tr>
+ <td width="480">
+ <iframe src="cgi-bin/env.cgi" height="120" width="480" align="middle"></iframe>
+ </td>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/ui/www/options.html b/ui/www/options.html
new file mode 100644
index 0000000..72cd37a
--- /dev/null
+++ b/ui/www/options.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <td width="480" height="80">
+ <div align="left"><a href="homepage.html"><font face="Times New Roman" color="blue" size="+3">Back to homepage</font></a></div>
+ </td>
+ <title>Options Page</title>
+ </head>
+ <body>
+ <table width="480" height="50" border="0" align="center">
+ <tr><td width="480"><div align="center"><font face="Times New Roman" color="black" size="+3">Options Page</font></div></td></tr>
+ </table>
+ <table width="480" height="50" border="0">
+ </table>
+ <table width="480" height="80" align="center" border="0">
+ <td height="80">
+ <div align="center">
+ <form id="form_fan" name="form_fan" method="post" action="./cgi-bin/fan.cgi">
+ <div>
+ <label>FAN:<input type="radio" name="fan_on" value="1" id="FAN_CMD_1" />ON</label>
+ <label><input type="radio" name="fan_off" value="0" id="FAN_CMD_2" />OFF</label>
+ <input type="submit" name="FAN_CMD_BUF" id="BUTTON_FAN" value="SEND" />
+ </div>
+ </form>
+ </div>
+ </td>
+ </table>
+ <table width="480" height="80" align="center" border="0">
+ <td height="80">
+ <div align="center">
+ <form id="form_fan" name="form_fan" method="post" action="./cgi-bin/fan.cgi">
+ <div>
+ <label>Alarm:<input type="radio" name="alarm_on" value="1" id="ALARM_CMD_1" />ON</label>
+ <label><input type="radio" name="alarm_off" value="0" id="ALARM_CMD_2" />OFF</label>
+ <input type="submit" name="ALARM_CMD_BUF" id="BUTTON_ALARM" value="SEND" />
+ </div>
+ </form>
+ </div>
+ </td>
+ </table>
+ </body>
+</html> \ No newline at end of file