[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Calendar on Homepage * 4 * http://www.egroupware.org * 5 * Written and (c) 2004 by Ralf Becker <RalfBecker@outdoor-training.de> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: hook_home.inc.php 20295 2006-02-15 12:31:25Z $ */ 14 15 if($GLOBALS['egw_info']['user']['preferences']['calendar']['mainscreen_showevents']) 16 { 17 $GLOBALS['egw']->translation->add_app('calendar'); 18 19 $save_app_header = $GLOBALS['egw_info']['flags']['app_header']; 20 21 if ($GLOBALS['egw_info']['user']['preferences']['calendar']['defaultcalendar'] == 'listview') 22 { 23 $content =& ExecMethod('calendar.uilist.home'); 24 } 25 else 26 { 27 $content =& ExecMethod('calendar.uiviews.home'); 28 } 29 $portalbox =& CreateObject('phpgwapi.listbox',array( 30 'title' => $GLOBALS['egw_info']['flags']['app_header'], 31 'primary' => $GLOBALS['egw_info']['theme']['navbar_bg'], 32 'secondary' => $GLOBALS['egw_info']['theme']['navbar_bg'], 33 'tertiary' => $GLOBALS['egw_info']['theme']['navbar_bg'], 34 'width' => '100%', 35 'outerborderwidth' => '0', 36 'header_background_image' => $GLOBALS['egw']->common->image('phpgwapi/templates/default','bg_filler') 37 )); 38 $GLOBALS['egw_info']['flags']['app_header'] = $save_app_header; 39 unset($save_app_header); 40 41 $GLOBALS['portal_order'][] = $app_id = $GLOBALS['egw']->applications->name2id('calendar'); 42 foreach(array('up','down','close','question','edit') as $key) 43 { 44 $portalbox->set_controls($key,Array('url' => '/set_box.php', 'app' => $app_id)); 45 } 46 $portalbox->data = Array(); 47 48 if (!file_exists(EGW_SERVER_ROOT.($css_file ='/calendar/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/app.css'))) 49 { 50 $css_file = '/calendar/templates/default/app.css'; 51 } 52 echo ' 53 <!-- BEGIN Calendar info --> 54 <style type="text/css"> 55 <!-- 56 @import url('.$GLOBALS['egw_info']['server']['webserver_url'].$css_file.'); 57 --> 58 </style> 59 '.$portalbox->draw($content)."\n".'<!-- END Calendar info -->'."\n"; 60 61 unset($key); 62 unset($app_id); 63 unset($content); 64 unset($portalbox); 65 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |