<!-- ../fon/foncalls.js -->
<style type="text/css">
<!--
#content {width: 560px; margin: auto;}
#tClient {margin: auto; width: 516px; table-layout: fixed}
#tClient td {padding: 2px; overflow: hidden}
#tClient th {padding: 2px; overflow: hidden}
#tClient .c1 {text-align: left; width:20px;}
#tClient .c3 {text-align: left; width:<? if lte $var:AbCount 1 `100px` `80px` ?>;}
#tClient .c4 {text-align: left; width:<? if lte $var:AbCount 1 `120px` `100px` ?>;}
#tClient .c5 {text-align: left; width:70px; <? if lte $var:AbCount 1 `display:none;` ?>}
#tClient .c6 {text-align: right; width:30px;}
#tClient .c7 {text-align: left; width:106px;}
#tClient .c8 {text-align: left; width:<? if lte $var:AbCount 1 `116px` `80px` ?>;}
#tLegende {margin:auto}
#tLegende td {padding: 2px 2px;}
#tClient a:link { color: blue }
#tClient a:visited { color: blue }
.Mikrohell {height: 12px; font-size: 8pt; background-color:#FFFFFF;}
.Mikrodunkel {height: 12px; font-size: 8pt;}
.ar {text-align: right;}
-->
</style>
<script type=text/javascript>
<? include ../html/$var:lang/js/jsl.js ?>
var g_qstClear = "Alle Einträge in der Anrufliste werden jetzt gelöscht.";
var g_qstDial = "Wollen Sie die Verbindung jetzt herstellen?";
var g_txtUnbekannt = "unbekannt";
var g_txtNotAavailable = "n.a.";
var g_txtFestnetz = "Festnetz";
var g_txtInternetprefix = "Internet: ";
var g_sym1 = "<img src=\"../html/<? echo $var:lang ?>/images/Callin.gif\" title=\"eingehender Anruf\">";
var g_sym2 = "<img src=\"../html/<? echo $var:lang ?>/images/Callinfailed.gif\" title=\"eingehender Anruf in Abwesenheit\">";
var g_sym3 = "<img src=\"../html/<? echo $var:lang ?>/images/Callout.gif\" title=\"ausgehender Anruf\">";
var g_sym0 = "<img src=\"../html/<? echo $var:lang ?>/images/Callno.gif\">";
var g_Fon1 = "Nebenstelle FON 1";
var g_Fon2 = "Nebenstelle FON 2";
var g_Fon3 = "Nebenstelle FON 3";
var g_Port0 = "FON 1";
var g_Port1 = "FON 2";
var g_Port2 = "FON 3";
var g_Port3 = "Durchwahl";
var g_Port4 = "FON S0";
var g_Port5 = "CAPI";
var g_Port6 = "Anrufbeantworter";
var g_Port36 = "DATA S0";
var g_Port37 = "CAPI Data";
var g_txtIsdn = "ISDN-Telefone";
function uiDoOnLoad() {
jslSetChecked("uiViewClickToDial", jslGetValue("uiPostClickToDial") == "1");
var name = jslGetValue("uiPostFon0");
if (name.length == 0) name = g_Fon1;
jslAddOption("uiViewPort", "1", name, false);
name = jslGetValue("uiPostFon1");
if (name.length == 0) name = g_Fon2;
jslAddOption("uiViewPort", "2", name, false);
name = jslGetValue("uiPostFon2");
if (name.length == 0) name = g_Fon3;
jslAddOption("uiViewPort", "3", name, false);
jslAddOption("uiViewPort", "50", g_txtIsdn, false);
for (var i=1; i<9; i++) {
name = jslGetValue("uiPostIsdnNumber"+i);
if (name.length > 0) jslAddOption("uiViewPort", "5"+i, jslGetValue("uiPostIsdn"+i), false);
}
jslSetSelection("uiViewPort", "1");
jslSetSelection("uiViewPort", jslGetValue("uiPostDialPort"));
}
function uiDoRefresh() {
jslGoTo("fon", "foncalls");
}
function uiDoSave() {
jslSetValue("uiPostClickToDial", jslGetChecked("uiViewClickToDial") ? "1":"0");
jslCopyValue("uiPostDialPort", "uiViewPort");
jslEnable("uiPostClickToDial");
jslEnable("uiPostDialPort");
jslFormSubmitEx("fon", "foncalls");
}
function uiDoClear() {
if (!confirm(g_qstClear)) return;
jslEnable("uiPostClearJournal");
jslFormSubmitEx("fon", "foncalls");
}
function uiDoHelp() {
jslPopHelp("hilfe_fon_anrufliste");
}
function uiDoExport() {
document.getElementById("uiPostExport").submit();
}
function uiCallSymbol (n) {
switch (n) {
case "1": return g_sym1;
case "2": return g_sym2;
case "3": return g_sym3;
}
return g_sym0;
}
function uiPortDisplay (n) {
var name;
switch (n) {
case "0":
name = "<? query telcfg:settings/MSN/Port0/Name ?>";
if (name.length == 0) name = g_Port0;
break;
case "1":
name = "<? query telcfg:settings/MSN/Port1/Name ?>";
if (name.length == 0) name = g_Port1;
break;
case "2":
name = "<? query telcfg:settings/MSN/Port2/Name ?>";
if (name.length == 0) name = g_Port2;
break;
case "3": name = g_Port3; break;
case "4": name = g_Port4; break;
case "5": name = g_Port5; break;
case "6": name = g_Port6; break;
case "36": name = g_Port36; break;
case "37": name = g_Port37; break;
default: name = ""; break;
}
return "<span title=\""+ name + "\">" + name + "</span>";
}
function uiRufnummerDisplay (n) {
if (n == "") return g_txtUnbekannt;
return "<a href=\"javascript:Dial('"+n+"')\" title=\""+n+"\">"+n+"</a>";
}
function uiRufnummerInfo (n) {
if (n == "") return g_txtNotAavailable;
return "<a href=\"http://www.dasoertliche.de/DB4Web/es/oetb2suche/home.htm?kw_invers="+n+"&main=Antwort&SEITE=INVERSSUCHE&s=2\" target=\"_blank\" title=\"Rückwärtssuche bei dasoertliche.de nach "+n+"\"><img src=\"../html/<? echo $var:lang ?>/images/bearbeiten.gif\"></a>";
}
function uiRouteDisplay (n, t) {
var name;
if (t == "0") {
name = n == "" ? g_txtFestnetz : n;
} else {
switch (n) {
<? multiquery sip:settings/sip/list(displayname,ID) `
case "$3": name = g_txtInternetprefix+"$2"; break;
` ?>
default: name = n; break;
}
}
return "<span title=\""+ name + "\">" + name + "</span>";
}
function ZweistelligeNummer (n) {
if (n>9) return n.toString();
return "0"+n.toString();
}
function Dial (n) {
if (!jslGetChecked("uiViewClickToDial")) return;
if (!confirm(g_qstDial)) return;
jslSetValue("uiPostClickToDial", "1");
jslSetValue("uiPostDial", n);
jslCopyValue("uiPostDialPort", "uiViewPort");
jslEnable("uiPostClickToDial");
jslEnable("uiPostDial");
jslEnable("uiPostDialPort");
jslFormSubmitEx("fon", "foncalls");
}
function uiDoShowAll() {
jslSetValue("uiPostShowAll","1");
jslFormSubmitEx("fon", "foncalls");
}
</script>