2006-09-07 09:04:15 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* eGroupWare - Notifications
|
|
|
|
* serves the hook "after_navbar" to create the notificationwindow
|
|
|
|
*
|
|
|
|
* @abstract notificatonwindow is an empty and non displayed 1px div which gets rezised
|
|
|
|
* and populated if a notification is about to be displayed.
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package notifications
|
|
|
|
* @subpackage ajaxpoup
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Cornelius Weiss <nelius@cwtech.de>
|
2006-09-25 12:20:46 +02:00
|
|
|
* @version $Id$
|
2006-09-07 09:04:15 +02:00
|
|
|
*/
|
|
|
|
if (!$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxpopup']) {
|
2007-04-17 07:58:08 +02:00
|
|
|
$GLOBALS['egw']->translation->add_app('notifications');
|
2006-09-12 19:30:26 +02:00
|
|
|
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js'. '" type="text/javascript"></script>';
|
2006-09-25 10:23:30 +02:00
|
|
|
echo '<script type="text/javascript">notificationwindow_init();</script>';
|
2006-09-07 09:04:15 +02:00
|
|
|
echo '
|
|
|
|
<div id="notificationwindow" style="display: none; z-index: 999;">
|
|
|
|
<div id="divAppboxHeader">'. lang('Notification'). '</div>
|
|
|
|
<div id="divAppbox">
|
2006-09-25 09:00:51 +02:00
|
|
|
<div id="notificationwindow_message"></div>
|
2007-11-22 09:29:16 +01:00
|
|
|
<center>
|
|
|
|
<input id="notificationwindow_ok_button" type="submit" value="'. lang('ok'). '" onClick="notificationwindow_button_ok();">
|
|
|
|
</center>
|
2006-09-07 09:04:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
';
|
2006-09-25 10:23:30 +02:00
|
|
|
}
|