source: trunk/calendar_new/index.php @ 420

Revision 420, 2.5 KB checked in by niltonneto, 16 years ago (diff)

Commit inicial da agenda com layout usando Ajax.

  • Property svn:executable set to *
Line 
1<?php
2/**************************************************************************\
3 * Expresso Livre - Calendar                                                *
4 * http://www.expressolivre.org                                             *
5 * Based on Webcalendar by Craig Knudsen <cknudsen@radix.net>               *
6 * Modified by Mark Peters <skeeter@phpgroupware.org>                       *
7 * And than Modified by Alexandre Muller <amuller@celepar.pr.gov.br>        *
8 * --------------------------------------------                             *
9 *  This program is free software; you can redistribute it and/or modify it *
10 *  under the terms of the GNU General Public License as published by the   *
11 *  Free Software Foundation; either version 2 of the License, or (at your  *
12 *  option) any later version.                                              *
13 \**************************************************************************/
14
15
16$phpgw_flags = Array(
17                'currentapp'    =>      'calendar_new',
18                'noappheader'   =>      True,
19                'noappfooter'   =>      True,
20                'nofooter'      =>      false
21                );
22
23
24$GLOBALS['phpgw_info']['flags'] = $phpgw_flags;
25include('../header.inc.php');
26$_SESSION['calendar']['user'] = $GLOBALS['phpgw_info']['user'];
27$_SESSION['calendar']['server'] = $GLOBALS['phpgw_info']['server'];
28
29$template_1 = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
30$template_1->set_file(Array('calendar_new' => 'index.tpl'));
31$template_1->set_block('calendar_new','index');
32$template_1->pfp('out','index');
33
34
35if(!is_object($GLOBALS['phpgw']->datetime))
36{
37        $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time');
38}
39
40$parms = Array(
41                'date'          => date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime)
42              );
43
44// Footer
45$GLOBALS['phpgw']->common->phpgw_footer();
46echo "<link rel='stylesheet' href='templates/default/main.css' />"
47."<script language='JavaScript' type='text/javascript' src='js/globals.js'></script>"
48."<script src='inc/load_lang.php?".$GLOBALS['phpgw_info']['flags']['update_version']."' type='text/javascript'></script>"
49."<script language='JavaScript' type='text/javascript' src='js/connector.js'></script>"
50."<script language='JavaScript' type='text/javascript' src='js/calendar_functions.js'></script>"
51."<script language='JavaScript' type='text/javascript' src='js/drag_area.js'></script>"
52."<script language='JavaScript' type='text/javascript' src='js/MOFX.js'></script>"
53."<script language='JavaScript' type='text/javascript' src='js/common_functions.js'></script>";
54
55$GLOBALS['phpgw']->common->phpgw_exit();
56
57?>
58
59
Note: See TracBrowser for help on using the repository browser.