show notify-window-link only if that app is enabled,

some cleanup of the html
(as talked with seek3r)
This commit is contained in:
Ralf Becker 2001-10-06 07:56:34 +00:00
parent e13cdddda8
commit a6f239235c

View File

@ -170,6 +170,10 @@
unset($_app_string); unset($_app_string);
} }
} }
if (isset($GLOBALS['phpgw_info']['user']['apps']['notifywindow']) &&
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
{
?> ?>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var NotifyWindow; var NotifyWindow;
@ -193,17 +197,11 @@
</SCRIPT> </SCRIPT>
<?php <?php
echo '<p><table border="0" width="100%" align="center">'; echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
//Uncomment the next line to enable the notify window. It will not work until a notifywindow app is added. }
echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
$GLOBALS['phpgw']->common->hook('home',array('email','calendar','news','addressbook','squirrelmail')); $GLOBALS['phpgw']->common->hook('home',array('email','calendar','news','addressbook','squirrelmail'));
//$phpgw->common->debug_phpgw_info(); //$phpgw->common->debug_phpgw_info();
//$phpgw->common->debug_list_core_functions(); //$phpgw->common->debug_list_core_functions();
?>
<TR><TD></TD></TR>
</TABLE>
<?php
$GLOBALS['phpgw']->common->phpgw_footer(); $GLOBALS['phpgw']->common->phpgw_footer();
?> ?>