本文整理汇总了PHP中gs_url函数的典型用法代码示例。如果您正苦于以下问题:PHP gs_url函数的具体用法?PHP gs_url怎么用?PHP gs_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gs_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} 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), '&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>
示例2: __
echo '</button>';
echo '<button type="reset" title="', __('rückgängig'), '" class="plain">';
echo '<img alt="', __('rückgä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'] ? '' : '&sudo=' . @$_SESSION['sudo_user']['name'];
echo '<a href="', gs_url($SECTION, $MODULE, null, 'edit=' . $r['id'] . '&name=' . rawUrlEncode($name) . '&number=' . rawUrlEncode($number) . '&page=' . $page), '" title="', __('bearbeiten'), '"><img alt="', __('bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a> ';
echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['id'] . '&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>
示例3: array
$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änger');
?>
</th>
<th style="width:20px;"><?php
echo __('Seiten');
示例4: __
} 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"';
}
?>
示例5: htmlEnt
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'] ."&page=". $page ."&phonenum=". $_SESSION["real_user"]["info"]["ext"]) ."\" title=\"". __('abspielen') ."\"><img alt=\"". __('abspielen') ."\" src=\"". GS_URL_PATH ."crystal-svg/16/app/kmix.png\" /></a> ";
echo "<a href=\"". gs_url($SECTION, $MODULE, null, "edit=". $r['id'] ."&page=".$page) ."\" title=\"". __('bearbeiten') ."\"><img alt=\"". __('bearbeiten') ."\" src=\"". GS_URL_PATH ."crystal-svg/16/act/edit.png\" /></a> ";
echo "<a href=\"". gs_url($SECTION, $MODULE, null, "delete=". $r['id'] ."&page=".$page) ."\" title=\"". __('lö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
示例6: __
<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'] . '&action=saveparcall&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>';
示例7: DATE_FORMAT
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) . '&dst=' . rawUrlEncode($dst) . '&dur=' . rawUrlEncode($dur) . '&stat=' . rawUrlEncode($stat) . '&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');
?>
示例8: round
$units = 'B';
}
echo ' (', 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), '>', 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
示例9: __
?>
').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ßwort vergessen');
?>
</a>
</div>
<?php
}
?>
<br />
<br style="clear:right" />
示例10: __
}
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 ' ', "\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> ';
echo '<a href="', gs_url($SECTION, $MODULE, null, 'delete=' . $r['extension']), '" title="', __('lö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">
示例11: gs_group_info_get
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&id=' . $group['id'] . '&page=' . $page), '"><img alt="', __('Bearbeiten'), '" title="', __('Bearbeiten'), '" src="', GS_URL_PATH, 'crystal-svg/16/act/edit.png" /></a>';
echo ' ';
echo '<a href="', gs_url($SECTION, $MODULE, null, 'action=delete&name=' . $group['name'] . '&page=' . $page), '" onclick="return confirm_delete();"><img alt="', __('Löschen'), '" title="', __('Lö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"> </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";
示例12: htmlEnt
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');
?>
示例13: abs
}
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&fld='. rawUrlEncode(@$msg['fld']) .'&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'] ? '' : '&sudo=' . @$_SESSION['sudo_user']['name'];
echo ' <a href="', GS_URL_PATH, 'srv/pb-dial.php?n=', htmlEnt(@$msg['cidnum']), $sudo_url, '" title="', __('wählen'), '"><img alt="', __('wählen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook.png" /></a>';
} else {
echo ' <img alt="', __('wählen'), '" src="', GS_URL_PATH, 'crystal-svg/16/app/yast_PhoneTTOffhook-cust-dis.png" />';
}
echo ' <a href="', gs_url($SECTION, $MODULE, null, 'action=del&fld=' . rawUrlEncode(@$msg['fld']) . '&file=' . rawUrlEncode(@$msg['file'])), '" title="', __('löschen'), '"><img alt="lö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>
示例14: __
?>
</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>
示例15: htmlEnt
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";
}
}
?>
</tbody>
</table>