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='******'&mac=' . $mac . '&type=' . $type . '&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();
} 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'] ? '' : '&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ählen'), '"><img alt="', __('wählen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook.png" /></a>'; } else { echo ' '; } echo "\n"; echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=del&type=' . rawUrlEncode($type) . '&number=' . rawUrlEncode($r['number']) . '&page=' . $page), '" title="', __('löschen'), '" style="margin-left:1.5em;">', '<img alt="', __('lö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>
$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();