本文整理汇总了PHP中helper::win方法的典型用法代码示例。如果您正苦于以下问题:PHP helper::win方法的具体用法?PHP helper::win怎么用?PHP helper::win使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类helper
的用法示例。
在下文中一共展示了helper::win方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
PHPOS Web Operating system
MIT License
(c) 2013 Marcin Szczyglinski
szczyglis83@gmail.com
GitHUB: https://github.com/phpos/
File version: 1.0.0, 2013.10.08
**********************************
*/
if (!defined('PHPOS')) {
die;
}
$tray['id'] = 'messenger';
$tray['access_level'] = 1;
$tray['version'] = 1.0;
$tray['load_only_with_app'] = false;
$tray['app_id'] = 'messenger';
$tray['use_custom_icons'] = true;
$tray['use_lang'] = true;
$tmp_context_menu = array();
$tray['icons'] = array(ICONS . 'tray/messager.png');
$tray['title'] = txt('messager_tray_tip_no_messages');
$tmp_context_menu[] = 'app::<b>' . txt('tray_messager_open') . '</b>::' . helper::win(txt('app_messager'), 'app', 'app_id:messenger') . '::letter';
$tray['context_menu'] = $tmp_context_menu;
$msg = new phpos_messages();
if ($msg->have_unreaded()) {
$how_many_new = $msg->count_unreaded();
$tray['icons'] = array(ICONS . 'tray/messager_alert.png');
$tray['title'] = txt('messager_tray_tip_new_messages') . ': ' . $how_many_new;
}
示例2: phpos_messages
<?php
$msg = new phpos_messages();
if ($msg->have_unreaded()) {
$msg_message = txt('messager_tray_got_now_messages') . '<br/><a href="javascript:open_msg()" ><span style="font-size:14px"><b>' . txt('messager_tray_click_to_read') . '</b></span></a>';
$link = helper::win(txt('updater_tray_title'), 'app', 'app_id:messenger');
echo '
<script>
function open_msg() {
' . $link . '
}
</script>';
msg::messenger($msg_message);
}
if ($updater_message !== null) {
$link = helper::win(txt('updater_tray_title'), 'app', 'app_id:updater');
echo '
<script>
function updater() {
' . $link . '
}
</script>';
msg::updater($updater_message);
}
?>
<script>
$(document).ready(function() {
$('#phpos_desktop_logo').delay(1500).show('fast');
$('#phpos_desktop_logo').fadeIn('slow').delay(5000).fadeOut('slow');
示例3: txt
*/
if (!defined('PHPOS')) {
die;
}
$tray['id'] = 'updater';
$tray['access_level'] = 2;
$tray['version'] = 1.0;
$tray['load_only_with_app'] = false;
$tray['app_id'] = null;
$tray['use_custom_icons'] = true;
$tray['use_lang'] = true;
$tray['title'] = txt('updater_tray_title');
$tmp_context_menu = array();
$www_link = 'window.open(\'' . PHPOS_ONLINE . '?from_updater=1&lang=' . myconfig('lang') . '\', \'_blank\'); return false;';
$github_link = 'window.open(\'' . PHPOS_GITHUB . '\', \'_blank\'); return false;';
$tmp_context_menu[] = 'upd1::<b>' . txt('updater_tray_launch_updater') . '</b>::' . helper::win(txt('updater_tray_title'), 'app', 'app_id:updater') . '::time';
$tmp_context_menu[] = '---';
$tmp_context_menu[] = 'www::' . txt('updater_tray_visit_www') . '::' . $www_link . '::arrow_back';
$tmp_context_menu[] = 'git::' . txt('updater_tray_visit_git') . '::' . $github_link . '::arrow_back';
$context_menu_style = array();
global $updater_message;
$conn_msg['online'] = '<span style=\'font-weight:bold; color: #257128\'>' . txt('updater_tray_online') . '</span>';
$conn_msg['offline'] = '<span style=\'font-weight:bold; color: #7f211d\'>' . txt('updater_tray_offline') . '</span>';
$conn_msg['disabled'] = '<span style=\'font-weight:bold; color: #384e92\'>' . txt('updater_tray_disabled') . '</span>';
$updater = new phpos_updater();
$tray['icons'] = array(ICONS . 'tray/updater.png');
$timeout = 3;
$cfg_timeout = globalconfig('app_updater_autoupdate_timeout');
if (!empty($cfg_timeout) && $cfg_timeout != 0) {
$timeout = $cfg_timeout;
}