<?php if (@$rs) { $i = 0; while ($r = $rs->fetchRow()) { echo '<tr class="' . (++$i % 2 == 0 ? 'even' : 'odd') . '">'; echo '<td>', htmlEnt($r['number']), '</td>'; if (!$r['r_uid']) { $name = $r['remote_name']; } 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"; } } ?>
break; case 'red': $img .= 'crystal-svg/16/act/redled.png'; break; default: $img .= 'crystal-svg/16/act/free_icon.png'; break; } $img .= '" /> '; } else { $img = '<img alt=" " src="' . GS_URL_PATH . 'crystal-svg/16/act/free_icon.png" /> '; } echo '<td>', $img, @$devstate['v'] ? $devstate['v'] : '?', '</td>'; if (GS_GUI_QUEUE_SHOW_NUM_CALLS) { echo '<td class="r">', @$memberinfo['calls'] !== null ? @$memberinfo['calls'] : '?', '</td>'; echo '<td class="r">', @$memberinfo['lastcall'] > 0 ? date_human(@$memberinfo['lastcall']) : '-', '</td>'; } echo '</tr>', "\n"; } } } ?> </tbody> </table> <br /> <h3><?php echo __('Anrufer(p)');
<a href="<?php echo gs_url('calls', 'missed'); ?> "><?php echo __('Letzte entgangene Anrufe'); ?> </a> </div> <div class="td" style="padding:0.0em;"> <?php echo '<table cellspacing="1" style="width:100%;">', "\n"; echo '<tbody>', "\n"; $i = 0; while ($r = $rs->fetchRow()) { echo '<tr class="', $i % 2 ? 'even' : 'odd', '">', "\n"; echo '<td style="width:30%;"><nobr>', htmlEnt(date_human($r['ts'])), '</nobr></td>', "\n"; echo '<td style="width:70%;">', htmlEnt($r['number']); if ($r['remote_name'] != '') { echo ' (', htmlEnt($r['remote_name']), ')'; } echo '</td>', "\n"; echo '</tr>', "\n"; ++$i; } if ($i === 0) { echo '<tr>', "\n"; echo '<td colspan="2"><i>', __('keine'), '</i></td>', "\n"; echo '</tr>', "\n"; } echo '</tbody>', "\n"; echo '</table>', "\n";
<?php if (!is_array(@$msgs[$folder]) || count($msgs[$folder]) < 1) { echo '<tr class="odd"><td colspan="5"><i>- ', __('keine'), ' -</i></td></tr>', "\n"; } else { foreach ($msgs[$folder] as $i => $msg) { echo '<tr class="', $i % 2 == 0 ? 'odd' : 'even', '">', "\n"; echo '<td style="vertical-align:middle;">'; //if ($folder=='INBOX') if (!$msg['listened_to']) { echo '<img id="', htmlEnt('vm-' . $msg['fld'] . '-' . $msg['file'] . '-flag'), '" alt=" " src="', GS_URL_PATH, 'img/star.gif" />'; } else { echo ' '; } echo '</td>', "\n"; echo '<td>'; echo htmlEnt(date_human(@$msg['ts'])); echo '</td>', "\n"; echo '<td>'; if (@$msg['cidnum'] != '' || @$msg['cidname'] != '') { echo htmlEnt(@$msg['cidnum']); if (@$msg['cidname'] != '') { echo ' (', htmlEnt($msg['cidname']), ')'; } } else { echo '<i>', __('anonym'), '</i>'; } echo '</td>', "\n"; $dur = abs((int) @$msg['dur']); $dur_m = floor($dur / 60); $dur_s = (int) ($dur - $dur_m * 60); echo '<td class="r">', $dur_m, ':', str_pad($dur_s, 2, '0', STR_PAD_LEFT), '</td>', "\n";