Example #1
0
            if ($r["remote_name"] != "") {
                $entry_name .= ' ' . $r['remote_name'];
            }
            if (date('dm') == date('dm', (int) $r['ts'])) {
                $when = date('H:i', (int) $r['ts']);
            } else {
                $when = date('d.m.', (int) $r['ts']);
            }
            echo '<tr>';
            echo '<td width="30%">' . $when . '</td>';
            echo '<td width="70%"><a href="tel://' . $r['number'] . '">' . $entry_name;
            if ($num_calls > 0) {
                echo ' (' . $num_calls . ')';
            }
            echo '</a></td></tr>', "\n";
        }
        echo '</table>', "\n";
    }
    echo '</body>', "\n";
    echo '<softkey index="1" label="', __("Leeren"), '" action="Softkey:Fetch;' . $url_polycom_dl . '?user='******'&amp;mac=' . $mac . '&amp;type=' . $type . '&amp;delete=1" />', "\n";
    echo '<softkey index="2" label="', __("Beenden"), '" action="Softkey:Exit" />', "\n";
    echo '</html>', "\n";
    if ($type == "missed") {
        gs_user_watchedmissed($user_id);
    }
    if (GS_BUTTONDAEMON_USE == true) {
        gs_user_missedcalls_ui($user);
    }
}
#################################### DIAL LOG }
_ob_send();
Example #2
0
        } else {
            $name = $r['r_ln'];
            if ($r['r_fn'] != '') {
                $name .= ', ' . $r['r_fn'];
            }
        }
        echo '<td>', htmlEnt($name), '</td>';
        echo '<td>', date_human($r['ts']), '</td>';
        $sudo_url = @$_SESSION['sudo_user']['name'] == @$_SESSION['real_user']['name'] ? '' : '&amp;sudo=' . @$_SESSION['sudo_user']['name'];
        echo '<td>';
        if ($r['number'] != $_SESSION['sudo_user']['info']['ext']) {
            echo '<a href="', GS_URL_PATH, 'srv/pb-dial.php?n=', htmlEnt($r['number']), $sudo_url, '" title="', __('w&auml;hlen'), '"><img alt="', __('w&auml;hlen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook.png" /></a>';
        } else {
            echo '&nbsp;';
        }
        echo "\n";
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=del&amp;type=' . rawUrlEncode($type) . '&amp;number=' . rawUrlEncode($r['number']) . '&amp;page=' . $page), '" title="', __('l&ouml;schen'), '" style="margin-left:1.5em;">', '<img alt="', __('l&ouml;schenck'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" />', '</a>', "\n";
        echo '</td>';
        echo '</tr>', "\n";
    }
    gs_user_watchedmissed($_SESSION['sudo_user']['info']['id'], false);
    if (GS_BUTTONDAEMON_USE == true) {
        gs_user_missedcalls_ui(@$_SESSION['sudo_user']['info']['ext'], false);
    }
}
?>

</tbody>
</table>

Example #3
0
        			$entry_name = 'WS: ';
        */
        $entry_name .= $r['number'];
        if ($r['remote_name'] != '') {
            $entry_name .= ' ' . $r['remote_name'];
        }
        if (date('dm') == date('dm', (int) $r['ts'])) {
            $when = date('H:i', (int) $r['ts']);
        } else {
            $when = date('d.m.', (int) $r['ts']);
        }
        if (strlen($entry_name) < 1) {
            $entry_name = __('anonym');
        }
        $entry_name = $when . '  ' . $entry_name;
        if ($num_calls > 1) {
            $entry_name .= ' (' . $num_calls . ')';
        }
        echo "\n", '<DirectoryEntry>', "\n", '<Name>', snom_xml_esc($entry_name), '</Name>', "\n", '<Telephone>', snom_xml_esc($r['number']), '</Telephone>', "\n", '</DirectoryEntry>', "\n";
    }
    echo '<SoftKeyItem>', '<Name>F2</Name>', '<Label>', snom_xml_esc(__('Löschen')), '</Label>', '<URL>', $url_snom_dl, '?user='******'&mac=', $mac, '&type=', $type, '&delete={index}</URL>', '</SoftKeyItem>', "\n";
    echo "\n", '</SnomIPPhoneDirectory>';
    if ($tp == 'missed') {
        gs_user_watchedmissed($user_id, $is_queue);
    }
    if (GS_BUTTONDAEMON_USE == true) {
        gs_user_missedcalls_ui($user, $is_queue);
    }
}
#################################### DIAL LOG }
_ob_send();