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>
+
# 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) {
}
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