tooltips for voiplines screen
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 14 Jan 2010 23:23:22 +0000 (23:23 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 14 Jan 2010 23:23:22 +0000 (23:23 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@113 01035d8c-6547-0410-b346-abe4f91aad63

easy-asterisk-gui/tooltips.html
easy-asterisk-gui/voiplines.pl

index 5ea1fabf3b06bd5b956a7b5549bc13bd426bed0c..b28082e832ea0c9eaa6dbb9918b5ff2e282009c5 100644 (file)
                        Refresh this page on your browser to see if
                        your VOIP line is working.  </div>
 
+<div id="voiplines_provider" class="tip">
+                        Your Internet Telephony Service Provider.
+                        They will give you an account with a user name
+                        and password.</div>
+
+<div id="voiplines_user" class="tip">
+                        Your account name with your Internet Telephony Service Provider</div>
+
+<div id="voiplines_pass" class="tip">
+                        The password for your Internet Telephony Service Provider account</div>
+
+<div id="voiplines_host" class="tip">
+                        The Internet address of your Internet
+                        Telephony Service Provider.  This will usually
+                        be filled in automatically.</div>
+
+<div id="voiplines_status" class="tip">
+                        A tick means you are connected to your
+                        Internet Telephony Service Provider.  Refresh
+                        your browser to update.</div>
+
index 1da1338de0a4d777053047fa83d910e831e3fed0..6f4f2c312686883833044108f579339dec5f2ea0 100755 (executable)
@@ -101,7 +101,13 @@ print "</script>\n";
 
 # generate form fields -------------------------------------------
 
-print "<tr><td>Provider</td><td>\n";
+$tt_provider = "onMouseOver=\"popUp(event,'voiplines_provider')\" onmouseout=\"popUp(event,'voiplines_provider')\"";
+$tt_user = "onMouseOver=\"popUp(event,'voiplines_user')\" onmouseout=\"popUp(event,'voiplines_user')\"";
+$tt_pass = "onMouseOver=\"popUp(event,'voiplines_pass')\" onmouseout=\"popUp(event,'voiplines_pass')\"";
+$tt_host = "onMouseOver=\"popUp(event,'voiplines_host')\" onmouseout=\"popUp(event,'voiplines_host')\"";
+$tt_status = "onMouseOver=\"popUp(event,'voiplines_status')\" onmouseout=\"popUp(event,'voiplines_status')\"";
+
+print "<tr $tt_provider><td>Provider</td><td>\n";
 print "<select name=\"provider\" id=\"provider\" onchange=\"changeProvider()\">\n";
 foreach (@providers) {
     if ($_ eq $provider_current) {
@@ -113,16 +119,16 @@ foreach (@providers) {
 }
 print "</select></td></tr>\n";
 
-print "<tr><td>User:</td><td><input type=\"text\" name=\"user\" id=\"user\" value=\"$user{$provider_current}\"></td></tr>\n";
-print "<tr><td>Password:</td><td><input type=\"password\" name=\"pass\" id=\"pass\" value=\"$pass{$provider_current}\"></td></tr>";
-print "<tr><td>Host:</td><td><input type=\"text\" name=\"host\" id=\"host\" value=\"$host{$provider_current}\"></td></tr>";
+print "<tr $tt_user><td>User:</td><td><input type=\"text\" name=\"user\" id=\"user\" value=\"$user{$provider_current}\"></td></tr>\n";
+print "<tr $tt_pass><td>Password:</td><td><input type=\"password\" name=\"pass\" id=\"pass\" value=\"$pass{$provider_current}\"></td></tr>";
+print "<tr $tt_host><td>Host:</td><td><input type=\"text\" name=\"host\" id=\"host\" value=\"$host{$provider_current}\"></td></tr>";
 if ($voip{$stanza{$provider_current}} eq "OK") {
     $icon = "<img src=\"tick.png\" alt=\"VOIP Line OK\" />";
 }
 else {
     $icon = "<img src=\"cross.png\" alt=\"VOIP Line OK\" />";
 }
-print "<tr><td>Voip Line Status:</td><td>$icon</td></tr>";
+print "<tr $tt_status><td>Voip Line Status:</td><td>$icon</td></tr>";
 
 # hidden field to pass stanza with form