Beispiel #1
0
<?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'] ? '' : '&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";
    }
}
?>
                                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)');
Beispiel #3
0
			<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";
Beispiel #4
0
<?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 '&nbsp;';
                }
                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 ' &nbsp; (', 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";