nice menus with tool tips
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 4 Jan 2010 06:49:59 +0000 (06:49 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 4 Jan 2010 06:49:59 +0000 (06:49 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@92 01035d8c-6547-0410-b346-abe4f91aad63

easy-asterisk-gui/banner.html
easy-asterisk-gui/logout.sh
easy-asterisk-gui/menu.html
easy-asterisk-gui/network.sh

index 432c7cdbed778c5a5d61f549be5fd0e431d4ba4f..c582d25b62ec9b6f39e20fa97292a14ed3a44b5b 100644 (file)
@@ -1 +1 @@
-    <tr><td colspan="2"><h1>Easy Asterisk</h1></td></tr>
+    <tr><td colspan="2"><h1></h1></td></tr>
index 93590311d54ab819595ea5205d7669948b72bdcf..769d7b8e629f4b6b8b60a5c58a4398af9b61ff80 100644 (file)
@@ -8,5 +8,6 @@ Content-type: text/html
 Set-Cookie: loggedin=1; expires=Thursday, 01-Jan-98 12:00:00 GMT
 
 <title>Easy Asterisk - Logout</title>
+<meta http-equiv="REFRESH" content="0;url=http:login.sh"
 EOF
 echo $HTTP_COOKIE
index e5d494501737106bb5cae9108c92c4b38844337c..c8340175926a8ec8f4a875b34592f2b272b970f2 100644 (file)
@@ -1,6 +1,16 @@
-    <td>
+    <div id="dashboard_tip" class="tip">Monitor the status of your phone system</div>
+    <div id="network_tip" class="tip">Set up the network and connect to the Internet</div>
+    <td valign="top" >
        <table align="right" width=200>
-       <tr><td>Menu 1</td></tr>
-       <tr><td>Menu 2</td></tr>
+       <tr><td><h2>&nbsp;</h2></td></tr>
+       <tr onMouseOver="popUp(event,'dashboard_tip')" onmouseout="popUp(event,'dashboard_tip')">
+         <td><a href="dashboard.sh">Dashboard</a></td>
+       </tr>
+       <tr onMouseOver="popUp(event,'network_tip')" onmouseout="popUp(event,'network_tip')">
+         <td><a href="network.sh">Network</a></td>
+       </tr>
+       <tr>
+         <td><a href="logout.sh">Logout</a></td>
+       </tr>
        </table>
     </td>
index 33ee3b140343a0a6496708c588b8a71a436f879f..bb93c28c34f7ba9c81d7b4edac16915fbafb16c4 100644 (file)
@@ -57,28 +57,45 @@ cat << EOF
 <title>Easy Asterisk - Network</title>
 <body onload="localInit()">
 <div id="t1" class="tip">Tells you if I can reach the Internet.  If not "Good" check your network settings, in particular Gateway and DNS.</div>
-<form action="/cgi-bin/set_network.sh" onsubmit="return validate_form(this)" method="get">
-<table align="center" width=600>
-<tr>
-  <tr><td colspan="2" align="left"><h2>Network</h2></td>
-  <tr>
-     <td><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td>
-     <td><input type="radio" id="dhcp"   name="dhcp" value="yes" onClick="doDHCP()">DHCP</td>
-  </tr>
-  <tr><td>IP Address:</td><td><input type="text" name="ipaddress" id="ipaddress" onBlur="isIP(this)"></td></tr>
-  <tr><td>Netmask:</td><td><input type="text" name="netmask" id="netmask" onBlur="isIP(this)"></td></tr>
-  <tr><td>Gateway:</td><td><input type="text" name="gateway" id="gateway" onBlur="isIP(this)"></td></tr>
-  <tr><td>DNS:</td><td><input type="text" name="dns" id="dns" onBlur="isIP(this)"></td></tr>
-  <tr onMouseOver="popUp(event,'t1')" onmouseout="popUp(event,'t1')">
-      <td>Internet Connection:</td>
-      <td><div id="internet" >
-      <span style="margin-left: 4px;font-weight:bold">&nbsp;</span></div></td>
-      
-  </tr>
-  <tr><td><input id="networkapply" type="submit" value="Apply"></td></tr>
-</tr>
+
+<table align="center" width=800>
+EOF
+cat banner.html
+echo "    <tr>"
+cat menu.html    
+cat <<EOF
+
+    <td>
+
+    <form action="/cgi-bin/set_network.sh" onsubmit="return validate_form(this)" method="get">
+    <table align="center" width=600>
+    <tr>
+      <tr><td colspan="2" align="left"><h2>Network</h2></td>
+      <tr>
+        <td><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td>
+        <td><input type="radio" id="dhcp"   name="dhcp" value="yes" onClick="doDHCP()">DHCP</td>
+      </tr>
+      <tr><td>IP Address:</td><td><input type="text" name="ipaddress" id="ipaddress" onBlur="isIP(this)"></td></tr>
+      <tr><td>Netmask:</td><td><input type="text" name="netmask" id="netmask" onBlur="isIP(this)"></td></tr>
+      <tr><td>Gateway:</td><td><input type="text" name="gateway" id="gateway" onBlur="isIP(this)"></td></tr>
+      <tr><td>DNS:</td><td><input type="text" name="dns" id="dns" onBlur="isIP(this)"></td></tr>
+      <tr onMouseOver="popUp(event,'t1')" onmouseout="popUp(event,'t1')">
+         <td>Internet Connection:</td>
+         <td><div id="internet" >
+         <span style="margin-left: 4px;font-weight:bold">&nbsp;</span></div></td>
+
+      </tr>
+      <tr><td><input id="networkapply" type="submit" value="Apply"></td></tr>
+    </tr>
+    </table>
+    </form>
+
+    </td>
+
+    </tr>
+
 </table>
-</form>
+
 </html>
 EOF