Example #1
0
} else {
    echo ' ';
}
?>
	</td>
</tr>
<tr>
	<td colspan="2" class="quickchars">
<?php 
$chars = array();
$chars['#'] = '';
for ($i = 65; $i <= 90; ++$i) {
    $chars[chr($i)] = chr($i);
}
foreach ($chars as $cd => $cs) {
    echo '<a href="', gs_url($SECTION, $MODULE), '&amp;name=', htmlEnt($cs), '">', htmlEnt($cd), '</a>', "\n";
}
?>
	</td>
</tr>
</tbody>
</table>

<table cellspacing="1" class="phonebook">
<thead>
<tr>
	<th style="width:270px;">
		<?php 
echo $number == '' ? '<span class="sort-col">' . __('Name') . '</span>' : __('Name');
?>
	</th>
Example #2
0
            echo '</button>';
            echo '<button type="reset" title="', __('r&uuml;ckg&auml;ngig'), '" class="plain">';
            echo '<img alt="', __('r&uuml;ckg&auml;ngig'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/reload.png" />';
            echo '</button>';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'page=' . $page), '" title="', __('abbrechen'), '"><img alt="', __('abbrechen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/cancel.png" /></a>';
            echo '</td>';
        } else {
            echo '<td>', htmlEnt($r['name']);
            echo '</td>', "\n";
            echo '<td>', htmlEnt($r['comment']);
            echo '</td>', "\n";
            echo '<td>', htmlEnt($r['number']), '</td>', "\n";
            echo '<td>';
            $sudo_url = @$_SESSION['sudo_user']['name'] == @$_SESSION['real_user']['name'] ? '' : '&amp;sudo=' . @$_SESSION['sudo_user']['name'];
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'edit=' . $r['id'] . '&amp;name=' . rawUrlEncode($name) . '&amp;number=' . rawUrlEncode($number) . '&amp;page=' . $page), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['id'] . '&amp;page=' . $page), '" title="', __('entfernen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
            echo '</td>';
        }
        echo '</tr>', "\n";
    }
}
?>


<tr>
<?php 
if ($edit_entry < 1) {
    ?>
	<td>
		<input type="text" name="sname" value="" size="20" maxlength="40" style="width:190px;" />
	</td>
Example #3
0
$recdate = array();
$jobid = array();
if (is_array($jobs_send)) {
    $jobs_send_count = count($jobs_send);
    foreach ($jobs_send as $key => $row) {
        $recdate[$key] = $row[32];
        $jobid[$key] = $row[9];
    }
    @array_multisort($recdate, SORT_DESC, $jobid, SORT_ASC, $jobs_send);
    unset($recdate);
    unset($jobid);
} else {
    $jobs_send_count = 0;
}
$num_pages = ceil($jobs_send_count / $per_page);
$mod_url = gs_url($SECTION, $MODULE, null, 'id=');
?>
	<th style="width:140px;"><?php 
echo __('Datum');
?>
</th>
	<th style="width:20px;"><?php 
echo __('Job');
?>
</th>
	<th style="width:20px;"><?php 
echo __('Empf&auml;nger');
?>
</th>
	<th style="width:20px;"><?php 
echo __('Seiten');
Example #4
0
} else {
    echo '<img alt="', __('weiter'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/forward-cust-dis.png" />', "\n";
}
?>
	</td>
</tr>
<tr>
	<td colspan="2" class="quickchars">
<?php 
$chars = array();
$chars['#'] = '';
for ($i = 65; $i <= 90; ++$i) {
    $chars[chr($i)] = chr($i);
}
foreach ($chars as $cd => $cs) {
    echo '<a href="', gs_url($SECTION, $MODULE, null, 'name=' . htmlEnt($cs)), '">', htmlEnt($cd), '</a>', "\n";
}
?>
	</td>
</tr>
</tbody>
</table>

<table cellspacing="1" class="phonebook">
<thead>
<tr>
	<th style="width:270px;"<?php 
if ($number == '') {
    echo ' class="sort-col"';
}
?>
Example #5
0
			echo "</td>\n";
		}
		else
		{
			echo "<td class=\"r\">". htmlEnt($r['id']) ."</td>\n";

			echo "<td>". htmlEnt($r['description']) ."</td>\n";

			echo "<td class=\"r\">". $r_length ."</td>\n";
			echo "<td class=\"r\">". $r_created ."</td>\n";

			echo "<td>\n";
			echo "<a href=\"". gs_url($SECTION, $MODULE, null, "playback=". $r['id'] ."&amp;page=". $page ."&amp;phonenum=". $_SESSION["real_user"]["info"]["ext"]) ."\" title=\"". __('abspielen') ."\"><img alt=\"". __('abspielen') ."\" src=\"". GS_URL_PATH ."crystal-svg/16/app/kmix.png\" /></a> &nbsp; ";
			echo "<a href=\"". gs_url($SECTION, $MODULE, null, "edit=". $r['id'] ."&amp;page=".$page) ."\" title=\"". __('bearbeiten') ."\"><img alt=\"". __('bearbeiten') ."\" src=\"". GS_URL_PATH ."crystal-svg/16/act/edit.png\" /></a> &nbsp; ";
			echo "<a href=\"". gs_url($SECTION, $MODULE, null, "delete=". $r['id'] ."&amp;page=".$page) ."\" title=\"". __('l&ouml;schen') ."\"><img alt=\"". __('entfernen') ."\" src=\"". GS_URL_PATH ."crystal-svg/16/act/editdelete.png\" /></a>";
			echo "</td>\n";
		}

		echo "</tr>\n";
	}
}

echo "</tbody>\n";

//--- ) table body
//------------

echo "</table>\n";

//--- ) table header
Example #6
0
<tbody>
<h2><?php 
echo __('Parallelruf');
?>
</h2>
<?php 
$rs = $DB->execute('SELECT * from `queue_cf_parallelcall` WHERE `_queue_id`=' . $queue_id);
$ncnt = 0;
while ($r = $rs->fetchRow()) {
    echo "<tr>\n";
    echo "<td>" . ++$ncnt . "</td>";
    echo "<td>";
    echo '<input type="text" name="number_' . $r['id'] . '" value="' . htmlEnt($r['number']) . '" size="61" maxlength="20"/>';
    echo "</td>";
    echo "<td>";
    echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['id'] . '&amp;action=saveparcall&amp;queue=' . $queue_ext), '">', '<img alt="', __('Entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" />', '</a>', "\n";
    echo "</td>";
    echo "</tr>\n";
}
?>
<tr>
	<td><?php 
echo __('Neu');
?>
:</td>
	<td>
		<input type="text" name="number_new" value="" size="61" maxlength="20"/>
	</td>
	<td>
<?php 
echo '<button type="submit" name="save_new" value="1" title="', __('Eintrag speichern'), '" class="plain"><img alt="', __('Speichern'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/filesave.png" /></button>';
Example #7
0
echo 'SELECT SQL_CALC_FOUND_ROWS
DATE_FORMAT(calldate,\'%d.%m.%Y %H:%i:%s\') as datum,clid,src,dst,duration,billsec,disposition
FROM `ast_cdr` '. $query_string;
*/
$rs = $CDR_DB->execute('DELETE FROM `ast_cdr` WHERE `dst`=\'h\'');
$rs = $CDR_DB->execute('SELECT SQL_CALC_FOUND_ROWS
	DATE_FORMAT(`calldate`, \'%d.%m.%Y %H:%i:%s\') `datum`, `clid`, `src`, `dst`, `duration`, `billsec`, `disposition`, `userfield`, `dcontext`
FROM `ast_cdr` ' . $query_string . '
ORDER BY `calldate` DESC
LIMIT ' . $page * (int) $per_page . ',' . (int) $per_page);
$num_total = @$CDR_DB->numFoundRows();
$num_pages = ceil($num_total / $per_page);
$sum_talktime = (int) @$CDR_DB->executeGetOne('SELECT SUM(`billsec`) FROM `ast_cdr` ' . $query_string);
$sum_calltime = (int) @$CDR_DB->executeGetOne('SELECT SUM(`duration`) FROM `ast_cdr` ' . $query_string);
// $num_total_not_null = (int) $DB->executeGetOne( 'SELECT COUNT(*) FROM `ast_cdr` WHERE `billsec` > 0');
$mod_url = gs_url($SECTION, $MODULE, null, 'src=' . rawUrlEncode($src) . '&amp;dst=' . rawUrlEncode($dst) . '&amp;dur=' . rawUrlEncode($dur) . '&amp;stat=' . rawUrlEncode($stat) . '&amp;period=' . rawUrlEncode($period));
?>

<form method="get" action="<?php 
echo GS_URL_PATH;
?>
">
<?php 
echo gs_form_hidden($SECTION, $MODULE);
?>
<table cellspacing="1" class="phonebook">
<thead>
<tr>
	<th style="width:140px;"><?php 
echo __('Zeitraum');
?>
Example #8
0
                        $units = 'B';
                    }
                    echo ' &nbsp; (', round($download_size / $factor), ' / ', round($upgrade_size / $factor), ' ', $units, ')</p>', "\n";
                    echo '<pre>';
                    $chars_total = 60;
                    $chars_done = floor($download_size / $upgrade_size * $chars_total);
                    echo '|', str_repeat('=', $chars_done), '&gt;', str_repeat(' ', $chars_total - $chars_done), '|';
                    echo '</pre><br />', "\n";
                }
            }
        }
    }
    echo '<br /><a href="', gs_url($SECTION, $MODULE), '"><button type="button">', 'Anzeige aktualisieren', '</button></a><br />', "\n";
    echo '<br /><a href="', gs_url($SECTION, $MODULE, null, 'action=abort-download'), '"><button type="button">', 'Download abbrechen', '</button></a><br />', "\n";
    echo '<script type="text/javascript">', "\n";
    echo 'window.setTimeout("try{ document.location.href = \'', gs_url($SECTION, $MODULE), '\'; }catch(e){}", 10000);', "\n";
    echo '</script>', "\n";
    return;
}
# downloaded upgrade file available?
#
if (file_exists($gpbx_userdata . 'upgrades/dl/download') && file_exists($gpbx_userdata . 'upgrades/upgrade-info')) {
    echo '<p>', 'Ein Upgrade wurde heruntergeladen.', '</p>', "\n";
    $upgrade_info = @gs_file_get_contents($gpbx_userdata . 'upgrades/upgrade-info');
    /*$upgrade_info = '
    gpbx_upgrade_file      = http%3A%2F%2Fwww.amooma.de%2Fgpbx-upgrade%2Fimage.img
    gpbx_upgrade_size      = 260000000
    gpbx_upgrade_req_size  = 550000000
    gpbx_upgrade_cs_md5    = 50bd740c69e63abc6f83310113c95c2f
    gpbx_upgrade_version   = 2
    gpbx_upgrade_descr     = Ganz+viele+Verbesserungen%21
Example #9
0
        ?>
').focus(); }catch(e){}
/*]]>*/</script>
<?php 
    }
    ?>

<br />
<div style="text-align:right;">
	<input type="submit" value="<?php 
    echo __('Einloggen');
    ?>
" />
</div>
</form>

</div>
<a href="<?php 
    echo gs_url($SECTION, $MODULE, null, 'login_action=forgotpwd');
    ?>
" style="font-size:0.95em;"><?php 
    echo __('Pa&szlig;wort vergessen');
    ?>
</a>

</div>
<?php 
}
?>
<br />
<br style="clear:right" />
Example #10
0
            }
            echo '</select></td>', "\n";
            echo '<td>', "\n";
            echo '<button type="submit" title="', __('Speichern'), '" class="plain">';
            echo '<img alt="', __('Speichern'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/filesave.png" />';
            echo '</button>', "\n";
            echo '&nbsp;', "\n";
            echo '<a href="', gs_url($SECTION, $MODULE), '"><button type="button" title="', __('Abbrechen'), '" class="plain">';
            echo '<img alt="', __('Abbrechen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/cancel.png" />';
            echo '</button></a>', "\n";
            echo '</td>', "\n";
        } else {
            echo '<td class="c">', $states[$r['state']], '</td>', "\n";
            echo '<td>', "\n";
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'edit=' . $r['extension']), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['extension']), '" title="', __('l&ouml;schen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
            echo '</td>', "\n";
        }
        echo '</tr>', "\n";
    }
}
?>

<?php 
if (!$edit) {
    echo '<tr class="', ++$i % 2 ? 'odd' : 'even', '">', "\n";
    ?>
		<td class="r">
			<input type="text" name="save" value="" size="10" maxlength="10" />
		</td>
		<td class="c">
Example #11
0
         continue;
     }
     $groups_same_type = gs_group_info_get(false, $group['type']);
     $group_includes_ids = gs_group_includes_get(array($group['id']), true, true);
     $group_includes = gs_group_info_get(array_diff($group_includes_ids, array($group['id'])));
     echo '<tr class="', $i % 2 === 0 ? 'odd' : 'even', '">', "\n";
     echo '<td class="l nobr">';
     echo $group['name'], '</td>', "\n";
     echo '<td>', $group['title'], '</td>', "\n";
     echo '<td>', $group['type'], '</td>', "\n";
     echo '<td>', count($group_includes_ids), '</td>', "\n";
     echo '<td class="r">', count(gs_group_members_get(array($group['id']), false)), ' / ', count(gs_group_members_get(array($group['id']))), '</td>', "\n";
     echo '<td class="r">', "\n";
     echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;id=' . $group['id'] . '&amp;page=' . $page), '"><img alt="', __('Bearbeiten'), '" title="', __('Bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a>';
     echo '&nbsp;&nbsp;';
     echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=delete&amp;name=' . $group['name'] . '&amp;page=' . $page), '" onclick="return confirm_delete();"><img alt="', __('L&ouml;schen'), '" title="', __('L&ouml;schen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
     echo '</td>', "\n";
     echo '</tr>', "\n";
     $i++;
 }
 echo '<tr>', "\n";
 echo '<td colspan="5" class="transp">&nbsp;</td>', "\n";
 echo '<td class="transp r">', "\n";
 //	echo '<button type="submit" class="plain" title="', __('Speichern') ,'"><img alt="', __('Speichern') ,'" src="', GS_URL_PATH ,'crystal-svg/16/act/filesave.png" /></button>';
 echo '</td>', "\n";
 echo '</tr>', "\n";
 $i = 0;
 echo '<form method="post" action="' . GS_URL_PATH . '">', "\n";
 echo gs_form_hidden($SECTION, $MODULE);
 echo '<input type="hidden" name="action" value="add" />', "\n";
 echo '<tr class="', $i % 2 === 0 ? 'odd' : 'even', '">', "\n";
Example #12
0
    echo '<i>- ', htmlEnt(__('keine Kollegen')), ' -</i><br />', "\n";
    return;
}
$action = @$_REQUEST['action'];
if (!in_array($action, array('fullscreenoff', 'fullscreenon'), true)) {
    $action = 'fullscreenoff';
}
?>

<div id="chart">

<?php 
if ($action === 'fullscreenon') {
    echo '<a id="chart-fullscreen-toggle" class="fr" style="cursor:pointer; margin:0 1px 1px 0;" href="', gs_url($SECTION, $MODULE, null, 'action=fullscreenoff') . '" title="', __('Vollbild'), '"><img alt="', __('Vollbild'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/window_fullscreen.png" /></a>';
} else {
    echo '<a id="chart-fullscreen-toggle" class="fr" style="cursor:pointer; margin:0 1px 1px 0;" href="', gs_url($SECTION, $MODULE, null, 'action=fullscreenon') . '" title="', __('Vollbild'), '"><img alt="', __('Vollbild'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/window_fullscreen.png" /></a>';
}
?>
<br style="clear:right;" />


<table cellspacing="1" class="phonebook">
<thead>
<tr>
	<th style="width:60px;"><?php 
echo __('Nst.');
?>
</th>
	<th style="width:190px;"><?php 
echo __('Name');
?>
Example #13
0
                }
                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";
                echo '<td class="r">';
                //echo ' <a href="', gs_url($SECTION, $MODULE, null, 'action=play&amp;fld='. rawUrlEncode(@$msg['fld']) .'&amp;file='. rawUrlEncode(@$msg['file'])), '" title="', __('abspielen'), '"><img alt="', __('abspielen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/kmix.png" /></a>';
                echo ' <button class="submit plain" name="play" value="', rawUrlEncode(@$msg['fld'] . '--' . @$msg['file']), '" title="', __('abspielen'), '"><img alt="', __('abspielen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/kmix.png" /></button>';
                if (@$msg['cidnum'] != '') {
                    $sudo_url = @$_SESSION['sudo_user']['name'] == @$_SESSION['real_user']['name'] ? '' : '&amp;sudo=' . @$_SESSION['sudo_user']['name'];
                    echo ' &nbsp; <a href="', GS_URL_PATH, 'srv/pb-dial.php?n=', htmlEnt(@$msg['cidnum']), $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; <img alt="', __('w&auml;hlen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook-cust-dis.png" />';
                }
                echo ' &nbsp;&nbsp; <a href="', gs_url($SECTION, $MODULE, null, 'action=del&amp;fld=' . rawUrlEncode(@$msg['fld']) . '&amp;file=' . rawUrlEncode(@$msg['file'])), '" title="', __('l&ouml;schen'), '"><img alt="l&ouml;schen" src="', GS_URL_PATH, 'img/trash.gif" /></a>';
                echo '</td>', "\n";
                echo '</tr>', "\n";
            }
        }
        ?>
<tr>
	<td colspan="5" class="transp" style="height:0.8em;"></td>
</tr>
<?php 
    }
}
?>
</tbody>
</table>
</form>
Example #14
0
?>
</th>
	<th style="width:20px;"></th>
</tr>
</thead>
<tbody>

<?php 
if (count($enumbers) < 1) {
    echo '<tr><td><i>- ', __('keine'), ' -</i></td><td></td></tr>';
} else {
    foreach ($enumbers as $enumber) {
        echo '<tr>';
        echo '<td>', htmlEnt($enumber), '</td>';
        echo '<td>';
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . urlEncode($enumber)), '" title="', __('entfernen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
        echo '</td>';
        echo '</tr>', "\n";
    }
}
echo '<tr>';
echo '<td>';
echo '<input type="text" name="add" value="" size="20" maxlength="30" />';
echo '</td>';
echo '<td>';
echo '<button type="submit" title="', __('Eintrag speichern'), '" class="plain"><img alt="', __('Speichern'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/filesave.png" /></button>';
echo '</td>';
echo '</tr>';
?>

</tbody>
Example #15
0
        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";
    }
}
?>

</tbody>
</table>

Example #16
0
            echo '</form>', "\n";
        } else {
            echo '<td>', htmlEnt($r['comment']), '</td>', "\n";
            echo '<td>', htmlEnt($r['host']), '</td>', "\n";
            @ob_flush();
            @flush();
            $hostname = _getHostByAddr_timeout($r['host'], 2, true);
            echo '<td>(', empty($hostname) ? '?' : htmlEnt($hostname), ')</td>', "\n";
            echo '<td>', htmlEnt($r['hp_route_prefix']), '</td>', "\n";
            echo '<td>', htmlEnt(array_key_exists($r['hp_api'], $host_apis) ? $host_apis[$r['hp_api']] : $r['hp_api']), '</td>', "\n";
            echo '<td>', htmlEnt($r['hp_sip_proxy_from_wan']), '</td>', "\n";
            echo '<td>', htmlEnt($r['hp_sip_server_from_wan']), '</td>', "\n";
            echo '<td class="r">', $r['group_id'], '</td>', "\n";
            echo '<td>';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'edit=' . $r['id'] . '&amp;page=' . $page . '&amp;ipaddr=' . urlEncode($search_ip) . '&amp;number=' . urlEncode($search_number)), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['id'] . '&amp;page=' . $page . '&amp;ipaddr=' . urlEncode($search_ip) . '&amp;number=' . urlEncode($search_number)), '" title="', __('l&ouml;schen'), '" onclick="return confirm_delete();"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
            echo '</td>', "\n";
        }
        echo '</tr>', "\n";
    }
}
?>
<tr>
<?php 
if (!$edit_host) {
    echo '<form method="post" action="', GS_URL_PATH, '">', "\n";
    echo gs_form_hidden($SECTION, $MODULE), "\n";
    ?>
	<td>
		<input type="text" name="comment" value="" size="20" maxlength="45" style="width:95%;" />
	</td>
 //echo '<a href="'. GS_URL_PATH .'?s='. $sectname .'" class="'. (($sect_active) ? 'active' : '') .'">'. $sectinfo['title'] .'</a>', "\n";
 echo '<a href="', gs_url($sectname, ''), '" class="', $sect_active ? 'active' : '', '">';
 if (@$sectinfo['icon']) {
     echo '<img alt=" " src="', GS_URL_PATH, str_replace('%s', '16', $sectinfo['icon']), '" /> ';
 }
 echo $sectinfo['title'], '</a>', "\n";
 if (count($sectinfo['sub']) > 1) {
     echo '<ul class="menu">', "\n";
     foreach ($sectinfo['sub'] as $modname => $modinfo) {
         if (array_key_exists('inmenu', $modinfo) && !$modinfo['inmenu']) {
             continue;
         }
         if (array_key_exists('id', $modinfo) && (!in_array($modinfo['id'], $display_modules) && !in_array($sectname, array('home', 'login', 'logout'), true))) {
             continue;
         } else {
             echo '<li class="leaf"><a href="', gs_url($sectname, $modname), '" class="';
         }
         if ($modname == $MODULE) {
             echo 'active';
         }
         echo '"';
         /*
         if (array_key_exists('boi_url', $modinfo)) {
         	echo ' onclick="try{ return gs_boi_menu_sc(\'', htmlEnt($modinfo['boi_url']) ,'\'); }catch(e){}"';
         }
         */
         echo '><img alt=" " src="', GS_URL_PATH, 'img/tree.gif" />', $modinfo['title'], '</a></li>', "\n";
     }
     echo '</ul>', "\n";
 }
 echo '</li>', "\n";
Example #18
0
     echo '</td>', "\n";
     echo '<td>';
     echo '<input type="text" name="r_', $id, '_descr" id="ipt-r_', $id, '_descr" value="', htmlEnt(trim($route['descr'])), '" size="25" maxlength="60" style="width:97%;" />';
     echo '</td>', "\n";
     echo '<td>';
     if ($i > 0) {
         echo '<a href="', gs_url($SECTION, $MODULE, null, 'ggid=' . $ggid . '&amp;action=move-up&amp;id=' . $route['id']), '"><img alt="&uarr;" src="', GS_URL_PATH, 'img/move_up.gif" /></a>';
     } else {
         echo '<img alt="&uarr;" src="', GS_URL_PATH, 'img/move_up_d.gif" />';
     }
     if ($i < $rs->numRows() - 1) {
         echo '&thinsp;<a href="', gs_url($SECTION, $MODULE, null, 'ggid=' . $ggid . '&amp;action=move-down&amp;id=' . $route['id']), '"><img alt="&darr;" src="', GS_URL_PATH, 'img/move_down.gif" /></a>';
     } else {
         echo '&thinsp;<img alt="&darr;" src="', GS_URL_PATH, 'img/move_down_d.gif" />';
     }
     echo ' &nbsp; <a href="', gs_url($SECTION, $MODULE, null, 'ggid=' . $ggid . '&amp;action=del&amp;id=' . $route['id']), '"><img alt="-;" src="', GS_URL_PATH, 'img/minus.gif" /></a>';
     echo '</td>', "\n";
     echo '</tr>', "\n";
     ++$i;
 }
 echo '<tr>', "\n";
 echo '<td colspan="6" class="transp">&nbsp;</td>', "\n";
 echo '<td class="transp">';
 echo '<input type="submit" value="', __('Speichern'), '" />';
 echo '</td>', "\n";
 echo '</tr>', "\n";
 $id = 0;
 echo '<tr class="', $i % 2 ? 'even' : 'odd', '">', "\n";
 echo '<td>';
 echo '<input type="checkbox" name="r_', $id, '_active" value="1" />';
 echo '</td>', "\n";
    }
}
$clir = gs_clir_get($_SESSION['sudo_user']['name']);
if (isGsError($clir)) {
    echo __('Fehler beim Abfragen.'), '<br />', $clir->getMsg();
    die;
}
$callwaiting = gs_callwaiting_get($_SESSION['sudo_user']['name']);
if (isGsError($callwaiting)) {
    echo __('Fehler beim Abfragen.'), '<br />', $callwaiting->getMsg();
    die;
}
?>

<form method="post" action="<?php 
echo gs_url($SECTION, $MODULE);
?>
">
<input type="hidden" name="action" value="save" />

<table cellspacing="1">
<thead>
<tr>
	<th colspan="2"><?php 
echo __('Dienstmerkmale');
?>
</th>
	<th class="quickchars">&nbsp;</th>
</tr>
</thead>
<tbody>
        array_multisort($sort_key, SORT_ASC, SORT_STRING, $groups);
        if (isGsError($groups)) {
            echo '<tr><td colspan="5">', $groups->getMsg(), '</td></tr>';
        } else {
            $i = 1;
            foreach ($groups as $group) {
                if ($i > $per_page * ($page + 1) || $i < $per_page * $page + 1) {
                    $i++;
                    continue;
                }
                $groups_same_type = gs_group_info_get(false, $group['type']);
                $group_includes_ids = gs_group_includes_get(array($group['id']), true, true);
                $group_includes = gs_group_info_get(array_diff($group_includes_ids, array($group['id'])));
                echo '<tr class="', $i % 2 === 0 ? 'odd' : 'even', '">', "\n";
                echo '<td class="l nobr">';
                echo $group['name'], '</td>', "\n";
                echo '<td>', $group['title'], '</td>', "\n";
                echo '<td class="r">', count(gs_group_members_get(array($group['id']))), ' / ', $num_sections + $num_modules, '</td>', "\n";
                echo '<td class="r">', "\n";
                echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;id=' . $group['id'] . '&amp;page=' . $page), '"><img alt="', __('Bearbeiten'), '" title="', __('Bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a>';
                echo '</td>', "\n";
                echo '</tr>', "\n";
                $i++;
            }
        }
        ?>
</tbody>
</table>
<?php 
    }
}
Example #21
0
	<th style="width:20px;"></th>
</tr>
</thead>
<tbody>

<?php 
    $rs = $DB->execute('SELECT `cid_int`, `cid_ext` FROM `gate_cids` WHERE `grp_id`=' . $ggid);
    if (@$DB->numFoundRows() < 1) {
        //echo '<tr><td><i>- ', __('keine'), ' -</i></td><td></td><td></td></tr>';
    } else {
        while ($cid_map = $rs->fetchRow()) {
            echo '<tr>';
            echo '<td>', htmlEnt($cid_map['cid_int']), '</td>';
            echo '<td>', htmlEnt($cid_map['cid_ext']), '</td>';
            echo '<td>';
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=gdelcid&amp;gg-id=' . $ggid . '&amp;cid-int=' . urlEncode($cid_map['cid_int'])), '" title="', __('entfernen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
            echo '</td>';
            echo '</tr>', "\n";
        }
    }
    echo '<tr>';
    echo '<td>';
    echo '<input type="text" name="cid-int" value="" size="20" maxlength="30" />';
    echo '</td>';
    echo '<td>';
    echo '<input type="text" name="cid-ext" value="" size="20" maxlength="30" />';
    echo '</td>';
    echo '<td>';
    echo '<button type="submit" title="', __('Eintrag speichern'), '" class="plain"><img alt="', __('Speichern'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/filesave.png" /></button>';
    echo '</td>';
    echo '</tr>';
Example #22
0
<?php 
    $activeids = array();
    if (@$rs) {
        $i = 0;
        $timeout = 0;
        while ($r = $rs->fetchRow()) {
            $activeids[] = $r['user_id'];
            echo '<tr class="', ++$i % 2 ? 'odd' : 'even', '">', "\n";
            echo '<td>', htmlEnt($r['user']), '</td>', "\n";
            echo '<td>', htmlEnt($r['lastname']);
            echo ', ', htmlEnt($r['firstname']);
            echo '</td>', "\n";
            echo '<td>', htmlEnt($r['timeout']), '</td>', "\n";
            $timeout = $r['timeout'];
            echo '<td>', "\n";
            echo '<a href="', gs_url($SECTION, $MODULE, null, 'hudelete=' . $r['user'] . '&amp;group=' . $group . '&amp;strategy=' . $r['strategy']), '" title="', __('l&ouml;schen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
            echo '</td>', "\n";
            echo '</tr>', "\n";
        }
    }
    if (!$edit) {
        echo '<tr class="', ++$i % 2 ? 'odd' : 'even', '">', "\n";
        echo '<td>&nbsp;</td>';
        echo '<td><select name="user">';
        if (count($activeids) > 0) {
            $qlimit = 'AND (`id` NOT IN (' . join(',', $activeids) . ')) ';
        } else {
            $qlimit = '';
        }
        $query = 'SELECT `id`, `user`, `lastname`, `firstname`
FROM `users`
    $i = 0;
    while ($r = $rs->fetchRow()) {
        echo '<tr class="', ++$i % 2 ? 'odd' : 'even', '">', "\n";
        echo '<td>', htmlEnt($r['name']), '</td>', "\n";
        echo '<td>', htmlEnt($r['_title']), '</td>', "\n";
        echo '<td class="r">', $r['maxlen'], '</td>', "\n";
        echo '<td>', $r['_host_id'], ' (', @$hosts[$r['_host_id']], ')</td>', "\n";
        echo '<td class="">', "\n";
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;qid=' . $r['_id'] . '&amp;page=' . $page), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=del&amp;qid=' . $r['_id'] . '&amp;qname=' . $r['name'] . '&amp;page=' . $page), '" title="', __('l&ouml;schen'), '" onclick="return confirm_delete();"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
        echo '</td>', "\n";
        echo '</tr>', "\n";
    }
    echo '<tr class="', ++$i % 2 ? 'odd' : 'even', '">', "\n";
    echo '<td colspan="4" class="transp">&nbsp;</td>', "\n";
    echo '<td class="transp">', "\n";
    echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;qid=0&amp;page=' . $page), '" title="', __('neue Warteschlange anlegen'), '"><img alt="', __('hinzuf&uuml;gen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
    echo '</td>', "\n";
    echo '</tr>', "\n";
    ?>

</tbody>
</table>

<?php 
}
#####################################################################
#                             view list }
#####################################################################
echo '<br />', "\n";
echo '<p class="text"><img alt=" " src="', GS_URL_PATH, 'crystal-svg/16/act/info.png" /> ', __('Es kann etwa 1 Minute dauern bis &Auml;nderungen aktiv werden.'), '</p>', "\n";
Example #24
0
    ?>
" src="<?php 
    echo GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook.png';
    ?>
" style="margin:0 5px;" />
			</button>
			</form>
		</div>

		<div class="th" style="padding:0.35em 0.5em; margin-bottom:2px;">
			<img alt=" " src="<?php 
    echo GS_URL_PATH, 'crystal-svg/16/app/display.png';
    ?>
" />&nbsp;
			<a href="<?php 
    echo gs_url('monitor', 'peers');
    ?>
"><?php 
    echo __('Pr&auml;senz');
    ?>
</a>
		</div>
		<div class="td" style="padding:0.6em;">
			<form method="get" action="<?php 
    echo GS_URL_PATH;
    ?>
">
			<?php 
    echo gs_form_hidden($SECTION, $MODULE);
    ?>
			<input type="hidden" name="action" value="setcomment" />
Example #25
0
	</td>
	<td>
		<input type="text" name="ip" value="<?php 
    echo $ip_addr;
    ?>
" size="15" maxlength="15" />
	</td>
	<td rowspan="2">
<?php 
    if ($page > 0) {
        echo '<a href="', gs_url($SECTION, $MODULE, null, $search_url . '&amp;page=' . ($page - 1)), '" title="', __('zur&uuml;ckbl&auml;ttern'), '" id="arr-prev">', '<img alt="', __('zur&uuml;ck'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/back-cust.png" />', '</a>', "\n";
    } else {
        echo '<img alt="', __('zur&uuml;ck'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/back-cust-dis.png" />', "\n";
    }
    if ($page < $num_pages - 1) {
        echo '<a href="', gs_url($SECTION, $MODULE, null, $search_url . '&amp;page=' . ($page + 1)), '" title="', __('weiterbl&auml;ttern'), '" id="arr-next">', '<img alt="', __('weiter'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/forward-cust.png" />', '</a>', "\n";
    } else {
        echo '<img alt="', __('weiter'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/forward-cust-dis.png" />', "\n";
    }
    ?>
	</td>
</tr>
<tr>
	<th><?php 
    echo __('Anlage');
    ?>
</th>
	<th><?php 
    echo __('Telefon-Typ');
    ?>
</th>
Example #26
0
     echo '<td>', "\n";
     echo '<select name="gw-', $gw['id'], '-type">', "\n";
     foreach ($gw_types as $type => $type_v) {
         echo '<option value="', $type, '"', $type == $gw['type'] ? ' selected="selected"' : '', '>', $type_v, '</option>', "\n";
     }
     echo '</select>', "\n";
     echo '</td>', "\n";
     if (subStr($gw['name'], 0, 3) === 'gw_') {
         $gw['name'] = subStr($gw['name'], 3);
     }
     echo '<td><tt>gw_</tt><input type="text" name="gw-', $gw['id'], '-name" value="', htmlEnt($gw['name']), '" size="20" maxlength="20" style="font-family:monospace;" /></td>', "\n";
     echo '<td><input type="text" name="gw-', $gw['id'], '-title" value="', htmlEnt($gw['title']), '" size="30" maxlength="50" /></td>', "\n";
     echo '<td><input type="checkbox" name="gw-', $gw['id'], '-allow_out" value="1" ', $gw['allow_out'] ? 'checked="checked" ' : '', '/></td>', "\n";
     echo '<td><input type="text" name="gw-', $gw['id'], '-dialstr" value="', htmlEnt($gw['dialstr']), '" size="30" maxlength="50" style="font-family:monospace;" /></td>', "\n";
     echo '<td>', "\n";
     echo '<a href="', gs_url($SECTION, $MODULE, null, 'ggid=' . $ggid . '&amp;action=gwdel&amp;gwid=' . $gw['id']), '" title="', __('l&ouml;schen'), '"><img alt="', __('l&ouml;schen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
     echo '</td>', "\n";
     echo '</tr>', "\n";
     ++$i;
 }
 $rs = $DB->execute('SELECT `id`, `type`, `name`, `title`, `allow_out`, `dialstr` FROM `gates` WHERE `grp_id`=' . $ggid . ' ORDER BY `title`');
 $gw = array('id' => 0, 'type' => '', 'name' => '', 'title' => '', 'allow_out' => 0, 'dialstr' => '');
 echo '<tr class="', $i % 2 ? 'even' : 'odd', '">', "\n";
 echo '<td>', "\n";
 echo '<select name="gw-', $gw['id'], '-type">', "\n";
 echo '<option value="" selected="selected"></option>', "\n";
 foreach ($gw_types as $type => $type_v) {
     echo '<option value="', $type, '"', $type == $gw['type'] ? ' selected="selected"' : '', '>', $type_v, '</option>', "\n";
 }
 echo '</select>', "\n";
 echo '</td>', "\n";
        echo '<tr><td>', $pen_map['name'], ' ', $pen_map['_title'], '</td>';
        echo '<td>';
        echo '<select name="penalty">';
        foreach ($pen_avail as $pen) {
            if ($pen_map['penalty'] == $pen) {
                echo '<option value="', $pen, '" selected="selected">';
                echo $pen, '</option>';
            } else {
                echo '<option value="', $pen, '">', $pen, ' </option>';
            }
        }
        echo '</select>';
        echo '</td>';
        echo '<td class="l">';
        echo '<button type="submit" title="', __('Speichern'), '" class="plain">';
        echo '<img alt="', __('Speichern'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/filesave.png" /></button>', "\n";
        echo '<input type="hidden" name="action" value="setpenalty" />', "\n";
        echo '<input type="hidden" name="queue_id" value="', $pen_map['_queue_id'], '" />', "\n";
        echo '<input type="hidden" name="edit" value="', rawUrlEncode($edit_user), '">', "\n";
        echo '<input type="hidden" name="name" value="', htmlEnt($name), '" />', "\n";
        echo '<input type="hidden" name="number" value="', htmlEnt($number), '" />', "\n";
        echo '<input type="hidden" name="page" value="', (int) $page, '" />', "\n";
        echo '<input type="hidden" name="sort" value="', $sort, '" />', "\n";
        echo '<input type="hidden" name="sortorder" value="', $sortorder, '" />', "\n";
        echo '</form>';
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'queue_id=' . $pen_map['_queue_id'] . '&amp;edit=' . rawUrlEncode($edit_user) . '&amp;action=delpenalty' . '&amp;name=' . rawUrlEncode($name)), '" title="', __('entfernen'), '"><img alt="', __('entfernen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
        echo '</td>';
        echo '</tr>';
    }
    echo '</tbody></table>';
}
Example #28
0
	echo '<input type="hidden" name="phone_type" value="', $phone_type ,'" />' ,"\n";
	
	echo '<div class="fr">' ,"\n";
	echo '<input type="checkbox" name="delete_confirm" id="ipt-delete_confirm" value="1" />';
	echo '<label for="ipt-delete_confirm">', __('Tastenbelegungs-Profil l&ouml;schen') ,'</label>' ,"\n";
	echo '<button type="submit" title="', __('L&ouml;schen') ,'">' ,"\n";
	echo '<img alt=" " src="', GS_URL_PATH ,'crystal-svg/16/act/editdelete.png" />' ,"\n";
	echo __('L&ouml;schen') ,"\n";
	echo '</button>' ,"\n";
	echo '</div>' ,"\n";
	
	echo '</form>' ,"\n";
}
?>

<form method="post" action="<?php echo gs_url($SECTION, $MODULE); ?>">
<?php echo gs_form_hidden($SECTION, $MODULE); ?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="profile_id" value="<?php echo $profile_id; ?>" />
<input type="hidden" name="phone_type" value="<?php echo $phone_type; ?>" />

<?php if (! $is_user_profile) { ?>
<table cellspacing="1">
<tbody>
<tr>
	<th><?php echo __('Profil-Bezeichnung'); ?>:</th>
	<td><input type="text" name="profile_title" value="<?php echo htmlEnt($profile_info['title']); ?>" size="30" maxlength="50" /></td>
</tr>
</tbody>
</table>
<?php } ?>
        	echo '<img alt=" " src="', GS_URL_PATH ,'crystal-svg/16/act/greenled.png" />';
        else
        	echo '&nbsp;';
        echo '</td>',"\n";
        */
        echo '<td>', "\n";
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;gw-id=' . $gw['id']), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
        echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=del&amp;gw-id=' . $gw['id']), '" title="', __('l&ouml;schen'), '" onclick="return confirm_delete();"><img alt="', __('l&ouml;schen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/editdelete.png" /></a>';
        echo '</td>', "\n";
        echo '</tr>', "\n";
        ++$i;
    }
    echo '<tr class="', $i % 2 === 0 ? 'odd' : 'even', '">', "\n";
    echo '<td colspan="3" class="transp">&nbsp;</td>', "\n";
    echo '<td class="transp">', "\n";
    echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=edit&amp;gw-id=0'), '" title="', __('hinzuf&uuml;gen'), '"><img alt="', __('hinzuf&uuml;gen'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> &nbsp; ';
    echo '</td>', "\n";
    echo '</tr>', "\n";
    ?>
</tbody>
</table>

<br />
<br />
<?php 
    echo __('Registrierungs-Status');
    echo ' (', __('lokaler Asterisk'), ')';
    ?>
<br />
<div style="font-family:monospace; white-space:pre; background:#eee; border:1px solid #e9e9e9; padding:1px 3px;"><?php 
    $err = 0;
Example #30
0
		<input type="text" name="ip" value="<?php echo $ip_addr; ?>" size="15" maxlength="15" />
	</td>
	<td rowspan="2">
<?php
	if ($page > 0) {
		echo
		'<a href="', gs_url($SECTION, $MODULE, null, $search_url .'&amp;page='.($page-1)), '" title="', __('zur&uuml;ckbl&auml;ttern'), '" id="arr-prev">',
		'<img alt="', __('zur&uuml;ck'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/back-cust.png" />',
		'</a>', "\n";
	} else {
		echo
		'<img alt="', __('zur&uuml;ck'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/back-cust-dis.png" />', "\n";
	}
	if ($page < $num_pages-1) {
		echo
		'<a href="', gs_url($SECTION, $MODULE, null, $search_url .'&amp;page='.($page+1)), '" title="', __('weiterbl&auml;ttern'), '" id="arr-next">',
		'<img alt="', __('weiter'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/forward-cust.png" />',
		'</a>', "\n";
	} else {
		echo
		'<img alt="', __('weiter'), '" src="', GS_URL_PATH, 'crystal-svg/32/act/forward-cust-dis.png" />', "\n";
	}
?>
	</td>
</tr>
<tr>
	<th><?php echo __('Anlage'); ?></th>
	<th><?php echo __('Telefon-Typ'); ?></th>
	<td class="transp">&nbsp;</td>
</tr>
<tr>