Пример #1
0
	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
0
<?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
0
*/
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;
}